build: include iwinfo by default if nas or wpad(-mini) is selected

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39850
This commit is contained in:
Felix Fietkau 2014-03-09 12:16:08 +00:00
parent f7f1a496df
commit 6435b8bb27

View file

@ -51,6 +51,9 @@ endif
# Add device specific packages (here below to allow device type set from subtarget) # Add device specific packages (here below to allow device type set from subtarget)
DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE)) 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 define Profile/Default
NAME:= NAME:=
PACKAGES:= PACKAGES:=
@ -65,7 +68,7 @@ define Profile
DUMPINFO += \ DUMPINFO += \
echo "Target-Profile: $(1)"; \ echo "Target-Profile: $(1)"; \
echo "Target-Profile-Name: $(NAME)"; \ 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 \ if [ -f ./config/profile-$(1) ]; then \
echo "Target-Profile-Kconfig: yes"; \ echo "Target-Profile-Kconfig: yes"; \
fi; \ fi; \
@ -270,7 +273,7 @@ define BuildTargets/DumpCurrent
echo 'Target-Description:'; \ echo 'Target-Description:'; \
$(SH_FUNC) getvar $(call shvar,Target/Description); \ $(SH_FUNC) getvar $(call shvar,Target/Description); \
echo '@@'; \ echo '@@'; \
echo 'Default-Packages: $(DEFAULT_PACKAGES)'; \ echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \
$(DUMPINFO) $(DUMPINFO)
$(if $(SUBTARGET),,@$(foreach SUBTARGET,$(SUBTARGETS),$(SUBMAKE) -s DUMP=1 SUBTARGET=$(SUBTARGET); )) $(if $(SUBTARGET),,@$(foreach SUBTARGET,$(SUBTARGETS),$(SUBMAKE) -s DUMP=1 SUBTARGET=$(SUBTARGET); ))
endef endef