From 4f2d32f7e9704afdef4d96e04a942c1ca04e7cf1 Mon Sep 17 00:00:00 2001 From: Grische Date: Tue, 19 Dec 2023 20:29:39 +0100 Subject: [PATCH] contrib: remove USB and add NSM to ZyXEL NWA55AXE The Zyxel has no reset button and requires a special NSM package for resetting the router using a magic networking package. (cherry picked from commit 417bde232f4f2fdc78ddead18428198055afed0b) --- contrib/genpkglist.py | 10 +++++++++- site.mk | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/contrib/genpkglist.py b/contrib/genpkglist.py index db662ea5..28cbfe70 100755 --- a/contrib/genpkglist.py +++ b/contrib/genpkglist.py @@ -187,6 +187,11 @@ def render(self): ]) pkglists.append(PKGS_TLS) +PKGS_NSM = PackageList('NSM', [ + 'ffda-network-setup-mode', +]) +pkglists.append(PKGS_NSM) + # # package assignment # @@ -258,10 +263,13 @@ def render(self): add_pkglist(PKGS_USB_SERIAL). \ add_pkglist(PKGS_USB_STORAGE). \ add_pkglist(PKGS_TLS). \ + include(['zyxel-nwa55axe'], pkglists=[PKGS_NSM]). \ exclude([ # devices without usb ports 'netgear-ex6150', 'ubiquiti-edgerouter-x', - 'ubiquiti-edgerouter-x-sfp'], pkglists=[PKGS_USB, PKGS_USB_NET, PKGS_USB_SERIAL, PKGS_USB_STORAGE]) + 'ubiquiti-edgerouter-x-sfp', + 'zyxel-nwa55axe', + ], pkglists=[PKGS_USB, PKGS_USB_NET, PKGS_USB_SERIAL, PKGS_USB_STORAGE]) targets.get('ramips-mt7620'). \ add_pkglist(PKGS_USB). \ diff --git a/site.mk b/site.mk index 5da69a58..2faba818 100644 --- a/site.mk +++ b/site.mk @@ -165,6 +165,12 @@ EXCLUDE_TLS := \ -ca-bundle \ -libustream-mbedtls +INCLUDE_NSM := \ + ffda-network-setup-mode + +EXCLUDE_NSM := \ + -ffda-network-setup-mode + ifeq ($(GLUON_TARGET),ath79-generic) GLUON_SITE_PACKAGES += $(INCLUDE_TLS) @@ -271,9 +277,11 @@ endif ifeq ($(GLUON_TARGET),ramips-mt7621) GLUON_SITE_PACKAGES += $(INCLUDE_TLS) $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE) + GLUON_zyxel-nwa55axe_SITE_PACKAGES += $(INCLUDE_NSM) GLUON_netgear-ex6150_SITE_PACKAGES += $(EXCLUDE_USB) $(EXCLUDE_USB_NET) $(EXCLUDE_USB_SERIAL) $(EXCLUDE_USB_STORAGE) GLUON_ubiquiti-edgerouter-x_SITE_PACKAGES += $(EXCLUDE_USB) $(EXCLUDE_USB_NET) $(EXCLUDE_USB_SERIAL) $(EXCLUDE_USB_STORAGE) GLUON_ubiquiti-edgerouter-x-sfp_SITE_PACKAGES += $(EXCLUDE_USB) $(EXCLUDE_USB_NET) $(EXCLUDE_USB_SERIAL) $(EXCLUDE_USB_STORAGE) + GLUON_zyxel-nwa55axe_SITE_PACKAGES += $(EXCLUDE_USB) $(EXCLUDE_USB_NET) $(EXCLUDE_USB_SERIAL) $(EXCLUDE_USB_STORAGE) endif ifeq ($(GLUON_TARGET),ramips-mt76x8)