[openwrt/openwrt] ramips: mt7621: Reduce hardcoded metadata for Inteno Y3 imgs
LEDE Commits
lede-commits at lists.infradead.org
Sat Mar 15 04:05:08 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/76565015f56cd18b757b42b53667478d20753672
commit 76565015f56cd18b757b42b53667478d20753672
Author: Andreas Gnau <andreas.gnau at iopsys.eu>
AuthorDate: Fri Jan 10 22:42:03 2025 +0100
ramips: mt7621: Reduce hardcoded metadata for Inteno Y3 imgs
Instead of hardcoded metadata, put some sensible data instead.
Signed-off-by: Andreas Gnau <andreas.gnau at iopsys.eu>
Link: https://github.com/openwrt/openwrt/pull/17551
(cherry picked from commit 4e3342f5f17d5d227f036b4b16e2a3721a2e8493)
Link: https://github.com/openwrt/openwrt/pull/18238
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ramips/image/mt7621.mk | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index c1acada2fa..37e6ce1b71 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -67,12 +67,12 @@ define Build/inteno-y3-header
echo "IntenoIopY" > $@.tmp ;\
echo "version 5" >> $@.tmp ;\
echo "integrity MD5SUM" >> $@.tmp ;\
- echo "board EX400" >> $@.tmp ;\
- echo "chip 7621" >> $@.tmp ;\
- echo "arch all mipsel_1004kc" >> $@.tmp ;\
- echo "model EX400" >> $@.tmp ;\
- echo "release EX400-X-DNA-4.3.6.100-R-210518_0935" >> $@.tmp ;\
- echo "customer DNA" >> $@.tmp ;\
+ echo "board $(word 1,$(1))" >> $@.tmp ;\
+ echo "chip $(patsubst mt%,%,$(SOC:bcm%=%))" >> $@.tmp ;\
+ echo "arch all $(CONFIG_TARGET_ARCH_PACKAGES)" >> $@.tmp ;\
+ echo "model $(word 1,$(1))" >> $@.tmp ;\
+ echo "release $(DEVICE_IMG_PREFIX)" >> $@.tmp ;\
+ echo "customer $(if $(CONFIG_VERSION_DIST),$(CONFIG_VERSION_DIST),OpenWrt)" >> $@.tmp ;\
echo "ubifsofs $${ubifsofs}" >> $@.tmp ;\
echo "ubifs $${ubifs}" >> $@.tmp ;\
echo "pkginfoofs $${pkginfoofs}" >> $@.tmp ;\
@@ -1378,7 +1378,7 @@ define Device/genexis_pulse-ex400/common
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
IMAGES += factory.bin
IMAGE/factory.bin := append-image-stage initramfs-kernel.bin | \
- inteno-bootfs | inteno-y3-header | append-md5sum-ascii-salted
+ inteno-bootfs | inteno-y3-header EX400 | append-md5sum-ascii-salted
IMAGE/sysupgrade.bin := append-kernel | inteno-bootfs | \
sysupgrade-tar kernel=$$$$@ | check-size | append-metadata
DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(2)
More information about the lede-commits
mailing list