build: move hostapd-mini package from generic target to Makefile
By passing the package name through merge_packages, it becomes possible to override the package choice in GLUON_SITE_PACKAGES again, for example: GLUON_SITE_PACKAGES += -hostapd-mini hostapd
This commit is contained in:
parent
8e04679be6
commit
134a6460a7
4
Makefile
4
Makefile
@ -106,6 +106,8 @@ list-targets: FORCE
|
|||||||
@$(foreach target,$(GLUON_TARGETS),echo '$(target)';)
|
@$(foreach target,$(GLUON_TARGETS),echo '$(target)';)
|
||||||
|
|
||||||
|
|
||||||
|
GLUON_DEFAULT_PACKAGES := hostapd-mini
|
||||||
|
|
||||||
GLUON_FEATURE_PACKAGES := $(shell scripts/features.sh '$(GLUON_FEATURES)' || echo '__ERROR__')
|
GLUON_FEATURE_PACKAGES := $(shell scripts/features.sh '$(GLUON_FEATURES)' || echo '__ERROR__')
|
||||||
ifneq ($(filter __ERROR__,$(GLUON_FEATURE_PACKAGES)),)
|
ifneq ($(filter __ERROR__,$(GLUON_FEATURE_PACKAGES)),)
|
||||||
$(error Error while evaluating GLUON_FEATURES)
|
$(error Error while evaluating GLUON_FEATURES)
|
||||||
@ -118,7 +120,7 @@ define merge_packages
|
|||||||
GLUON_PACKAGES := $$(strip $$(filter-out -$$(patsubst -%,%,$(pkg)) $$(patsubst -%,%,$(pkg)),$$(GLUON_PACKAGES)) $(pkg))
|
GLUON_PACKAGES := $$(strip $$(filter-out -$$(patsubst -%,%,$(pkg)) $$(patsubst -%,%,$(pkg)),$$(GLUON_PACKAGES)) $(pkg))
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
$(eval $(call merge_packages,$(GLUON_FEATURE_PACKAGES) $(GLUON_SITE_PACKAGES)))
|
$(eval $(call merge_packages,$(GLUON_DEFAULT_PACKAGES) $(GLUON_FEATURE_PACKAGES) $(GLUON_SITE_PACKAGES)))
|
||||||
|
|
||||||
config: FORCE
|
config: FORCE
|
||||||
@$(CheckExternal)
|
@$(CheckExternal)
|
||||||
|
@ -53,4 +53,4 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
packages '-odhcpd-ipv6only' '-ppp' '-ppp-mod-pppoe' '-wpad-mini'
|
packages '-odhcpd-ipv6only' '-ppp' '-ppp-mod-pppoe' '-wpad-mini'
|
||||||
packages 'gluon-core' 'ip6tables' 'hostapd-mini'
|
packages 'gluon-core' 'ip6tables'
|
||||||
|
Loading…
Reference in New Issue
Block a user