]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: image: add rt-loader-bootbase recipe
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 31 Dec 2025 12:25:02 +0000 (12:25 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Apr 2026 16:23:08 +0000 (18:23 +0200)
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 <markus.stockhausen@gmx.de>
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22827
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/image/Makefile
target/linux/realtek/image/rtl839x.mk

index dc7a907709a2680c22101f52ea1e92582befbb58..965657938e96a9bb575efe2f17e8c6bc1d38a88a 100644 (file)
@@ -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))
index 78d9eee56a46c07a26372c4e2b3647113becf2e8..13e2b6a4d7f1ad3d9d1c3656dfc92c5c65776cf5 100644 (file)
@@ -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