[openwrt/openwrt] build: move elecom-wrc-gs-factory to image-commands.mk
LEDE Commits
lede-commits at lists.infradead.org
Sat Oct 30 13:12:20 PDT 2021
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/1b814974e12ede0ade19302332d49336ae208f08
commit 1b814974e12ede0ade19302332d49336ae208f08
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Fri Apr 23 18:36:15 2021 +0900
build: move elecom-wrc-gs-factory to image-commands.mk
ELECOM WRC-X3200GST3 uses the same header/footer as WRC-GS/GST devices
in ramips/mt7621 subtarget, so move "Build/elecom-wrc-gs-factory" to
image-commands.mk to use from mediatek/mt7622 subtarget.
Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
---
include/image-commands.mk | 13 +++++++++++++
target/linux/ramips/image/mt7621.mk | 13 -------------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 1c9e8c12bb..91865e1e7e 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -187,6 +187,19 @@ define Build/elecom-product-header
mv $(fw).new $(fw)
endef
+define Build/elecom-wrc-gs-factory
+ $(eval product=$(word 1,$(1)))
+ $(eval version=$(word 2,$(1)))
+ $(eval hash_opt=$(word 3,$(1)))
+ $(MKHASH) md5 $(hash_opt) $@ >> $@
+ ( \
+ echo -n "ELECOM $(product) v$(version)" | \
+ dd bs=32 count=1 conv=sync; \
+ dd if=$@; \
+ ) > $@.new
+ mv $@.new $@
+endef
+
define Build/elx-header
$(eval hw_id=$(word 1,$(1)))
$(eval xor_pattern=$(word 2,$(1)))
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index c81e79c900..a0236234d1 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -9,19 +9,6 @@ DEFAULT_SOC := mt7621
KERNEL_DTB += -d21
DEVICE_VARS += ELECOM_HWNAME LINKSYS_HWNAME
-define Build/elecom-wrc-gs-factory
- $(eval product=$(word 1,$(1)))
- $(eval version=$(word 2,$(1)))
- $(eval hash_opt=$(word 3,$(1)))
- $(MKHASH) md5 $(hash_opt) $@ >> $@
- ( \
- echo -n "ELECOM $(product) v$(version)" | \
- dd bs=32 count=1 conv=sync; \
- dd if=$@; \
- ) > $@.new
- mv $@.new $@
-endef
-
define Build/gemtek-trailer
printf "%s%08X" ".GEMTEK." "$$(cksum $@ | cut -d ' ' -f1)" >> $@
endef
More information about the lede-commits
mailing list