How to disable configfs_example modules
Hello Randy,
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),)' :
Documentation/filesystems/configfs/Makefile :
ifneq ($(CONFIG_CONFIGFS_FS),)
obj-m += configfs_example_explicit.o configfs_example_macros.o endif
Thanks,
--
Jaswinder Singh.
Quoted 1 line · Jaswinder Singh Rajput
Hello Randy,
Hi Jaswinder,
Quoted 10 lines
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.koINSTALLDocumentation/filesystems/configfs/configfs_example_macros.koINSTALLdrivers/scsi/scsi_wait_scan.koHow can I get rid of
configfs_examplemodules.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 ",)"]
Quoted 4 lines
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 <[email protected]>
Documentation/ source files that are kernel modules should not be built when CONFIG_MODULES is not enabled, so change the Makefile to enforce that.
--- Documentation/filesystems/configfs/Makefile | 2 ++ 1 file changed, 2 insertions(+)
Documentation/filesystems/configfs/Makefile +2 -0
@@ -1,3 +1,5 @@ +ifeq ($(CONFIG_MODULES),1) ifneq ($(CONFIG_CONFIGFS_FS),) obj-m += configfs_example_explicit.o configfs_example_macros.o endif +endif
Hello Randy,
Quoted 8 lines · Randy Dunlap
Quoted 7 lines · Jaswinder Singh Rajput
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.koINSTALLDocumentation/filesystems/configfs/configfs_example_macros.koINSTALLdrivers/scsi/scsi_wait_scan.ko
Quoted 7 lines
Quoted 3 lines
How can I get rid of
configfs_examplemodules.What is the magic in 'ifneq ($(CONFIG_CONFIGFS_FS),)' :
That just says: if
CONFIG_CONFIGFS_FSneqempty_string[where theempty_stringis between the ",)"]
Thanks for the explanation by disabling CONFIG_CONFIGFS_FS, I get rid of configfs_example modules. Patch is not required.
Thanks for your help,
--
Jaswinder Singh.