mediatek: append metadata to factory-uboot.bin for WSR devices
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 28 Dec 2024 10:07:09 +0000 (19:07 +0900)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Jan 2025 17:55:31 +0000 (18:55 +0100)
Append metadata to factory-uboot.bin image to pass the image verification
on sysupgrade.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17408
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/image/mt7622.mk

index 9f5fdc868885217031e3702ce2ab4ddd90b5924f..faf1b20e4ac47a1da9ea628b92e86d6145e1a286 100644 (file)
@@ -123,7 +123,7 @@ define Device/buffalo_wsr
        buffalo-enc $$(DEVICE_MODEL) $$(BUFFALO_TAG_VERSION) -l | \
        buffalo-tag-dhp $$(DEVICE_MODEL) JP JP | buffalo-enc-tag -l | buffalo-dhp-image
   IMAGE/factory-uboot.bin := append-ubi | \
-       buffalo-trx $$$$(BUFFALO_TRX_MAGIC) $$$$@ $(KDIR)/ubi_mark
+       buffalo-trx $$$$(BUFFALO_TRX_MAGIC) $$$$@ $(KDIR)/ubi_mark | append-metadata
   IMAGE/sysupgrade.bin := \
        buffalo-trx $$$$(BUFFALO_TRX_MAGIC) $(KDIR)/tmp/$$(DEVICE_NAME).null | \
        sysupgrade-tar kernel=$$$$@ | append-metadata