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]> SVN-Revision: 46596
@@ -299,6 +299,15 @@ define Build/uImage
@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]
@@ -60,12 +60,6 @@ define Build/asus-trx
mv [email protected] $@
-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
@@ -126,15 +126,6 @@ define Build/linksys-bin
- -o [email protected] \
- -k $@ \
- -b $(NETGEAR_BOARD_ID) \
- -r $(NETGEAR_REGION)
#################################################
# Devices
@@ -136,12 +136,6 @@ define Build/cfe-spw303v-bin
$(CFE_EXTRAS)
- $(STAGING_DIR_HOST)/bin/mkchkimg -o [email protected] -k $@ \
- -b $(NETGEAR_BOARD_ID) -r $(NETGEAR_REGION)
define Build/spw303v-bin
$(STAGING_DIR_HOST)/bin/spw303v -i $@ -o [email protected]