diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-19 20:30:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-19 20:30:11 +0000 |
commit | 80ff6a1d25d115bef8defadfcfefc81654901c64 (patch) | |
tree | cb9c481348170dff0cbc6a64eaf385bd39fad24b /include | |
parent | a475aaa39f0c6b91656eeb9eda82027d0990fcf5 (diff) | |
download | openwrt-80ff6a1d25d115bef8defadfcfefc81654901c64.tar.gz openwrt-80ff6a1d25d115bef8defadfcfefc81654901c64.tar.bz2 openwrt-80ff6a1d25d115bef8defadfcfefc81654901c64.zip |
autodetect atm, pci, usb, pcmcia features from kernel config file
SVN-Revision: 5586
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel-build.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 4967dfb67e..8462319f0a 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -8,6 +8,23 @@ KERNEL_BUILD:=1 include $(INCLUDE_DIR)/prereq.mk +-include ./config +ifneq ($(CONFIG_ATM),) + FEATURES += atm +endif +ifneq ($(CONFIG_PCI),) + FEATURES += pci +endif +ifneq ($(CONFIG_USB),) + FEATURES += usb +endif +ifneq ($(CONFIG_PCMCIA),) + FEATURES += pcmcia +endif + +# remove duplicates +FEATURES:=$(sort $(FEATURES)) + # For target profile selection - the default set DEFAULT_PACKAGES:=base-files libgcc uclibc bridge busybox dnsmasq dropbear iptables mtd ppp ppp-mod-pppoe mtd |