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