mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 09:31:26 +02:00
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:
parent
c1fa85f659
commit
c518ee49ea
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user