realtek: image: add recipe for ZyNOS-based Zyxel devices

Add a new recipe 'zyxel-zynos' which contains common
behavior/definitions for ZyNOS-based Zyxel devices which requirea
special image to be built using 'zynos-firmware' recipe.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22909
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Jonas Jelonek 2026-04-10 11:39:21 +00:00 committed by Robert Marko
parent 62a15f06b1
commit 647daebf64

View File

@ -122,3 +122,20 @@ define Device/zyxel_xgs1210-12
rt-loader | \
uImage none
endef
define Device/zyxel_zynos
$(Device/rt-loader-bootbase)
DEVICE_VENDOR := Zyxel
ZYNFW_BOARD := $$(DEVICE_MODEL)
COMPILE := loader-$(1).bin
COMPILE/loader-$(1).bin := rt-loader-standalone
IMAGES += factory.bin
IMAGE/factory.bin := \
append-kernel | \
pad-to 64k | \
append-rootfs | \
pad-rootfs | \
check-size | \
zynos-firmware
IMAGE/sysupgrade.bin := $$(IMAGE/factory.bin) | append-metadata
endef