Skip to contentSkip to conversation

Subject: [PATCH 78/91] um: switch to use of drivers/Kconfig

PATCH Al Viro 2 participants 2 messages Aug 18, 2011

Subsystems (10)
lore
Share & tools
lore

Al Viro

author
#0 lore raw
---
 arch/um/Kconfig.rest           |   23 +----------------------
 drivers/char/Kconfig           |    6 +++---
 drivers/char/ttyprintk.c       |    2 +-
 drivers/input/Kconfig          |    2 +-
 drivers/isdn/Kconfig           |    2 +-
 drivers/misc/Kconfig           |    1 +
 drivers/power/Kconfig          |    1 +
 drivers/rtc/Kconfig            |    2 +-
 drivers/tty/Kconfig            |    2 +-
 drivers/watchdog/Kconfig       |    2 +-
 security/integrity/ima/Kconfig |    2 +-
 sound/Kconfig                  |    2 +-
 12 files changed, 14 insertions(+), 33 deletions(-)
arch/um/Kconfig.rest +1 -22
index 0ccad0f..567eb5f 100644
@@ -2,20 +2,14 @@ source "init/Kconfig"
 
 source "kernel/Kconfig.freezer"
 
-source "drivers/block/Kconfig"
-
 source "arch/um/Kconfig.char"
 
-source "drivers/base/Kconfig"
+source "drivers/Kconfig"
 
 source "net/Kconfig"
 
 source "arch/um/Kconfig.net"
 
-source "drivers/net/Kconfig"
-
-source "drivers/connector/Kconfig"
-
 source "fs/Kconfig"
 
 source "security/Kconfig"
@@ -24,19 +18,4 @@ source "crypto/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"
drivers/char/Kconfig +3 -3
index 423fd56..4364303 100644
@@ -298,7 +298,7 @@ if RTC_LIB=n
 config RTC
 	tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)"
 	depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \
-			&& !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN
+			&& !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN && !UML
 	---help---
 	  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
@@ -346,7 +346,7 @@ config JS_RTC
 
 config GEN_RTC
 	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---
 	  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
@@ -490,7 +490,7 @@ config SCx200_GPIO
 
 config PC8736x_GPIO
 	tristate "NatSemi PC8736x GPIO Support"
-	depends on X86_32
+	depends on X86_32 && !UML
 	default SCx200_GPIO	# mostly N
 	select NSC_GPIO		# needed for support routines
 	help
drivers/char/ttyprintk.c +1 -1
index a1f68af..f228615 100644
@@ -170,7 +170,7 @@ static const struct tty_operations ttyprintk_ops = {
 	.ioctl = tpk_ioctl,
 };
 
-struct tty_port_operations null_ops = { };
+static struct tty_port_operations null_ops = { };
 
 static struct tty_driver *ttyprintk_driver;
 
drivers/input/Kconfig +1 -1
index 23e82e4..001b147 100644
@@ -3,7 +3,7 @@
 #
 
 menu "Input device support"
-	depends on !S390
+	depends on !S390 && !UML
 
 config INPUT
 	tristate "Generic input layer (needed for keyboard, mouse, ...)" if EXPERT
drivers/isdn/Kconfig +1 -1
index 4fb6016..a233ed5 100644
@@ -5,7 +5,7 @@
 menuconfig ISDN
 	bool "ISDN support"
 	depends on NET
-	depends on !S390
+	depends on !S390 && !UML
 	---help---
 	  ISDN ("Integrated Services Digital Network", called RNIS in France)
 	  is a fully digital telephone service that can be used for voice and
drivers/misc/Kconfig +1 -0
index 0a4d86c..4447ea3 100644
@@ -146,6 +146,7 @@ config PHANTOM
 
 config INTEL_MID_PTI
 	tristate "Parallel Trace Interface for MIPI P1149.7 cJTAG standard"
+	depends on HAS_IOMEM
 	default n
 	help
 	  The PTI (Parallel Trace Interface) driver directs
drivers/power/Kconfig +1 -0
index 57de051..9f88641 100644
@@ -70,6 +70,7 @@ config BATTERY_DS2760
 
 config BATTERY_DS2780
 	tristate "DS2780 battery driver"
+	depends on HAS_IOMEM
 	select W1
 	select W1_SLAVE_DS2780
 	help
drivers/rtc/Kconfig +1 -1
index 5a538fc..53eb4e5 100644
@@ -8,7 +8,7 @@ config RTC_LIB
 menuconfig RTC_CLASS
 	bool "Real Time Clock"
 	default n
-	depends on !S390
+	depends on !S390 && !UML
 	select RTC_LIB
 	help
 	  Generic RTC class support. If you say yes here, you will
drivers/tty/Kconfig +1 -1
index bd7cc05..aa07914 100644
@@ -1,6 +1,6 @@
 config VT
 	bool "Virtual terminal" if EXPERT
-	depends on !S390
+	depends on !S390 && !UML
 	select INPUT
 	default y
 	---help---
drivers/watchdog/Kconfig +1 -1
index 86b0735..be740ce 100644
@@ -726,7 +726,7 @@ config SBC8360_WDT
 
 config SBC7240_WDT
 	tristate "SBC Nano 7240 Watchdog Timer"
-	depends on X86_32
+	depends on X86_32 && !UML
 	---help---
 	  This is the driver for the hardware watchdog found on the IEI
 	  single board computers EPIC Nano 7240 (and likely others). This
security/integrity/ima/Kconfig +1 -1
index b6ecfd4..5294d73 100644
@@ -8,7 +8,7 @@ config IMA
 	select CRYPTO_HMAC
 	select CRYPTO_MD5
 	select CRYPTO_SHA1
-	select TCG_TPM if !S390
+	select TCG_TPM if !S390 && !UML
 	select TCG_TIS if TCG_TPM
 	help
 	  The Trusted Computing Group(TCG) runtime Integrity
sound/Kconfig +1 -1
index 1fef141..261a03c 100644
@@ -59,7 +59,7 @@ config SOUND_OSS_CORE_PRECLAIM
 
 source "sound/oss/dmasound/Kconfig"
 
-if !M68K
+if !M68K && !UML
 
 menuconfig SND
 	tristate "Advanced Linux Sound Architecture"
Signature · 1 line
1.7.2.5
#1 lore raw

Hi,

Quoted 78 lines · Al Viro

---
 arch/um/Kconfig.rest           |   23 +---------------------- drivers/char/Kconfig           |    6 +++--- drivers/char/ttyprintk.c       |    2 +-

 drivers/input/Kconfig          |    2 +-
 drivers/isdn/Kconfig           |    2 +-
 drivers/misc/Kconfig           |    1 +
 drivers/power/Kconfig          |    1 +

 drivers/rtc/Kconfig            |    2 +-
 drivers/tty/Kconfig            |    2 +-
 drivers/watchdog/Kconfig       |    2 +-
 security/integrity/ima/Kconfig |    2 +-
 sound/Kconfig                  |    2 +-

 12 files changed, 14 insertions(+), 33 deletions(-)
arch/um/Kconfig.rest +0 -0
index 0ccad0f..567eb5f 100644
@@ -2,20 +2,14 @@ source "init/Kconfig"
 

 source "kernel/Kconfig.freezer"

arch/um/Kconfig.rest +0 -2
-source "drivers/block/Kconfig"
-

 source "arch/um/Kconfig.char"

arch/um/Kconfig.rest +1 -1
-source "drivers/base/Kconfig"
+source "drivers/Kconfig"

 source "net/Kconfig"

 source "arch/um/Kconfig.net"

arch/um/Kconfig.rest +0 -4
-source "drivers/net/Kconfig"
-
-source "drivers/connector/Kconfig"
-

 source "fs/Kconfig"

 source "security/Kconfig"

arch/um/Kconfig.rest +0 -0
@@ -24,19 +18,4 @@ source "crypto/Kconfig"
 

 source "lib/Kconfig"

arch/um/Kconfig.rest +0 -15
-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"

drivers/char/Kconfig +0 -0
index 423fd56..4364303 100644
@@ -298,7 +298,7 @@ if RTC_LIB=n

 config RTC
       tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)" depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \
-                       && !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN
+                       && !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN && !UML ---help---
         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

drivers/char/Kconfig +0 -0
@@ -346,7 +346,7 @@ config JS_RTC
 
Quoted 4 lines

 config GEN_RTC
       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

shouldn't all these, at some point, only depends on an ARCH-selected HAVE_RTC-like symbols ? I know this is not the point of this patch, but I have a few WIP patches in this area, so I'm just asking. This dependency line is really ugly.

Thanks,
- Arnaud

Quoted 143 lines

       ---help---
         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

drivers/char/Kconfig +0 -0
@@ -490,7 +490,7 @@ config SCx200_GPIO
 

 config PC8736x_GPIO
       tristate "NatSemi PC8736x GPIO Support"
-       depends on X86_32
+       depends on X86_32 && !UML
       default SCx200_GPIO     # mostly N
       select NSC_GPIO         # needed for support routines help

drivers/char/ttyprintk.c +1 -1
index a1f68af..f228615 100644
@@ -170,7 +170,7 @@ static const struct tty_operations ttyprintk_ops = {
        .ioctl = tpk_ioctl,
  };
 
-struct tty_port_operations null_ops = { };
+static struct tty_port_operations null_ops = { };
 
  static struct tty_driver *ttyprintk_driver;
 
drivers/input/Kconfig +0 -0
index 23e82e4..001b147 100644
@@ -3,7 +3,7 @@
  #
 

 menu "Input device support"
-       depends on !S390
+       depends on !S390 && !UML

 config INPUT
       tristate "Generic input layer (needed for keyboard, mouse, ...)" if EXPERT

drivers/isdn/Kconfig +0 -0
index 4fb6016..a233ed5 100644
@@ -5,7 +5,7 @@

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

drivers/misc/Kconfig +0 -0
index 0a4d86c..4447ea3 100644
@@ -146,6 +146,7 @@ config PHANTOM
 

 config INTEL_MID_PTI
       tristate "Parallel Trace Interface for MIPI P1149.7 cJTAG standard"
+       depends on HAS_IOMEM
       default n
       help
         The PTI (Parallel Trace Interface) driver directs

drivers/power/Kconfig +0 -0
index 57de051..9f88641 100644
@@ -70,6 +70,7 @@ config BATTERY_DS2760
 

 config BATTERY_DS2780
       tristate "DS2780 battery driver"
+       depends on HAS_IOMEM
       select W1
       select W1_SLAVE_DS2780
       help

drivers/rtc/Kconfig +0 -0
index 5a538fc..53eb4e5 100644
@@ -8,7 +8,7 @@ config RTC_LIB

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

drivers/tty/Kconfig +0 -0
index bd7cc05..aa07914 100644
@@ -1,6 +1,6 @@

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

drivers/watchdog/Kconfig +0 -0
index 86b0735..be740ce 100644
@@ -726,7 +726,7 @@ config SBC8360_WDT
 

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

security/integrity/ima/Kconfig +0 -0
index b6ecfd4..5294d73 100644
@@ -8,7 +8,7 @@ config IMA

       select CRYPTO_HMAC
       select CRYPTO_MD5
       select CRYPTO_SHA1
-       select TCG_TPM if !S390
+       select TCG_TPM if !S390 && !UML
       select TCG_TIS if TCG_TPM
       help
         The Trusted Computing Group(TCG) runtime Integrity

sound/Kconfig +0 -0
index 1fef141..261a03c 100644
@@ -59,7 +59,7 @@ config SOUND_OSS_CORE_PRECLAIM
 

 source "sound/oss/dmasound/Kconfig"

sound/Kconfig +1 -1
-if !M68K
+if !M68K && !UML

 menuconfig SND
       tristate "Advanced Linux Sound Architecture" --
1.7.2.5

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/