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:
		@@ -299,6 +299,15 @@ define Build/uImage
 | 
				
			|||||||
	@mv $@.new $@
 | 
						@mv $@.new $@
 | 
				
			||||||
endef
 | 
					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
 | 
					define Build/lzma
 | 
				
			||||||
	$(STAGING_DIR_HOST)/bin/lzma e $@ -lc1 -lp2 -pb2 $(1) $@.new
 | 
						$(STAGING_DIR_HOST)/bin/lzma e $@ -lc1 -lp2 -pb2 $(1) $@.new
 | 
				
			||||||
	@mv $@.new $@
 | 
						@mv $@.new $@
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -60,12 +60,6 @@ define Build/asus-trx
 | 
				
			|||||||
	mv $@.new $@
 | 
						mv $@.new $@
 | 
				
			||||||
endef
 | 
					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
 | 
					DEVICE_VARS += DT PRODUCTID NETGEAR_BOARD_ID NETGEAR_REGION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Device/Default
 | 
					define Device/Default
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -126,15 +126,6 @@ define Build/linksys-bin
 | 
				
			|||||||
	mv $@.new $@
 | 
						mv $@.new $@
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Build/netgear-chk
 | 
					 | 
				
			||||||
	$(STAGING_DIR_HOST)/bin/mkchkimg \
 | 
					 | 
				
			||||||
		-o $@.new \
 | 
					 | 
				
			||||||
		-k $@ \
 | 
					 | 
				
			||||||
		-b $(NETGEAR_BOARD_ID) \
 | 
					 | 
				
			||||||
		-r $(NETGEAR_REGION)
 | 
					 | 
				
			||||||
	mv $@.new $@
 | 
					 | 
				
			||||||
endef
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#################################################
 | 
					#################################################
 | 
				
			||||||
# Devices
 | 
					# Devices
 | 
				
			||||||
#################################################
 | 
					#################################################
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -136,12 +136,6 @@ define Build/cfe-spw303v-bin
 | 
				
			|||||||
		$(CFE_EXTRAS)
 | 
							$(CFE_EXTRAS)
 | 
				
			||||||
endef
 | 
					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
 | 
					define Build/spw303v-bin
 | 
				
			||||||
	$(STAGING_DIR_HOST)/bin/spw303v -i $@ -o $@.spw303v
 | 
						$(STAGING_DIR_HOST)/bin/spw303v -i $@ -o $@.spw303v
 | 
				
			||||||
	mv $@.spw303v $@
 | 
						mv $@.spw303v $@
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user