[PATCH] Re: How to disable configfs_example modules

From: Randy Dunlap
Date: Sun Feb 21 2010 - 13:11:19 EST


On 02/21/10 07:18, Jaswinder Singh Rajput wrote:
> Hello Randy,

Hi Jaswinder,

> I am trying to build no modules but unfortunately I am getting 3 modules
> with http://userweb.kernel.org/~jaswinder/Corei7/config-i7-64.txt :
>
> INSTALL Documentation/filesystems/configfs/configfs_example_explicit.ko
> INSTALL Documentation/filesystems/configfs/configfs_example_macros.ko
> INSTALL drivers/scsi/scsi_wait_scan.ko
>
> How can I get rid of configfs_example modules.
>
> What is the magic in 'ifneq ($(CONFIG_CONFIGFS_FS),)' :

That just says: if CONFIG_CONFIGFS_FS neq empty_string
[where the empty_string is between the ",)"]

> Documentation/filesystems/configfs/Makefile :
> ifneq ($(CONFIG_CONFIGFS_FS),)
> obj-m += configfs_example_explicit.o configfs_example_macros.o
> endif


I think that this patch will do it. Please let me know if it
does not work.

---
From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Documentation/ source files that are kernel modules should
not be built when CONFIG_MODULES is not enabled, so change
the Makefile to enforce that.

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
Documentation/filesystems/configfs/Makefile | 2 ++
1 file changed, 2 insertions(+)

--- lnx-2633-rc8.orig/Documentation/filesystems/configfs/Makefile
+++ lnx-2633-rc8/Documentation/filesystems/configfs/Makefile
@@ -1,3 +1,5 @@
+ifeq ($(CONFIG_MODULES),1)
ifneq ($(CONFIG_CONFIGFS_FS),)
obj-m += configfs_example_explicit.o configfs_example_macros.o
endif
+endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/