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 <jogo@openwrt.org>

SVN-Revision: 46596
This commit is contained in:
Jonas Gorski 2015-08-14 13:05:14 +00:00
parent 79b733264b
commit 4ecae78c16
4 changed files with 9 additions and 21 deletions

View File

@ -299,6 +299,15 @@ define Build/uImage
@mv $@.new $@
endef
define Build/netgear-chk
$(STAGING_DIR_HOST)/bin/mkchkimg \
-o $@.new \
-k $@ \
-b $(NETGEAR_BOARD_ID) \
-r $(NETGEAR_REGION)
mv $@.new $@
endef
define Build/lzma
$(STAGING_DIR_HOST)/bin/lzma e $@ -lc1 -lp2 -pb2 $(1) $@.new
@mv $@.new $@

View File

@ -60,12 +60,6 @@ define Build/asus-trx
mv $@.new $@
endef
define Build/netgear-chk
$(STAGING_DIR_HOST)/bin/mkchkimg \
-o $@.new -k $@ -b $(NETGEAR_BOARD_ID) -r $(NETGEAR_REGION)
mv $@.new $@
endef
DEVICE_VARS += DT PRODUCTID NETGEAR_BOARD_ID NETGEAR_REGION
define Device/Default

View File

@ -126,15 +126,6 @@ define Build/linksys-bin
mv $@.new $@
endef
define Build/netgear-chk
$(STAGING_DIR_HOST)/bin/mkchkimg \
-o $@.new \
-k $@ \
-b $(NETGEAR_BOARD_ID) \
-r $(NETGEAR_REGION)
mv $@.new $@
endef
#################################################
# Devices
#################################################

View File

@ -136,12 +136,6 @@ define Build/cfe-spw303v-bin
$(CFE_EXTRAS)
endef
define Build/netgear-chk
$(STAGING_DIR_HOST)/bin/mkchkimg -o $@.netgear -k $@ \
-b $(NETGEAR_BOARD_ID) -r $(NETGEAR_REGION)
mv $@.netgear $@
endef
define Build/spw303v-bin
$(STAGING_DIR_HOST)/bin/spw303v -i $@ -o $@.spw303v
mv $@.spw303v $@