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 <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>
This commit is contained in:
Jonas Jelonek 2025-12-31 12:25:02 +00:00 committed by Hauke Mehrtens
parent c1fa85f659
commit c518ee49ea
2 changed files with 7 additions and 10 deletions

View 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))

View 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