From: Jonas Jelonek Date: Wed, 31 Dec 2025 12:25:02 +0000 (+0000) Subject: realtek: image: add rt-loader-bootbase recipe X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c518ee49ea9732e8fdc3763b8feb642bdcb2b810;p=thirdparty%2Fopenwrt.git realtek: image: add rt-loader-bootbase recipe Add a recipe 'rt-loader-bootbase' to build an image with rt-loader for devices using the Zyxel BootBase/BootExtension chain. They need a plain bootable image for initramfs (preferably rt-loader with piggy-backed uImage) and a plain uImage for flashing. The flashable uImage is later combined with the loader into a signed/checksummed image. This template recipe can be used directly for GS1920-24HP, making the initramfs image more flexible due to using uImage instead of plain image. Suggested-by: Markus Stockhausen Signed-off-by: Jonas Jelonek Link: https://github.com/openwrt/openwrt/pull/22827 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index dc7a907709a..965657938e9 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -162,6 +162,12 @@ define Device/uimage-rt-loader KERNEL_INITRAMFS := $$(KERNEL/rt-loader) | uImage none endef +define Device/rt-loader-bootbase + KERNEL/rt-compress := kernel-bin | append-dtb | rt-compress + KERNEL := $$(KERNEL/rt-compress) | uImage lzma + KERNEL_INITRAMFS := $$(KERNEL/rt-compress) | uImage lzma | rt-loader +endef + include $(SUBTARGET).mk $(eval $(call BuildImage)) diff --git a/target/linux/realtek/image/rtl839x.mk b/target/linux/realtek/image/rtl839x.mk index 78d9eee56a4..13e2b6a4d7f 100644 --- a/target/linux/realtek/image/rtl839x.mk +++ b/target/linux/realtek/image/rtl839x.mk @@ -119,16 +119,7 @@ endif DEVICE_MODEL := GS1920-24HP DEVICE_PACKAGES := \ kmod-hwmon-lm85 - KERNEL := \ - kernel-bin | \ - append-dtb | \ - rt-compress | \ - uImage lzma - KERNEL_INITRAMFS := \ - kernel-bin | \ - append-dtb | \ - rt-compress | \ - rt-loader + $(Device/rt-loader-bootbase) endef define Device/zyxel_gs1920-24hp-v1