ar71xx/image: add options argument to mktplinkfw step

Allow to pass extra arguments to mktplinkfw step. Some board requires
an extra argument to create a valid image.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 47174
This commit is contained in:
John Crispin 2015-10-11 16:23:44 +00:00
parent 6f59ea0e80
commit 5816fa9a98

View file

@ -38,13 +38,16 @@ define Build/netgear-uImage
endef endef
# combine kernel and rootfs into one image # combine kernel and rootfs into one image
# mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
# <type> is "sysupgrade" or "factory"
#
# -a align the rootfs start on an <align> bytes boundary # -a align the rootfs start on an <align> bytes boundary
# -j add jffs2 end-of-filesystem markers # -j add jffs2 end-of-filesystem markers
# -s strip padding from end of the image # -s strip padding from end of the image
# -X reserve <size> bytes in the firmware image (hexval prefixed with 0x) # -X reserve <size> bytes in the firmware image (hexval prefixed with 0x)
define Build/mktplinkfw define Build/mktplinkfw
-$(STAGING_DIR_HOST)/bin/mktplinkfw \ -$(STAGING_DIR_HOST)/bin/mktplinkfw \
-H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \ -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $2 \
-k $(word 1,$^) \ -k $(word 1,$^) \
-r $@ \ -r $@ \
-o $@.new \ -o $@.new \
@ -64,10 +67,12 @@ define Build/mktplinkfw-chn-v2
$(if $(findstring sysupgrade,$1),-s) && mv $@.new $@ || rm -f $@ $(if $(findstring sysupgrade,$1),-s) && mv $@.new $@ || rm -f $@
endef endef
# mktplinkfw-initramfs <optional extra arguments to mktplinkfw binary>
#
# -c combined image # -c combined image
define Build/mktplinkfw-initramfs define Build/mktplinkfw-initramfs
$(STAGING_DIR_HOST)/bin/mktplinkfw \ $(STAGING_DIR_HOST)/bin/mktplinkfw \
-H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \ -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $2 \
-k $@ \ -k $@ \
-o $@.new \ -o $@.new \
-s -S \ -s -S \