Skip to content

Commit 4e3342f

Browse files
Rondomhauke
authored andcommitted
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@iopsys.eu> Link: openwrt/openwrt#17551 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 3e7337f commit 4e3342f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

target/linux/ramips/image/mt7621.mk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ define Build/inteno-y3-header
6767
echo "IntenoIopY" > $@.tmp ;\
6868
echo "version 5" >> $@.tmp ;\
6969
echo "integrity MD5SUM" >> $@.tmp ;\
70-
echo "board EX400" >> $@.tmp ;\
71-
echo "chip 7621" >> $@.tmp ;\
72-
echo "arch all mipsel_1004kc" >> $@.tmp ;\
73-
echo "model EX400" >> $@.tmp ;\
74-
echo "release EX400-X-DNA-4.3.6.100-R-210518_0935" >> $@.tmp ;\
75-
echo "customer DNA" >> $@.tmp ;\
70+
echo "board $(word 1,$(1))" >> $@.tmp ;\
71+
echo "chip $(patsubst mt%,%,$(SOC:bcm%=%))" >> $@.tmp ;\
72+
echo "arch all $(CONFIG_TARGET_ARCH_PACKAGES)" >> $@.tmp ;\
73+
echo "model $(word 1,$(1))" >> $@.tmp ;\
74+
echo "release $(DEVICE_IMG_PREFIX)" >> $@.tmp ;\
75+
echo "customer $(if $(CONFIG_VERSION_DIST),$(CONFIG_VERSION_DIST),OpenWrt)" >> $@.tmp ;\
7676
echo "ubifsofs $${ubifsofs}" >> $@.tmp ;\
7777
echo "ubifs $${ubifs}" >> $@.tmp ;\
7878
echo "pkginfoofs $${pkginfoofs}" >> $@.tmp ;\
@@ -1405,7 +1405,7 @@ define Device/genexis_pulse-ex400/common
14051405
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
14061406
IMAGES += factory.bin
14071407
IMAGE/factory.bin := append-image-stage initramfs-kernel.bin | \
1408-
inteno-bootfs | inteno-y3-header | append-md5sum-ascii-salted
1408+
inteno-bootfs | inteno-y3-header EX400 | append-md5sum-ascii-salted
14091409
IMAGE/sysupgrade.bin := append-kernel | inteno-bootfs | \
14101410
sysupgrade-tar kernel=$$$$@ | check-size | append-metadata
14111411
DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(2)

0 commit comments

Comments
 (0)