ramips: prepare zyxel-nwa-fit to support more models
authorDavid Bauer <[email protected]>
Fri, 6 Jun 2025 17:46:24 +0000 (19:46 +0200)
committerDavid Bauer <[email protected]>
Wed, 12 Nov 2025 18:43:26 +0000 (19:43 +0100)
Pass the string of compatible models to the "zyxel-nwa-fit" image
generation script as an argument.

This is required to support new models using the same script.

Signed-off-by: David Bauer <[email protected]>
target/linux/ramips/image/mt7621.mk

index e86a453f9a0138e3db145b17b0e662ee019a5674..cb2409dbc34c7dd8b96ae4d088492372ebf054a0 100644 (file)
@@ -230,7 +230,7 @@ endef
 define Build/zyxel-nwa-fit
        # "77 e1" is NWA90AX
        $(TOPDIR)/scripts/mkits-zyxel-fit.sh \
-               [email protected] $@ "6b e1 6f e1 77 e1 ff ff ff ff"
+               [email protected] $@ "$(1)"
        PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f [email protected] [email protected]
        @mv [email protected] $@
 endef
@@ -3755,7 +3755,8 @@ define Device/zyxel_nwa-ax
   DEVICE_PACKAGES := kmod-mt7915-firmware zyxel-bootconfig
   KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
   IMAGES += factory.bin ramboot-factory.bin
-  IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | zyxel-nwa-fit
+  IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
+       zyxel-nwa-fit 6b e1 6f e1 77 e1 ff ff ff ff
   IMAGE/ramboot-factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi
 endef