diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-09-27 00:14:46 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2013-11-17 05:31:48 -0500 |
commit | e40f04d040c66d8312ecfaf6091b2da78531276c (patch) | |
tree | e6786cca4420e8d7ecdc5cc9a5b62aa7eedad684 /arch/um/configs | |
parent | e96d1c3695d6f5fde010d27e2a245a6656de688c (diff) |
arch/um: make it work with defconfig and x86_64
arch/um/defconfig only lists one default configuration, and that applies
only to the i386 architecture. Replace it with two minimal
configuration files generated using `make savedefconfig`:
i386_defconfig and x86_64_defconfig
The build scripts now require two updates:
1. um's Kconfig (arch/x86/um/Kconfig) should specify an ARCH_DEFCONFIG
section explicitly pointing to these scripts if the required
variables are set. Take care to remove the DEFCONFIG_LIST section
defined in the included file arch/um/Kconfig.common.
2. um's Makefile (arch/um/Makefile) should set KBUILD_DEFCONFIG properly
for the top-level Makefile to pick up. Copy the logic in
arch/x86/Makefile to properly pick the defconfig file depending on
the actual architecture; except we're working with $SUBARCH here,
instead of $ARCH.
Now, you can do:
$ ARCH=um make defconfig
$ ARCH=um make
and successfully build User-Mode Linux on an x86_64 box in default
configuration.
Cc: Richard Weinberger <richard@nod.at>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/configs')
-rw-r--r-- | arch/um/configs/i386_defconfig | 76 | ||||
-rw-r--r-- | arch/um/configs/x86_64_defconfig | 75 |
2 files changed, 151 insertions, 0 deletions
diff --git a/arch/um/configs/i386_defconfig b/arch/um/configs/i386_defconfig new file mode 100644 index 000000000000..a12bf68c9f3a --- /dev/null +++ b/arch/um/configs/i386_defconfig | |||
@@ -0,0 +1,76 @@ | |||
1 | CONFIG_3_LEVEL_PGTABLES=y | ||
2 | # CONFIG_COMPACTION is not set | ||
3 | CONFIG_BINFMT_MISC=m | ||
4 | CONFIG_HOSTFS=y | ||
5 | CONFIG_MAGIC_SYSRQ=y | ||
6 | CONFIG_KERNEL_STACK_ORDER=1 | ||
7 | CONFIG_SYSVIPC=y | ||
8 | CONFIG_POSIX_MQUEUE=y | ||
9 | CONFIG_NO_HZ=y | ||
10 | CONFIG_HIGH_RES_TIMERS=y | ||
11 | CONFIG_BSD_PROCESS_ACCT=y | ||
12 | CONFIG_IKCONFIG=y | ||
13 | CONFIG_IKCONFIG_PROC=y | ||
14 | CONFIG_LOG_BUF_SHIFT=14 | ||
15 | CONFIG_CGROUPS=y | ||
16 | CONFIG_CGROUP_FREEZER=y | ||
17 | CONFIG_CGROUP_DEVICE=y | ||
18 | CONFIG_CPUSETS=y | ||
19 | CONFIG_CGROUP_CPUACCT=y | ||
20 | CONFIG_RESOURCE_COUNTERS=y | ||
21 | CONFIG_CGROUP_SCHED=y | ||
22 | CONFIG_BLK_CGROUP=y | ||
23 | # CONFIG_PID_NS is not set | ||
24 | CONFIG_SYSFS_DEPRECATED=y | ||
25 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
26 | CONFIG_SLAB=y | ||
27 | CONFIG_MODULES=y | ||
28 | CONFIG_MODULE_UNLOAD=y | ||
29 | # CONFIG_BLK_DEV_BSG is not set | ||
30 | CONFIG_IOSCHED_CFQ=m | ||
31 | CONFIG_SSL=y | ||
32 | CONFIG_NULL_CHAN=y | ||
33 | CONFIG_PORT_CHAN=y | ||
34 | CONFIG_PTY_CHAN=y | ||
35 | CONFIG_TTY_CHAN=y | ||
36 | CONFIG_XTERM_CHAN=y | ||
37 | CONFIG_CON_CHAN="pts" | ||
38 | CONFIG_SSL_CHAN="pts" | ||
39 | CONFIG_UML_SOUND=m | ||
40 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
41 | CONFIG_DEVTMPFS=y | ||
42 | CONFIG_DEVTMPFS_MOUNT=y | ||
43 | CONFIG_BLK_DEV_UBD=y | ||
44 | CONFIG_BLK_DEV_LOOP=m | ||
45 | CONFIG_BLK_DEV_NBD=m | ||
46 | CONFIG_DUMMY=m | ||
47 | CONFIG_TUN=m | ||
48 | CONFIG_PPP=m | ||
49 | CONFIG_SLIP=m | ||
50 | CONFIG_LEGACY_PTY_COUNT=32 | ||
51 | # CONFIG_HW_RANDOM is not set | ||
52 | CONFIG_UML_RANDOM=y | ||
53 | CONFIG_NET=y | ||
54 | CONFIG_PACKET=y | ||
55 | CONFIG_UNIX=y | ||
56 | CONFIG_INET=y | ||
57 | # CONFIG_INET_LRO is not set | ||
58 | # CONFIG_IPV6 is not set | ||
59 | CONFIG_UML_NET=y | ||
60 | CONFIG_UML_NET_ETHERTAP=y | ||
61 | CONFIG_UML_NET_TUNTAP=y | ||
62 | CONFIG_UML_NET_SLIP=y | ||
63 | CONFIG_UML_NET_DAEMON=y | ||
64 | CONFIG_UML_NET_MCAST=y | ||
65 | CONFIG_UML_NET_SLIRP=y | ||
66 | CONFIG_EXT4_FS=y | ||
67 | CONFIG_REISERFS_FS=y | ||
68 | CONFIG_QUOTA=y | ||
69 | CONFIG_AUTOFS4_FS=m | ||
70 | CONFIG_ISO9660_FS=m | ||
71 | CONFIG_JOLIET=y | ||
72 | CONFIG_PROC_KCORE=y | ||
73 | CONFIG_TMPFS=y | ||
74 | CONFIG_NLS=y | ||
75 | CONFIG_DEBUG_INFO=y | ||
76 | CONFIG_DEBUG_KERNEL=y | ||
diff --git a/arch/um/configs/x86_64_defconfig b/arch/um/configs/x86_64_defconfig new file mode 100644 index 000000000000..3aab117bd553 --- /dev/null +++ b/arch/um/configs/x86_64_defconfig | |||
@@ -0,0 +1,75 @@ | |||
1 | # CONFIG_COMPACTION is not set | ||
2 | CONFIG_BINFMT_MISC=m | ||
3 | CONFIG_HOSTFS=y | ||
4 | CONFIG_MAGIC_SYSRQ=y | ||
5 | CONFIG_SYSVIPC=y | ||
6 | CONFIG_POSIX_MQUEUE=y | ||
7 | CONFIG_NO_HZ=y | ||
8 | CONFIG_HIGH_RES_TIMERS=y | ||
9 | CONFIG_BSD_PROCESS_ACCT=y | ||
10 | CONFIG_IKCONFIG=y | ||
11 | CONFIG_IKCONFIG_PROC=y | ||
12 | CONFIG_LOG_BUF_SHIFT=14 | ||
13 | CONFIG_CGROUPS=y | ||
14 | CONFIG_CGROUP_FREEZER=y | ||
15 | CONFIG_CGROUP_DEVICE=y | ||
16 | CONFIG_CPUSETS=y | ||
17 | CONFIG_CGROUP_CPUACCT=y | ||
18 | CONFIG_RESOURCE_COUNTERS=y | ||
19 | CONFIG_CGROUP_SCHED=y | ||
20 | CONFIG_BLK_CGROUP=y | ||
21 | # CONFIG_PID_NS is not set | ||
22 | CONFIG_SYSFS_DEPRECATED=y | ||
23 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
24 | CONFIG_SLAB=y | ||
25 | CONFIG_MODULES=y | ||
26 | CONFIG_MODULE_UNLOAD=y | ||
27 | # CONFIG_BLK_DEV_BSG is not set | ||
28 | CONFIG_IOSCHED_CFQ=m | ||
29 | CONFIG_SSL=y | ||
30 | CONFIG_NULL_CHAN=y | ||
31 | CONFIG_PORT_CHAN=y | ||
32 | CONFIG_PTY_CHAN=y | ||
33 | CONFIG_TTY_CHAN=y | ||
34 | CONFIG_XTERM_CHAN=y | ||
35 | CONFIG_CON_CHAN="pts" | ||
36 | CONFIG_SSL_CHAN="pts" | ||
37 | CONFIG_UML_SOUND=m | ||
38 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
39 | CONFIG_DEVTMPFS=y | ||
40 | CONFIG_DEVTMPFS_MOUNT=y | ||
41 | CONFIG_BLK_DEV_UBD=y | ||
42 | CONFIG_BLK_DEV_LOOP=m | ||
43 | CONFIG_BLK_DEV_NBD=m | ||
44 | CONFIG_DUMMY=m | ||
45 | CONFIG_TUN=m | ||
46 | CONFIG_PPP=m | ||
47 | CONFIG_SLIP=m | ||
48 | CONFIG_LEGACY_PTY_COUNT=32 | ||
49 | # CONFIG_HW_RANDOM is not set | ||
50 | CONFIG_UML_RANDOM=y | ||
51 | CONFIG_NET=y | ||
52 | CONFIG_PACKET=y | ||
53 | CONFIG_UNIX=y | ||
54 | CONFIG_INET=y | ||
55 | # CONFIG_INET_LRO is not set | ||
56 | # CONFIG_IPV6 is not set | ||
57 | CONFIG_UML_NET=y | ||
58 | CONFIG_UML_NET_ETHERTAP=y | ||
59 | CONFIG_UML_NET_TUNTAP=y | ||
60 | CONFIG_UML_NET_SLIP=y | ||
61 | CONFIG_UML_NET_DAEMON=y | ||
62 | CONFIG_UML_NET_MCAST=y | ||
63 | CONFIG_UML_NET_SLIRP=y | ||
64 | CONFIG_EXT4_FS=y | ||
65 | CONFIG_REISERFS_FS=y | ||
66 | CONFIG_QUOTA=y | ||
67 | CONFIG_AUTOFS4_FS=m | ||
68 | CONFIG_ISO9660_FS=m | ||
69 | CONFIG_JOLIET=y | ||
70 | CONFIG_PROC_KCORE=y | ||
71 | CONFIG_TMPFS=y | ||
72 | CONFIG_NLS=y | ||
73 | CONFIG_DEBUG_INFO=y | ||
74 | CONFIG_FRAME_WARN=1024 | ||
75 | CONFIG_DEBUG_KERNEL=y | ||