summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Krapp2025-10-14 18:22:29 +0000
committerRobert Marko2025-10-17 08:55:43 +0000
commit4e81893953c8721aefc45e7053b85f20b621eaa8 (patch)
treecb303c75a10e4e7c8795a976f81d8187467e94ac
parent8a0b30db513fd4f15a83cf34628d3c5518a36ce7 (diff)
downloadopenwrt-4e81893953c8721aefc45e7053b85f20b621eaa8.tar.gz
mediatek: filogic: add ASUS RT-AX52 factory-initramfs image generation
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>
-rw-r--r--target/linux/mediatek/image/Makefile5
-rw-r--r--target/linux/mediatek/image/filogic.mk3
2 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/mediatek/image/Makefile b/target/linux/mediatek/image/Makefile
index d4f79ec974..668d9a8cb0 100644
--- a/target/linux/mediatek/image/Makefile
+++ b/target/linux/mediatek/image/Makefile
@@ -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
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 6369586736..d062a47e4a 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -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