From: John Crispin Date: Sun, 11 Oct 2015 16:23:44 +0000 (+0000) Subject: ar71xx/image: add options argument to mktplinkfw step X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5816fa9a981615dbb967722b2ae3999d6aab30a3;p=openwrt%2Fstaging%2Fkaloz.git 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 SVN-Revision: 47174 --- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index c90891716c..2dd7798f21 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -38,13 +38,16 @@ define Build/netgear-uImage endef # combine kernel and rootfs into one image +# mktplinkfw +# is "sysupgrade" or "factory" +# # -a align the rootfs start on an bytes boundary # -j add jffs2 end-of-filesystem markers # -s strip padding from end of the image # -X reserve bytes in the firmware image (hexval prefixed with 0x) define Build/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,$^) \ -r $@ \ -o $@.new \ @@ -64,10 +67,12 @@ define Build/mktplinkfw-chn-v2 $(if $(findstring sysupgrade,$1),-s) && mv $@.new $@ || rm -f $@ endef +# mktplinkfw-initramfs +# # -c combined image define Build/mktplinkfw-initramfs $(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 $@ \ -o $@.new \ -s -S \