Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=05ff09706bacc92ccadde3a74289118789581475
Commit:     05ff09706bacc92ccadde3a74289118789581475
Parent:     a6ce22a5f61ba838b43763bf1e5be399f9dee4d0
Author:     Rusty Russell <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 30 10:25:22 2007 +1000
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Jul 29 17:37:45 2007 -0700

    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 <[EMAIL PROTECTED]>
    Cc: Gabriel C <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/block/Makefile |    2 +-
 drivers/lguest/Kconfig |   10 +++++++++-
 drivers/net/Makefile   |    2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/drivers/block/Makefile b/drivers/block/Makefile
index a7a0990..014e721 100644
--- a/drivers/block/Makefile
+++ b/drivers/block/Makefile
@@ -31,4 +31,4 @@ obj-$(CONFIG_BLK_DEV_SX8)     += sx8.o
 obj-$(CONFIG_BLK_DEV_UB)       += ub.o
 
 obj-$(CONFIG_XEN_BLKDEV_FRONTEND)      += xen-blkfront.o
-obj-$(CONFIG_LGUEST_GUEST)     += lguest_blk.o
+obj-$(CONFIG_LGUEST_BLOCK)     += lguest_blk.o
diff --git a/drivers/lguest/Kconfig b/drivers/lguest/Kconfig
index 43d901f..888205c 100644
--- a/drivers/lguest/Kconfig
+++ b/drivers/lguest/Kconfig
@@ -1,6 +1,6 @@
 config LGUEST
        tristate "Linux hypervisor example code"
-       depends on X86 && PARAVIRT && NET && EXPERIMENTAL && !X86_PAE
+       depends on X86 && PARAVIRT && EXPERIMENTAL && !X86_PAE
        select LGUEST_GUEST
        select HVC_DRIVER
        ---help---
@@ -18,3 +18,11 @@ config LGUEST_GUEST
          The guest needs code built-in, even if the host has lguest
          support as a module.  The drivers are tiny, so we build them
          in too.
+
+config LGUEST_NET
+       tristate
+       depends on LGUEST_GUEST && NET
+
+config LGUEST_BLOCK
+       tristate
+       depends on LGUEST_GUEST && BLOCK
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 94b78cc..e684212 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -177,7 +177,7 @@ obj-$(CONFIG_ZORRO8390) += zorro8390.o
 obj-$(CONFIG_HPLANCE) += hplance.o 7990.o
 obj-$(CONFIG_MVME147_NET) += mvme147.o 7990.o
 obj-$(CONFIG_EQUALIZER) += eql.o
-obj-$(CONFIG_LGUEST_GUEST) += lguest_net.o
+obj-$(CONFIG_LGUEST_NET) += lguest_net.o
 obj-$(CONFIG_MIPS_JAZZ_SONIC) += jazzsonic.o
 obj-$(CONFIG_MIPS_AU1X00_ENET) += au1000_eth.o
 obj-$(CONFIG_MIPS_SIM_NET) += mipsnet.o
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to