]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: add ASUS RT-AX52 factory-initramfs image generation 20409/head
authorChristoph Krapp <achterin@gmail.com>
Tue, 14 Oct 2025 18:22:29 +0000 (20:22 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 17 Oct 2025 08:55:43 +0000 (10:55 +0200)
This adds the required image receipt to generate a vendor ui compatible
initramfs-factory image, that can be used to flash the final sysupgrade
image.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20409
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/mediatek/image/Makefile
target/linux/mediatek/image/filogic.mk

index d4f79ec97499bdf17e8e4ed1874467f393e3b768..668d9a8cb03f50fade03a914390e60185dfd83a9 100644 (file)
@@ -33,6 +33,11 @@ define Device/Default
        pad-rootfs | append-metadata
 endef
 
+define Build/asus-trx
+       $(STAGING_DIR_HOST)/bin/asusuimage $(wordlist 1,$(words $(1)),$(1)) -i $@ -o $@.new
+       mv $@.new $@
+endef
+
 include $(SUBTARGET).mk
 
 define Image/Build
index 63695867362da0b6105d5bd853de2553b5e5f620..d062a47e4a8b29198704ed798c121167ee85a3a3 100644 (file)
@@ -270,6 +270,9 @@ define Device/asus_rt-ax52
   KERNEL_INITRAMFS := kernel-bin | lzma | \
        fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
   IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+  ARTIFACTS := initramfs.trx
+  ARTIFACT/initramfs.trx := append-image-stage initramfs-kernel.bin | \
+       uImage none | asus-trx -v 3 -n $$(DEVICE_MODEL)
 endef
 TARGET_DEVICES += asus_rt-ax52