]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: image: add recipe for ZyNOS-based Zyxel devices
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 10 Apr 2026 11:39:21 +0000 (11:39 +0000)
committerRobert Marko <robimarko@gmail.com>
Mon, 20 Apr 2026 09:13:05 +0000 (11:13 +0200)
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>
target/linux/realtek/image/common.mk

index f8c5d0aa82729b769f501440e9d5abc0ebd760b0..3a820fec4312fbc5e8240b42377488f5ec685c60 100644 (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