aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-07-19 04:49:27 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:52 -0400
commit709e89266b60eff444fc512400321eb02d2474eb (patch)
tree39df4acd6e6180186db0b7e04c34237ccdca233b
parent6db7016d17b235a24e0c1544c202defa47ae7247 (diff)
lguest: the Makefile and Kconfig
This is the Kconfig and Makefile to allow lguest to actually be compiled. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/Kconfig2
-rw-r--r--drivers/Makefile1
-rw-r--r--drivers/lguest/Kconfig20
-rw-r--r--drivers/lguest/Makefile7
4 files changed, 30 insertions, 0 deletions
diff --git a/drivers/Kconfig b/drivers/Kconfig
index ae01d86070b..707650ab77a 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -85,4 +85,6 @@ source "drivers/auxdisplay/Kconfig"
85source "drivers/kvm/Kconfig" 85source "drivers/kvm/Kconfig"
86 86
87source "drivers/uio/Kconfig" 87source "drivers/uio/Kconfig"
88
89source "drivers/lguest/Kconfig"
88endmenu 90endmenu
diff --git a/drivers/Makefile b/drivers/Makefile
index c34c8efff60..0ea8e3237c0 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -73,6 +73,7 @@ obj-$(CONFIG_ISDN) += isdn/
73obj-$(CONFIG_EDAC) += edac/ 73obj-$(CONFIG_EDAC) += edac/
74obj-$(CONFIG_MCA) += mca/ 74obj-$(CONFIG_MCA) += mca/
75obj-$(CONFIG_EISA) += eisa/ 75obj-$(CONFIG_EISA) += eisa/
76obj-$(CONFIG_LGUEST_GUEST) += lguest/
76obj-$(CONFIG_CPU_FREQ) += cpufreq/ 77obj-$(CONFIG_CPU_FREQ) += cpufreq/
77obj-$(CONFIG_MMC) += mmc/ 78obj-$(CONFIG_MMC) += mmc/
78obj-$(CONFIG_NEW_LEDS) += leds/ 79obj-$(CONFIG_NEW_LEDS) += leds/
diff --git a/drivers/lguest/Kconfig b/drivers/lguest/Kconfig
new file mode 100644
index 00000000000..43d901fdc77
--- /dev/null
+++ b/drivers/lguest/Kconfig
@@ -0,0 +1,20 @@
1config LGUEST
2 tristate "Linux hypervisor example code"
3 depends on X86 && PARAVIRT && NET && EXPERIMENTAL && !X86_PAE
4 select LGUEST_GUEST
5 select HVC_DRIVER
6 ---help---
7 This is a very simple module which allows you to run
8 multiple instances of the same Linux kernel, using the
9 "lguest" command found in the Documentation/lguest directory.
10 Note that "lguest" is pronounced to rhyme with "fell quest",
11 not "rustyvisor". See Documentation/lguest/lguest.txt.
12
13 If unsure, say N. If curious, say M. If masochistic, say Y.
14
15config LGUEST_GUEST
16 bool
17 help
18 The guest needs code built-in, even if the host has lguest
19 support as a module. The drivers are tiny, so we build them
20 in too.
diff --git a/drivers/lguest/Makefile b/drivers/lguest/Makefile
new file mode 100644
index 00000000000..55382c7d799
--- /dev/null
+++ b/drivers/lguest/Makefile
@@ -0,0 +1,7 @@
1# Guest requires the paravirt_ops replacement and the bus driver.
2obj-$(CONFIG_LGUEST_GUEST) += lguest.o lguest_asm.o lguest_bus.o
3
4# Host requires the other files, which can be a module.
5obj-$(CONFIG_LGUEST) += lg.o
6lg-y := core.o hypercalls.o page_tables.o interrupts_and_traps.o \
7 segments.o io.o lguest_user.o switcher.o