diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-25 04:51:27 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 01:55:23 -0400 |
commit | 61bee20445935ee9802d25c261849440497497d3 (patch) | |
tree | 481d98b301e248fcd5647c859ecfe9c137d57b0f /arch/um | |
parent | ec82c32d45644998a28abad0a6a9ccdd721a054e (diff) |
x86, um: get rid of arch/um/Kconfig.arch
Teach scripts/kconfig/Makefile and top-level Makefile that arch/*/Makefile
is allowed to say Kconfig := <whatever I want instead of arch/blah/Kconfig>.
Rewrite arch/um/Kconfig and arch/um/Kconfig.<subarch> so that the latter
would be top-level one (and include the pieces of the former).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/Kconfig.common | 77 | ||||
-rw-r--r-- | arch/um/Kconfig.rest | 42 | ||||
-rw-r--r-- | arch/um/Kconfig.um (renamed from arch/um/Kconfig) | 126 | ||||
-rw-r--r-- | arch/um/Kconfig.x86 | 10 | ||||
-rw-r--r-- | arch/um/Makefile | 8 |
5 files changed, 131 insertions, 132 deletions
diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common new file mode 100644 index 00000000000..0d207e73a75 --- /dev/null +++ b/arch/um/Kconfig.common | |||
@@ -0,0 +1,77 @@ | |||
1 | config DEFCONFIG_LIST | ||
2 | string | ||
3 | option defconfig_list | ||
4 | default "arch/$ARCH/defconfig" | ||
5 | |||
6 | # UML uses the generic IRQ subsystem | ||
7 | config GENERIC_HARDIRQS | ||
8 | bool | ||
9 | default y | ||
10 | |||
11 | config UML | ||
12 | bool | ||
13 | default y | ||
14 | |||
15 | config MMU | ||
16 | bool | ||
17 | default y | ||
18 | |||
19 | config NO_IOMEM | ||
20 | def_bool y | ||
21 | |||
22 | mainmenu "Linux/Usermode Kernel Configuration" | ||
23 | |||
24 | config ISA | ||
25 | bool | ||
26 | |||
27 | config SBUS | ||
28 | bool | ||
29 | |||
30 | config PCI | ||
31 | bool | ||
32 | |||
33 | config PCMCIA | ||
34 | bool | ||
35 | |||
36 | # Yet to do! | ||
37 | config TRACE_IRQFLAGS_SUPPORT | ||
38 | bool | ||
39 | default n | ||
40 | |||
41 | config LOCKDEP_SUPPORT | ||
42 | bool | ||
43 | default y | ||
44 | |||
45 | config STACKTRACE_SUPPORT | ||
46 | bool | ||
47 | default n | ||
48 | |||
49 | config GENERIC_CALIBRATE_DELAY | ||
50 | bool | ||
51 | default y | ||
52 | |||
53 | config GENERIC_BUG | ||
54 | bool | ||
55 | default y | ||
56 | depends on BUG | ||
57 | |||
58 | config GENERIC_TIME | ||
59 | bool | ||
60 | default y | ||
61 | |||
62 | config GENERIC_CLOCKEVENTS | ||
63 | bool | ||
64 | default y | ||
65 | |||
66 | # Used in kernel/irq/manage.c and include/linux/irq.h | ||
67 | config IRQ_RELEASE_METHOD | ||
68 | bool | ||
69 | default y | ||
70 | |||
71 | config HZ | ||
72 | int | ||
73 | default 100 | ||
74 | |||
75 | config SUBARCH | ||
76 | string | ||
77 | option env="SUBARCH" | ||
diff --git a/arch/um/Kconfig.rest b/arch/um/Kconfig.rest new file mode 100644 index 00000000000..7b5cea75a6c --- /dev/null +++ b/arch/um/Kconfig.rest | |||
@@ -0,0 +1,42 @@ | |||
1 | source "init/Kconfig" | ||
2 | |||
3 | source "kernel/Kconfig.freezer" | ||
4 | |||
5 | source "drivers/block/Kconfig" | ||
6 | |||
7 | source "arch/um/Kconfig.char" | ||
8 | |||
9 | source "drivers/base/Kconfig" | ||
10 | |||
11 | source "net/Kconfig" | ||
12 | |||
13 | source "arch/um/Kconfig.net" | ||
14 | |||
15 | source "drivers/net/Kconfig" | ||
16 | |||
17 | source "drivers/connector/Kconfig" | ||
18 | |||
19 | source "fs/Kconfig" | ||
20 | |||
21 | source "security/Kconfig" | ||
22 | |||
23 | source "crypto/Kconfig" | ||
24 | |||
25 | source "lib/Kconfig" | ||
26 | |||
27 | source "drivers/scsi/Kconfig" | ||
28 | |||
29 | source "drivers/md/Kconfig" | ||
30 | |||
31 | if BROKEN | ||
32 | source "drivers/mtd/Kconfig" | ||
33 | endif | ||
34 | |||
35 | source "drivers/leds/Kconfig" | ||
36 | |||
37 | #This is just to shut up some Kconfig warnings, so no prompt. | ||
38 | config INPUT | ||
39 | bool | ||
40 | default n | ||
41 | |||
42 | source "arch/um/Kconfig.debug" | ||
diff --git a/arch/um/Kconfig b/arch/um/Kconfig.um index a0801fda0be..ec2b8da1aba 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig.um | |||
@@ -1,79 +1,3 @@ | |||
1 | config DEFCONFIG_LIST | ||
2 | string | ||
3 | option defconfig_list | ||
4 | default "arch/$ARCH/defconfig" | ||
5 | |||
6 | # UML uses the generic IRQ subsystem | ||
7 | config GENERIC_HARDIRQS | ||
8 | bool | ||
9 | default y | ||
10 | |||
11 | config UML | ||
12 | bool | ||
13 | default y | ||
14 | |||
15 | config MMU | ||
16 | bool | ||
17 | default y | ||
18 | |||
19 | config NO_IOMEM | ||
20 | def_bool y | ||
21 | |||
22 | mainmenu "Linux/Usermode Kernel Configuration" | ||
23 | |||
24 | config ISA | ||
25 | bool | ||
26 | |||
27 | config SBUS | ||
28 | bool | ||
29 | |||
30 | config PCI | ||
31 | bool | ||
32 | |||
33 | config PCMCIA | ||
34 | bool | ||
35 | |||
36 | # Yet to do! | ||
37 | config TRACE_IRQFLAGS_SUPPORT | ||
38 | bool | ||
39 | default n | ||
40 | |||
41 | config LOCKDEP_SUPPORT | ||
42 | bool | ||
43 | default y | ||
44 | |||
45 | config STACKTRACE_SUPPORT | ||
46 | bool | ||
47 | default n | ||
48 | |||
49 | config GENERIC_CALIBRATE_DELAY | ||
50 | bool | ||
51 | default y | ||
52 | |||
53 | config GENERIC_BUG | ||
54 | bool | ||
55 | default y | ||
56 | depends on BUG | ||
57 | |||
58 | config GENERIC_TIME | ||
59 | bool | ||
60 | default y | ||
61 | |||
62 | config GENERIC_CLOCKEVENTS | ||
63 | bool | ||
64 | default y | ||
65 | |||
66 | # Used in kernel/irq/manage.c and include/linux/irq.h | ||
67 | config IRQ_RELEASE_METHOD | ||
68 | bool | ||
69 | default y | ||
70 | |||
71 | config HZ | ||
72 | int | ||
73 | default 100 | ||
74 | |||
75 | menu "UML-specific options" | ||
76 | |||
77 | config STATIC_LINK | 1 | config STATIC_LINK |
78 | bool "Force a static link" | 2 | bool "Force a static link" |
79 | default n | 3 | default n |
@@ -85,11 +9,6 @@ config STATIC_LINK | |||
85 | Additionally, this option enables using higher memory spaces (up to | 9 | Additionally, this option enables using higher memory spaces (up to |
86 | 2.75G) for UML. | 10 | 2.75G) for UML. |
87 | 11 | ||
88 | config SUBARCH | ||
89 | string | ||
90 | option env="SUBARCH" | ||
91 | |||
92 | source "arch/um/Kconfig.arch" | ||
93 | source "mm/Kconfig" | 12 | source "mm/Kconfig" |
94 | source "kernel/time/Kconfig" | 13 | source "kernel/time/Kconfig" |
95 | 14 | ||
@@ -228,48 +147,3 @@ config KERNEL_STACK_ORDER | |||
228 | This option determines the size of UML kernel stacks. They will | 147 | This option determines the size of UML kernel stacks. They will |
229 | be 1 << order pages. The default is OK unless you're running Valgrind | 148 | be 1 << order pages. The default is OK unless you're running Valgrind |
230 | on UML, in which case, set this to 3. | 149 | on UML, in which case, set this to 3. |
231 | |||
232 | endmenu | ||
233 | |||
234 | source "init/Kconfig" | ||
235 | |||
236 | source "kernel/Kconfig.freezer" | ||
237 | |||
238 | source "drivers/block/Kconfig" | ||
239 | |||
240 | source "arch/um/Kconfig.char" | ||
241 | |||
242 | source "drivers/base/Kconfig" | ||
243 | |||
244 | source "net/Kconfig" | ||
245 | |||
246 | source "arch/um/Kconfig.net" | ||
247 | |||
248 | source "drivers/net/Kconfig" | ||
249 | |||
250 | source "drivers/connector/Kconfig" | ||
251 | |||
252 | source "fs/Kconfig" | ||
253 | |||
254 | source "security/Kconfig" | ||
255 | |||
256 | source "crypto/Kconfig" | ||
257 | |||
258 | source "lib/Kconfig" | ||
259 | |||
260 | source "drivers/scsi/Kconfig" | ||
261 | |||
262 | source "drivers/md/Kconfig" | ||
263 | |||
264 | if BROKEN | ||
265 | source "drivers/mtd/Kconfig" | ||
266 | endif | ||
267 | |||
268 | source "drivers/leds/Kconfig" | ||
269 | |||
270 | #This is just to shut up some Kconfig warnings, so no prompt. | ||
271 | config INPUT | ||
272 | bool | ||
273 | default n | ||
274 | |||
275 | source "arch/um/Kconfig.debug" | ||
diff --git a/arch/um/Kconfig.x86 b/arch/um/Kconfig.x86 index 76200c9f454..5ee328099c6 100644 --- a/arch/um/Kconfig.x86 +++ b/arch/um/Kconfig.x86 | |||
@@ -1,3 +1,7 @@ | |||
1 | source "arch/um/Kconfig.common" | ||
2 | |||
3 | menu "UML-specific options" | ||
4 | |||
1 | menu "Host processor type and features" | 5 | menu "Host processor type and features" |
2 | 6 | ||
3 | source "arch/x86/Kconfig.cpu" | 7 | source "arch/x86/Kconfig.cpu" |
@@ -44,3 +48,9 @@ config SMP_BROKEN | |||
44 | 48 | ||
45 | config GENERIC_HWEIGHT | 49 | config GENERIC_HWEIGHT |
46 | def_bool y | 50 | def_bool y |
51 | |||
52 | source "arch/um/Kconfig.um" | ||
53 | |||
54 | endmenu | ||
55 | |||
56 | source "arch/um/Kconfig.rest" | ||
diff --git a/arch/um/Makefile b/arch/um/Makefile index 10894405ca7..425b8193961 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -87,11 +87,7 @@ define archhelp | |||
87 | echo ' find in the kernel root.' | 87 | echo ' find in the kernel root.' |
88 | endef | 88 | endef |
89 | 89 | ||
90 | ifneq ($(KBUILD_SRC),) | 90 | KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH) |
91 | $(shell mkdir -p $(ARCH_DIR) && ln -fsn $(srctree)/$(ARCH_DIR)/Kconfig.$(HEADER_ARCH) $(ARCH_DIR)/Kconfig.arch) | ||
92 | else | ||
93 | $(shell ln -fsn Kconfig.$(HEADER_ARCH) $(ARCH_DIR)/Kconfig.arch) | ||
94 | endif | ||
95 | 91 | ||
96 | archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/shared/user_constants.h | 92 | archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/shared/user_constants.h |
97 | prepare: $(ARCH_DIR)/include/shared/kern_constants.h | 93 | prepare: $(ARCH_DIR)/include/shared/kern_constants.h |
@@ -128,7 +124,7 @@ endef | |||
128 | # TT or skas makefiles and don't clean skas_ptregs.h. | 124 | # TT or skas makefiles and don't clean skas_ptregs.h. |
129 | CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/shared/uml-config.h \ | 125 | CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/shared/uml-config.h \ |
130 | $(ARCH_DIR)/include/shared/user_constants.h \ | 126 | $(ARCH_DIR)/include/shared/user_constants.h \ |
131 | $(ARCH_DIR)/include/shared/kern_constants.h $(ARCH_DIR)/Kconfig.arch | 127 | $(ARCH_DIR)/include/shared/kern_constants.h |
132 | 128 | ||
133 | MRPROPER_FILES += $(ARCH_SYMLINKS) | 129 | MRPROPER_FILES += $(ARCH_SYMLINKS) |
134 | 130 | ||