summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-19 20:30:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-19 20:30:11 +0000
commit80ff6a1d25d115bef8defadfcfefc81654901c64 (patch)
treecb9c481348170dff0cbc6a64eaf385bd39fad24b
parenta475aaa39f0c6b91656eeb9eda82027d0990fcf5 (diff)
downloadmtk-20170518-80ff6a1d25d115bef8defadfcfefc81654901c64.zip
mtk-20170518-80ff6a1d25d115bef8defadfcfefc81654901c64.tar.gz
mtk-20170518-80ff6a1d25d115bef8defadfcfefc81654901c64.tar.bz2
autodetect atm, pci, usb, pcmcia features from kernel config file
SVN-Revision: 5586
-rw-r--r--include/kernel-build.mk17
-rw-r--r--target/linux/ar7-2.4/Makefile2
-rw-r--r--target/linux/aruba-2.6/Makefile2
-rw-r--r--target/linux/au1000-2.6/Makefile2
-rw-r--r--target/linux/brcm-2.4/Makefile2
-rw-r--r--target/linux/brcm-2.6/Makefile2
-rw-r--r--target/linux/brcm63xx-2.6/Makefile2
-rw-r--r--target/linux/ixp4xx-2.6/Makefile2
-rw-r--r--target/linux/magicbox-2.6/Makefile2
-rw-r--r--target/linux/rb532-2.6/Makefile2
-rw-r--r--target/linux/rdc-2.6/Makefile2
-rw-r--r--target/linux/x86-2.6/Makefile2
12 files changed, 28 insertions, 11 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 4967dfb..8462319 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
diff --git a/target/linux/ar7-2.4/Makefile b/target/linux/ar7-2.4/Makefile
index df29ef2..f593437 100644
--- a/target/linux/ar7-2.4/Makefile
+++ b/target/linux/ar7-2.4/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mipsel
BOARD:=ar7
BOARDNAME:=TI AR7
-FEATURES:=atm squashfs jffs2
+FEATURES:=squashfs jffs2
define Target/Description
Build firmware images for TI AR7 based routers (w.g. Linksys WAG54G v2)
diff --git a/target/linux/aruba-2.6/Makefile b/target/linux/aruba-2.6/Makefile
index 423e1e7..e852ade 100644
--- a/target/linux/aruba-2.6/Makefile
+++ b/target/linux/aruba-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mips
BOARD:=aruba
BOARDNAME:=Aruba
-FEATURES:=jffs2 pci usb
+FEATURES:=jffs2
define Target/Description
Build firmware images for Aruba boards
diff --git a/target/linux/au1000-2.6/Makefile b/target/linux/au1000-2.6/Makefile
index 7b36c33..258990f 100644
--- a/target/linux/au1000-2.6/Makefile
+++ b/target/linux/au1000-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mipsel
BOARD:=au1000
BOARDNAME:=AMD Alchemy AU1x00
-FEATURES:=pci usb jffs2
+FEATURES:=jffs2
define Target/Description
Build firmware for AMD Alchemy 1500 boards
diff --git a/target/linux/brcm-2.4/Makefile b/target/linux/brcm-2.4/Makefile
index 449219a..36160cf 100644
--- a/target/linux/brcm-2.4/Makefile
+++ b/target/linux/brcm-2.4/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mipsel
BOARD:=brcm
BOARDNAME:=Broadcom BCM947xx/953xx
-FEATURES:=pci usb pcmcia squashfs jffs2
+FEATURES:=squashfs jffs2
define Target/Description
Build firmware images for Broadcom based routers
diff --git a/target/linux/brcm-2.6/Makefile b/target/linux/brcm-2.6/Makefile
index 960c297..7de48ac 100644
--- a/target/linux/brcm-2.6/Makefile
+++ b/target/linux/brcm-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mipsel
BOARD:=brcm
BOARDNAME:=Broadcom BCM947xx/953xx
-FEATURES:=pci usb pcmcia squashfs jffs2
+FEATURES:=squashfs jffs2
define Target/Description
Build firmware images for Broadcom based routers
diff --git a/target/linux/brcm63xx-2.6/Makefile b/target/linux/brcm63xx-2.6/Makefile
index 7e61c73..70ff003 100644
--- a/target/linux/brcm63xx-2.6/Makefile
+++ b/target/linux/brcm63xx-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mips
BOARD:=brcm63xx
BOARDNAME:=Broadcom BCM963xx
-FEATURES:=pci usb atm squashfs jffs2
+FEATURES:=squashfs jffs2
define Target/Description
Build firmware images for Broadcom based xDSL/routers
diff --git a/target/linux/ixp4xx-2.6/Makefile b/target/linux/ixp4xx-2.6/Makefile
index 86df91f..0156414 100644
--- a/target/linux/ixp4xx-2.6/Makefile
+++ b/target/linux/ixp4xx-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=arm
BOARD:=ixp4xx
BOARDNAME:=Intel XScale IXP4xx
-FEATURES:=pci usb jffs2
+FEATURES:=jffs2
define Target/Description
endef
diff --git a/target/linux/magicbox-2.6/Makefile b/target/linux/magicbox-2.6/Makefile
index d51c8e4..5e36e82 100644
--- a/target/linux/magicbox-2.6/Makefile
+++ b/target/linux/magicbox-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=powerpc
BOARD:=magicbox
BOARDNAME:=Magicbox
-FEATURES:=pci jffs2
+FEATURES:=jffs2
LINUX_VERSION:=2.6.17
LINUX_RELEASE:=1
diff --git a/target/linux/rb532-2.6/Makefile b/target/linux/rb532-2.6/Makefile
index 35c4f6d..e59b32c 100644
--- a/target/linux/rb532-2.6/Makefile
+++ b/target/linux/rb532-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mipsel
BOARD:=rb532
BOARDNAME:=Mikrotik RouterBoard 532
-FEATURES:=pci jffs2
+FEATURES:=jffs2
LINUX_VERSION:=2.6.17
LINUX_RELEASE:=1
diff --git a/target/linux/rdc-2.6/Makefile b/target/linux/rdc-2.6/Makefile
index 10a4872..3d48de7 100644
--- a/target/linux/rdc-2.6/Makefile
+++ b/target/linux/rdc-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH:=i386
BOARD:=rdc
BOARDNAME:=RDC x86
-FEATURES:=broken pci jffs2
+FEATURES:=broken jffs2
define Target/Description
Build firmware images for RDC3211 based routers
diff --git a/target/linux/x86-2.6/Makefile b/target/linux/x86-2.6/Makefile
index 8676aab..1c61bd3 100644
--- a/target/linux/x86-2.6/Makefile
+++ b/target/linux/x86-2.6/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
ARCH=i386
BOARD:=x86
BOARDNAME:=x86
-FEATURES:=pci usb atm pcmcia jffs2 ext2
+FEATURES:=jffs2 ext2
LINUX_VERSION:=2.6.17
LINUX_RELEASE:=1