[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B8176CC.40506@oracle.com>
Date: Sun, 21 Feb 2010 10:09:16 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Jaswinder Singh Rajput <jaswinder@...nel.org>
CC: Joel Becker <joel.becker@...cle.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] Re: How to disable configfs_example modules
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@...cle.com>
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@...cle.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists