diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-29 20:25:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-29 20:37:45 -0400 |
commit | 05ff09706bacc92ccadde3a74289118789581475 (patch) | |
tree | f18f0a1ff1ac43f9f83fa3ee3508005e83259566 | |
parent | a6ce22a5f61ba838b43763bf1e5be399f9dee4d0 (diff) |
Make lguest compile with CONFIG_BLOCK=n and CONFIG_NET=n
Gabriel C reports lguest doesn't compile with CONFIG_BLOCK=n. Fix this
by introducing a config var for the block device, which depends on
LGUEST && BLOCK. Do the same for the net driver, rather then depending
gratuitously on CONFIG_NET.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Gabriel C <nix.or.die@googlemail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/block/Makefile | 2 | ||||
-rw-r--r-- | drivers/lguest/Kconfig | 10 | ||||
-rw-r--r-- | drivers/net/Makefile | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/drivers/block/Makefile b/drivers/block/Makefile index a7a099027fca..014e72121b5a 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile | |||
@@ -31,4 +31,4 @@ obj-$(CONFIG_BLK_DEV_SX8) += sx8.o | |||
31 | obj-$(CONFIG_BLK_DEV_UB) += ub.o | 31 | obj-$(CONFIG_BLK_DEV_UB) += ub.o |
32 | 32 | ||
33 | obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o | 33 | obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o |
34 | obj-$(CONFIG_LGUEST_GUEST) += lguest_blk.o | 34 | obj-$(CONFIG_LGUEST_BLOCK) += lguest_blk.o |
diff --git a/drivers/lguest/Kconfig b/drivers/lguest/Kconfig index 43d901fdc77f..888205c3f76b 100644 --- a/drivers/lguest/Kconfig +++ b/drivers/lguest/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config LGUEST | 1 | config LGUEST |
2 | tristate "Linux hypervisor example code" | 2 | tristate "Linux hypervisor example code" |
3 | depends on X86 && PARAVIRT && NET && EXPERIMENTAL && !X86_PAE | 3 | depends on X86 && PARAVIRT && EXPERIMENTAL && !X86_PAE |
4 | select LGUEST_GUEST | 4 | select LGUEST_GUEST |
5 | select HVC_DRIVER | 5 | select HVC_DRIVER |
6 | ---help--- | 6 | ---help--- |
@@ -18,3 +18,11 @@ config LGUEST_GUEST | |||
18 | The guest needs code built-in, even if the host has lguest | 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 | 19 | support as a module. The drivers are tiny, so we build them |
20 | in too. | 20 | in too. |
21 | |||
22 | config LGUEST_NET | ||
23 | tristate | ||
24 | depends on LGUEST_GUEST && NET | ||
25 | |||
26 | config LGUEST_BLOCK | ||
27 | tristate | ||
28 | depends on LGUEST_GUEST && BLOCK | ||
diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 94b78cc5fe86..e684212fd8e2 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile | |||
@@ -177,7 +177,7 @@ obj-$(CONFIG_ZORRO8390) += zorro8390.o | |||
177 | obj-$(CONFIG_HPLANCE) += hplance.o 7990.o | 177 | obj-$(CONFIG_HPLANCE) += hplance.o 7990.o |
178 | obj-$(CONFIG_MVME147_NET) += mvme147.o 7990.o | 178 | obj-$(CONFIG_MVME147_NET) += mvme147.o 7990.o |
179 | obj-$(CONFIG_EQUALIZER) += eql.o | 179 | obj-$(CONFIG_EQUALIZER) += eql.o |
180 | obj-$(CONFIG_LGUEST_GUEST) += lguest_net.o | 180 | obj-$(CONFIG_LGUEST_NET) += lguest_net.o |
181 | obj-$(CONFIG_MIPS_JAZZ_SONIC) += jazzsonic.o | 181 | obj-$(CONFIG_MIPS_JAZZ_SONIC) += jazzsonic.o |
182 | obj-$(CONFIG_MIPS_AU1X00_ENET) += au1000_eth.o | 182 | obj-$(CONFIG_MIPS_AU1X00_ENET) += au1000_eth.o |
183 | obj-$(CONFIG_MIPS_SIM_NET) += mipsnet.o | 183 | obj-$(CONFIG_MIPS_SIM_NET) += mipsnet.o |