aboutsummaryrefslogtreecommitdiffstats
path: root/include/target.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-09 12:16:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-09 12:16:08 +0000
commit6435b8bb27eaa3ba3d0320725e5ba8211b907e85 (patch)
tree1ebad07c0a36558eeaadfe42a07650ea042e75d8 /include/target.mk
parentf7f1a496df6420c9d7011a6fa9dadb1981567866 (diff)
downloadupstream-6435b8bb27eaa3ba3d0320725e5ba8211b907e85.tar.gz
upstream-6435b8bb27eaa3ba3d0320725e5ba8211b907e85.tar.bz2
upstream-6435b8bb27eaa3ba3d0320725e5ba8211b907e85.zip
build: include iwinfo by default if nas or wpad(-mini) is selected
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39850
Diffstat (limited to 'include/target.mk')
-rw-r--r--include/target.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/target.mk b/include/target.mk
index 79d52f0b84..c99c2825f2 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -51,6 +51,9 @@ endif
# Add device specific packages (here below to allow device type set from subtarget)
DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))
+filter_packages = $(filter-out -% $(patsubst -%,%,$(filter -%,$(1))),$(1))
+extra_packages = $(if $(filter wpad-mini wpad nas,$(1)),iwinfo)
+
define Profile/Default
NAME:=
PACKAGES:=
@@ -65,7 +68,7 @@ define Profile
DUMPINFO += \
echo "Target-Profile: $(1)"; \
echo "Target-Profile-Name: $(NAME)"; \
- echo "Target-Profile-Packages: $(PACKAGES)"; \
+ echo "Target-Profile-Packages: $(PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES) $(PACKAGES))"; \
if [ -f ./config/profile-$(1) ]; then \
echo "Target-Profile-Kconfig: yes"; \
fi; \
@@ -270,7 +273,7 @@ define BuildTargets/DumpCurrent
echo 'Target-Description:'; \
$(SH_FUNC) getvar $(call shvar,Target/Description); \
echo '@@'; \
- echo 'Default-Packages: $(DEFAULT_PACKAGES)'; \
+ echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \
$(DUMPINFO)
$(if $(SUBTARGET),,@$(foreach SUBTARGET,$(SUBTARGETS),$(SUBMAKE) -s DUMP=1 SUBTARGET=$(SUBTARGET); ))
endef