Author: jogo Date: 2015-08-14 15:05:14 +0200 (Fri, 14 Aug 2015) New Revision: 46596
Modified: trunk/include/image.mk trunk/target/linux/bcm53xx/image/Makefile trunk/target/linux/brcm47xx/image/Makefile trunk/target/linux/brcm63xx/image/Makefile Log: image.mk: replace all Build/netgear-chk with a generic implementation Instead of letting each target define it themselves, create on in include/image.mk and let the targets use it. Signed-off-by: Jonas Gorski <[email protected]> Modified: trunk/include/image.mk =================================================================== --- trunk/include/image.mk 2015-08-14 13:04:43 UTC (rev 46595) +++ trunk/include/image.mk 2015-08-14 13:05:14 UTC (rev 46596) @@ -299,6 +299,15 @@ @mv [email protected] $@ endef +define Build/netgear-chk + $(STAGING_DIR_HOST)/bin/mkchkimg \ + -o [email protected] \ + -k $@ \ + -b $(NETGEAR_BOARD_ID) \ + -r $(NETGEAR_REGION) + mv [email protected] $@ +endef + define Build/lzma $(STAGING_DIR_HOST)/bin/lzma e $@ -lc1 -lp2 -pb2 $(1) [email protected] @mv [email protected] $@ Modified: trunk/target/linux/bcm53xx/image/Makefile =================================================================== --- trunk/target/linux/bcm53xx/image/Makefile 2015-08-14 13:04:43 UTC (rev 46595) +++ trunk/target/linux/bcm53xx/image/Makefile 2015-08-14 13:05:14 UTC (rev 46596) @@ -60,12 +60,6 @@ mv [email protected] $@ endef -define Build/netgear-chk - $(STAGING_DIR_HOST)/bin/mkchkimg \ - -o [email protected] -k $@ -b $(NETGEAR_BOARD_ID) -r $(NETGEAR_REGION) - mv [email protected] $@ -endef - DEVICE_VARS += DT PRODUCTID NETGEAR_BOARD_ID NETGEAR_REGION define Device/Default Modified: trunk/target/linux/brcm47xx/image/Makefile =================================================================== --- trunk/target/linux/brcm47xx/image/Makefile 2015-08-14 13:04:43 UTC (rev 46595) +++ trunk/target/linux/brcm47xx/image/Makefile 2015-08-14 13:05:14 UTC (rev 46596) @@ -126,15 +126,6 @@ mv [email protected] $@ endef -define Build/netgear-chk - $(STAGING_DIR_HOST)/bin/mkchkimg \ - -o [email protected] \ - -k $@ \ - -b $(NETGEAR_BOARD_ID) \ - -r $(NETGEAR_REGION) - mv [email protected] $@ -endef - ################################################# # Devices ################################################# Modified: trunk/target/linux/brcm63xx/image/Makefile =================================================================== --- trunk/target/linux/brcm63xx/image/Makefile 2015-08-14 13:04:43 UTC (rev 46595) +++ trunk/target/linux/brcm63xx/image/Makefile 2015-08-14 13:05:14 UTC (rev 46596) @@ -136,12 +136,6 @@ $(CFE_EXTRAS) endef -define Build/netgear-chk - $(STAGING_DIR_HOST)/bin/mkchkimg -o [email protected] -k $@ \ - -b $(NETGEAR_BOARD_ID) -r $(NETGEAR_REGION) - mv [email protected] $@ -endef - define Build/spw303v-bin $(STAGING_DIR_HOST)/bin/spw303v -i $@ -o [email protected] mv [email protected] $@ _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
