Skip to content

Commit d805a78

Browse files
Al Virorichardweinberger
authored andcommitted
um: clean Kconfig up a bit
* kill duplicates with drivers/char/Kconfig * take watchdog one into drivers/watchdog/Kconfig * take mmapper to arch/um/Kconfig.um * rename Kconfig.char menu to "UML Character Devices" Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent bad3118 commit d805a78

4 files changed

Lines changed: 26 additions & 113 deletions

File tree

‎arch/um/Kconfig.char‎

Lines changed: 1 addition & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
menu "Character Devices"
1+
menu "UML Character Devices"
32

43
config STDERR_CONSOLE
54
bool "stderr console"
@@ -105,92 +104,6 @@ config SSL_CHAN
105104
this if you expect the UML that you build to be run in environments
106105
which don't have a set of /dev/pty* devices.
107106

108-
config UNIX98_PTYS
109-
bool "Unix98 PTY support"
110-
help
111-
A pseudo terminal (PTY) is a software device consisting of two
112-
halves: a master and a slave. The slave device behaves identical to
113-
a physical terminal; the master device is used by a process to
114-
read data from and write data to the slave, thereby emulating a
115-
terminal. Typical programs for the master side are telnet servers
116-
and xterms.
117-
118-
Linux has traditionally used the BSD-like names /dev/ptyxx for
119-
masters and /dev/ttyxx for slaves of pseudo terminals. This scheme
120-
has a number of problems. The GNU C library glibc 2.1 and later,
121-
however, supports the Unix98 naming standard: in order to acquire a
122-
pseudo terminal, a process opens /dev/ptmx; the number of the pseudo
123-
terminal is then made available to the process and the pseudo
124-
terminal slave can be accessed as /dev/pts/<number>. What was
125-
traditionally /dev/ttyp2 will then be /dev/pts/2, for example.
126-
127-
All modern Linux systems use the Unix98 ptys. Say Y unless
128-
you're on an embedded system and want to conserve memory.
129-
130-
config LEGACY_PTYS
131-
bool "Legacy (BSD) PTY support"
132-
default y
133-
help
134-
A pseudo terminal (PTY) is a software device consisting of two
135-
halves: a master and a slave. The slave device behaves identical to
136-
a physical terminal; the master device is used by a process to
137-
read data from and write data to the slave, thereby emulating a
138-
terminal. Typical programs for the master side are telnet servers
139-
and xterms.
140-
141-
Linux has traditionally used the BSD-like names /dev/ptyxx
142-
for masters and /dev/ttyxx for slaves of pseudo
143-
terminals. This scheme has a number of problems, including
144-
security. This option enables these legacy devices; on most
145-
systems, it is safe to say N.
146-
147-
config RAW_DRIVER
148-
tristate "RAW driver (/dev/raw/rawN)"
149-
depends on BLOCK
150-
help
151-
The raw driver permits block devices to be bound to /dev/raw/rawN.
152-
Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O.
153-
See the raw(8) manpage for more details.
154-
155-
Applications should preferably open the device (eg /dev/hda1)
156-
with the O_DIRECT flag.
157-
158-
config MAX_RAW_DEVS
159-
int "Maximum number of RAW devices to support (1-8192)"
160-
depends on RAW_DRIVER
161-
default "256"
162-
help
163-
The maximum number of RAW devices that are supported.
164-
Default is 256. Increase this number in case you need lots of
165-
raw devices.
166-
167-
config LEGACY_PTY_COUNT
168-
int "Maximum number of legacy PTY in use"
169-
depends on LEGACY_PTYS
170-
default "256"
171-
help
172-
The maximum number of legacy PTYs that can be used at any one time.
173-
The default is 256, and should be more than enough. Embedded
174-
systems may want to reduce this to save memory.
175-
176-
When not in use, each legacy PTY occupies 12 bytes on 32-bit
177-
architectures and 24 bytes on 64-bit architectures.
178-
179-
config WATCHDOG
180-
bool "Watchdog Timer Support"
181-
182-
config WATCHDOG_NOWAYOUT
183-
bool "Disable watchdog shutdown on close"
184-
depends on WATCHDOG
185-
186-
config SOFT_WATCHDOG
187-
tristate "Software Watchdog"
188-
depends on WATCHDOG
189-
190-
config UML_WATCHDOG
191-
tristate "UML watchdog"
192-
depends on WATCHDOG
193-
194107
config UML_SOUND
195108
tristate "Sound support"
196109
help
@@ -211,29 +124,4 @@ config HOSTAUDIO
211124
tristate
212125
default UML_SOUND
213126

214-
#It is selected elsewhere, so kconfig would warn without this.
215-
config HW_RANDOM
216-
tristate
217-
default n
218-
219-
config UML_RANDOM
220-
tristate "Hardware random number generator"
221-
help
222-
This option enables UML's "hardware" random number generator. It
223-
attaches itself to the host's /dev/random, supplying as much entropy
224-
as the host has, rather than the small amount the UML gets from its
225-
own drivers. It registers itself as a standard hardware random number
226-
generator, major 10, minor 183, and the canonical device name is
227-
/dev/hwrng.
228-
The way to make use of this is to install the rng-tools package
229-
(check your distro, or download from
230-
http://sourceforge.net/projects/gkernel/). rngd periodically reads
231-
/dev/hwrng and injects the entropy into /dev/random.
232-
233-
config MMAPPER
234-
tristate "iomem emulation driver"
235-
help
236-
This driver allows a host file to be used as emulated IO memory inside
237-
UML.
238-
239127
endmenu

‎arch/um/Kconfig.um‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,11 @@ config KERNEL_STACK_ORDER
148148
be 1 << order pages. The default is OK unless you're running Valgrind
149149
on UML, in which case, set this to 3.
150150

151+
config MMAPPER
152+
tristate "iomem emulation driver"
153+
help
154+
This driver allows a host file to be used as emulated IO memory inside
155+
UML.
156+
151157
config NO_DMA
152158
def_bool y

‎drivers/char/hw_random/Kconfig‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,18 @@ config HW_RANDOM_PPC4XX
222222
module will be called ppc4xx-rng.
223223

224224
If unsure, say N.
225+
226+
config UML_RANDOM
227+
depends on UML
228+
tristate "Hardware random number generator"
229+
help
230+
This option enables UML's "hardware" random number generator. It
231+
attaches itself to the host's /dev/random, supplying as much entropy
232+
as the host has, rather than the small amount the UML gets from its
233+
own drivers. It registers itself as a standard hardware random number
234+
generator, major 10, minor 183, and the canonical device name is
235+
/dev/hwrng.
236+
The way to make use of this is to install the rng-tools package
237+
(check your distro, or download from
238+
http://sourceforge.net/projects/gkernel/). rngd periodically reads
239+
/dev/hwrng and injects the entropy into /dev/random.

‎drivers/watchdog/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,10 @@ config XEN_WDT
11741174
by Xen 4.0 and newer. The watchdog timeout period is normally one
11751175
minute but can be changed with a boot-time parameter.
11761176

1177+
config UML_WATCHDOG
1178+
tristate "UML watchdog"
1179+
depends on UML
1180+
11771181
#
11781182
# ISA-based Watchdog Cards
11791183
#

0 commit comments

Comments
 (0)