From 636b2d3d83444bfa2184130bc061f93df547be77 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Tue, 13 Dec 2005 02:52:14 +0000
Subject: [PATCH] disable pcmcia stuff for ar7

SVN-Revision: 2646
---
 openwrt/package/pcmcia-cs/Config.in |  1 +
 openwrt/target/linux/Config.in      | 14 +++++++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/openwrt/package/pcmcia-cs/Config.in b/openwrt/package/pcmcia-cs/Config.in
index 723c60ef98..afcfa39ffd 100644
--- a/openwrt/package/pcmcia-cs/Config.in
+++ b/openwrt/package/pcmcia-cs/Config.in
@@ -6,6 +6,7 @@ config BR2_COMPILE_PCMCIA_CS
 config BR2_PACKAGE_PCMCIA_UTILS
 	prompt "pcmcia-utils...................... PCMCIA/Cardbus management utilities"
 	tristate
+	depends BR2_LINUX_PCMCIA_SUPPORT
 	select BR2_COMPILE_PCMCIA_CS
 	select BR2_PACKAGE_KMOD_PCMCIA_CORE
 	default m if CONFIG_DEVEL
diff --git a/openwrt/target/linux/Config.in b/openwrt/target/linux/Config.in
index 7a7f7a41bc..8be01a1e64 100644
--- a/openwrt/target/linux/Config.in
+++ b/openwrt/target/linux/Config.in
@@ -5,6 +5,7 @@ config BR2_LINUX_2_4_BRCM
 	bool "Support for Broadcom based routers [2.4]"
 	default y
 	depends BR2_mipsel
+	select BR2_LINUX_PCMCIA_SUPPORT
 	help
 	  Build firmware images for Broadcom based routers
 	  (e.g. Linksys WRT54G(S), Asus WL-500g, Motorola WR850G)
@@ -24,6 +25,7 @@ config BR2_LINUX_2_4_X86
 	bool "Support for x86 boards [2.4]"
 	default n
 	depends BR2_i386
+	select BR2_LINUX_PCMCIA_SUPPORT
 	help
 	  Build firmware images for x86 based boards
 	  (e.g. Soekris net4521 and net4801, PC Engines WRAP...)
@@ -32,6 +34,7 @@ config BR2_LINUX_2_6_BRCM
 	bool "Support for Broadcom based routers [2.6]"
 	default n
 	depends BR2_mipsel
+	select BR2_LINUX_PCMCIA_SUPPORT
 	help
 	  Build firmware images for Broadcom based routers
 	  (e.g. Netgear WGT634u)
@@ -40,12 +43,20 @@ config BR2_LINUX_2_6_X86
 	bool "Support for x86 boards [2.6]"
 	default n
 	depends BR2_i386
+	select BR2_LINUX_PCMCIA_SUPPORT
 	help
 	  Build firmware images for x86 based boards
 	  (e.g. Soekris net4521 and net4801, PC Engines WRAP...)
 
 endchoice
-	
+
+
+config BR2_LINUX_PCMCIA_SUPPORT
+	bool
+	default n
+	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_X86 || BR2_LINUX_2_6_BRCM
+
+
 comment "Device specific modules"
 
 config BR2_PACKAGE_KMOD_BRCM_ET
@@ -631,6 +642,7 @@ comment "PCMCIA/CardBus support"
 
 config BR2_PACKAGE_KMOD_PCMCIA_CORE
 	prompt "kmod-pcmcia-core.................. PCMCIA/CardBus support"
+	depends BR2_LINUX_PCMCIA_SUPPORT
 	tristate
 	default m
 
-- 
GitLab