[RFC PATCH 1/6] New option: Static linking of external modules

From: Andreas Robinson
Date: Sun Feb 15 2009 - 13:21:01 EST


Define configuration option CONFIG_MODULE_STATIC.
---
init/Kconfig | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index f068071..dc0f5aa 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1042,6 +1042,27 @@ config MODULE_SRCVERSION_ALL
the version). With this option, such a "srcversion" field
will be created for all modules. If unsure, say N.

+config MODULE_STATIC
+ bool "Static module linking support (EXPERIMENTAL)"
+ depends on EXPERIMENTAL
+ help
+ Your computer will start slightly faster if device drivers are
+ built into the kernel rather than loaded as modules during the
+ boot process.
+
+ However, a specialized kernel is impractical to build if the target
+ hardware configuration is unknown before installation, such as is
+ the case with generic Linux distributions.
+
+ If you say Y here, you can build external modules into the kernel,
+ quickly and without a compiler and with less disk space needed
+ compared to a fully compiled kernel source tree. Note that your
+ modules must also be built with this option enabled.
+
+ See <file:/Documentation/...TODO...> for more details.
+
+ If unsure, say N.
+
endif # MODULES

config INIT_ALL_POSSIBLE
--
1.5.6.3

--
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/