Browse Source

um: switch to use of drivers/Kconfig

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Al Viro 14 years ago
parent
commit
3369465ed1

+ 1 - 22
arch/um/Kconfig.rest

@@ -2,20 +2,14 @@ source "init/Kconfig"
 
 
 source "kernel/Kconfig.freezer"
 source "kernel/Kconfig.freezer"
 
 
-source "drivers/block/Kconfig"
-
 source "arch/um/Kconfig.char"
 source "arch/um/Kconfig.char"
 
 
-source "drivers/base/Kconfig"
+source "drivers/Kconfig"
 
 
 source "net/Kconfig"
 source "net/Kconfig"
 
 
 source "arch/um/Kconfig.net"
 source "arch/um/Kconfig.net"
 
 
-source "drivers/net/Kconfig"
-
-source "drivers/connector/Kconfig"
-
 source "fs/Kconfig"
 source "fs/Kconfig"
 
 
 source "security/Kconfig"
 source "security/Kconfig"
@@ -24,19 +18,4 @@ source "crypto/Kconfig"
 
 
 source "lib/Kconfig"
 source "lib/Kconfig"
 
 
-source "drivers/scsi/Kconfig"
-
-source "drivers/md/Kconfig"
-
-if BROKEN
-	source "drivers/mtd/Kconfig"
-endif
-
-source "drivers/leds/Kconfig"
-
-#This is just to shut up some Kconfig warnings, so no prompt.
-config INPUT
-	tristate
-	default n
-
 source "arch/um/Kconfig.debug"
 source "arch/um/Kconfig.debug"

+ 3 - 3
drivers/char/Kconfig

@@ -298,7 +298,7 @@ if RTC_LIB=n
 config RTC
 config RTC
 	tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)"
 	tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)"
 	depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \
 	depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \
-			&& !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN
+			&& !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN && !UML
 	---help---
 	---help---
 	  If you say Y here and create a character special file /dev/rtc with
 	  If you say Y here and create a character special file /dev/rtc with
 	  major number 10 and minor number 135 using mknod ("man mknod"), you
 	  major number 10 and minor number 135 using mknod ("man mknod"), you
@@ -346,7 +346,7 @@ config JS_RTC
 
 
 config GEN_RTC
 config GEN_RTC
 	tristate "Generic /dev/rtc emulation"
 	tristate "Generic /dev/rtc emulation"
-	depends on RTC!=y && !IA64 && !ARM && !M32R && !MIPS && !SPARC && !FRV && !S390 && !SUPERH && !AVR32 && !BLACKFIN
+	depends on RTC!=y && !IA64 && !ARM && !M32R && !MIPS && !SPARC && !FRV && !S390 && !SUPERH && !AVR32 && !BLACKFIN && !UML
 	---help---
 	---help---
 	  If you say Y here and create a character special file /dev/rtc with
 	  If you say Y here and create a character special file /dev/rtc with
 	  major number 10 and minor number 135 using mknod ("man mknod"), you
 	  major number 10 and minor number 135 using mknod ("man mknod"), you
@@ -490,7 +490,7 @@ config SCx200_GPIO
 
 
 config PC8736x_GPIO
 config PC8736x_GPIO
 	tristate "NatSemi PC8736x GPIO Support"
 	tristate "NatSemi PC8736x GPIO Support"
-	depends on X86_32
+	depends on X86_32 && !UML
 	default SCx200_GPIO	# mostly N
 	default SCx200_GPIO	# mostly N
 	select NSC_GPIO		# needed for support routines
 	select NSC_GPIO		# needed for support routines
 	help
 	help

+ 1 - 1
drivers/char/ttyprintk.c

@@ -170,7 +170,7 @@ static const struct tty_operations ttyprintk_ops = {
 	.ioctl = tpk_ioctl,
 	.ioctl = tpk_ioctl,
 };
 };
 
 
-struct tty_port_operations null_ops = { };
+static struct tty_port_operations null_ops = { };
 
 
 static struct tty_driver *ttyprintk_driver;
 static struct tty_driver *ttyprintk_driver;
 
 

+ 1 - 1
drivers/input/Kconfig

@@ -3,7 +3,7 @@
 #
 #
 
 
 menu "Input device support"
 menu "Input device support"
-	depends on !S390
+	depends on !S390 && !UML
 
 
 config INPUT
 config INPUT
 	tristate "Generic input layer (needed for keyboard, mouse, ...)" if EXPERT
 	tristate "Generic input layer (needed for keyboard, mouse, ...)" if EXPERT

+ 1 - 1
drivers/isdn/Kconfig

@@ -5,7 +5,7 @@
 menuconfig ISDN
 menuconfig ISDN
 	bool "ISDN support"
 	bool "ISDN support"
 	depends on NET
 	depends on NET
-	depends on !S390
+	depends on !S390 && !UML
 	---help---
 	---help---
 	  ISDN ("Integrated Services Digital Network", called RNIS in France)
 	  ISDN ("Integrated Services Digital Network", called RNIS in France)
 	  is a fully digital telephone service that can be used for voice and
 	  is a fully digital telephone service that can be used for voice and

+ 1 - 0
drivers/power/Kconfig

@@ -70,6 +70,7 @@ config BATTERY_DS2760
 
 
 config BATTERY_DS2780
 config BATTERY_DS2780
 	tristate "DS2780 battery driver"
 	tristate "DS2780 battery driver"
+	depends on HAS_IOMEM
 	select W1
 	select W1
 	select W1_SLAVE_DS2780
 	select W1_SLAVE_DS2780
 	help
 	help

+ 1 - 1
drivers/rtc/Kconfig

@@ -8,7 +8,7 @@ config RTC_LIB
 menuconfig RTC_CLASS
 menuconfig RTC_CLASS
 	bool "Real Time Clock"
 	bool "Real Time Clock"
 	default n
 	default n
-	depends on !S390
+	depends on !S390 && !UML
 	select RTC_LIB
 	select RTC_LIB
 	help
 	help
 	  Generic RTC class support. If you say yes here, you will
 	  Generic RTC class support. If you say yes here, you will

+ 1 - 1
drivers/tty/Kconfig

@@ -1,6 +1,6 @@
 config VT
 config VT
 	bool "Virtual terminal" if EXPERT
 	bool "Virtual terminal" if EXPERT
-	depends on !S390
+	depends on !S390 && !UML
 	select INPUT
 	select INPUT
 	default y
 	default y
 	---help---
 	---help---

+ 1 - 1
drivers/watchdog/Kconfig

@@ -726,7 +726,7 @@ config SBC8360_WDT
 
 
 config SBC7240_WDT
 config SBC7240_WDT
 	tristate "SBC Nano 7240 Watchdog Timer"
 	tristate "SBC Nano 7240 Watchdog Timer"
-	depends on X86_32
+	depends on X86_32 && !UML
 	---help---
 	---help---
 	  This is the driver for the hardware watchdog found on the IEI
 	  This is the driver for the hardware watchdog found on the IEI
 	  single board computers EPIC Nano 7240 (and likely others). This
 	  single board computers EPIC Nano 7240 (and likely others). This

+ 1 - 1
security/integrity/ima/Kconfig

@@ -8,7 +8,7 @@ config IMA
 	select CRYPTO_HMAC
 	select CRYPTO_HMAC
 	select CRYPTO_MD5
 	select CRYPTO_MD5
 	select CRYPTO_SHA1
 	select CRYPTO_SHA1
-	select TCG_TPM if !S390
+	select TCG_TPM if !S390 && !UML
 	select TCG_TIS if TCG_TPM
 	select TCG_TIS if TCG_TPM
 	help
 	help
 	  The Trusted Computing Group(TCG) runtime Integrity
 	  The Trusted Computing Group(TCG) runtime Integrity

+ 1 - 1
sound/Kconfig

@@ -59,7 +59,7 @@ config SOUND_OSS_CORE_PRECLAIM
 
 
 source "sound/oss/dmasound/Kconfig"
 source "sound/oss/dmasound/Kconfig"
 
 
-if !M68K
+if !M68K && !UML
 
 
 menuconfig SND
 menuconfig SND
 	tristate "Advanced Linux Sound Architecture"
 	tristate "Advanced Linux Sound Architecture"