Browse Source

build: move Build/edimax-header to image-commands.mk

To use from the following devices in ath79 target, move edimax-header to
image-commands.mk.

- ELECOM WRC-300GHBK2-I
- ELECOM WRC-1750GHBK2-I/C

Signed-off-by: INAGAKI Hiroshi <[email protected]>
INAGAKI Hiroshi 3 years ago
parent
commit
00ddd29b65
2 changed files with 5 additions and 5 deletions
  1. 5 0
      include/image-commands.mk
  2. 0 5
      target/linux/ramips/image/Makefile

+ 5 - 0
include/image-commands.mk

@@ -218,6 +218,11 @@ define Build/copy-file
 	cat "$(1)" > "$@"
 endef
 
+define Build/edimax-header
+	$(STAGING_DIR_HOST)/bin/mkedimaximg -i $@ -o [email protected] $(1)
+	@mv [email protected] $@
+endef
+
 define Build/elecom-product-header
 	$(eval product=$(word 1,$(1)))
 	$(eval fw=$(if $(word 2,$(1)),$(word 2,$(1)),$@))

+ 0 - 5
target/linux/ramips/image/Makefile

@@ -28,11 +28,6 @@ LOADER_FLASH_START := $(ldrflashstart-y)
 
 KERNEL_DTB = kernel-bin | append-dtb | lzma
 
-define Build/edimax-header
-	$(STAGING_DIR_HOST)/bin/mkedimaximg -i $@ -o [email protected] $(1)
-	@mv [email protected] $@
-endef
-
 define Build/jcg-header
 	$(STAGING_DIR_HOST)/bin/jcgimage -v $(1) \
 		$(if $(JCG_MAXSIZE), -m $$(($(subst k, * 1024,$(JCG_MAXSIZE)))),) \