Skip to content

Commit

Permalink
Merge pull request #347 from freifunkMUC/backport-342-to-next
Browse files Browse the repository at this point in the history
[Backport next] contrib: remove USB and add NSM to ZyXEL NWA55AXE
  • Loading branch information
grische authored Dec 30, 2023
2 parents d9c8c51 + 4f2d32f commit 17122b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion contrib/genpkglist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -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). \
Expand Down
8 changes: 8 additions & 0 deletions site.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 17122b5

Please sign in to comment.