Skip to contentSkip to conversation

Linux Kernels without modules

PATCH Tobias Hunger 1 participant 1 message Jan 11, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

I am building a xen-enabled kernel and want to leave out module loading. Unfortunately the build scripts insist on building modules and fail when those are disabled.

Attached you will find a small patch for this issue. It needs to be applied to buildconfig/mk.linux-* where appropriate and makes sure modules are only build when enabled in the .config file.

It should work with both 2.6 and 2.4 kernels, but I have only tested this with the 2.6 series.

Signature · 7 lines
Gruss,
Tobias

------------------------------------------------------------
Tobias Hunger           The box said: 'Windows 95 or better'
[email protected]                     So I installed Linux.
------------------------------------------------------------
buildconfigs/mk.linux-2.6-xen0 +2 -4
@@ -12,10 +12,8 @@
 .PHONY: build clean delete
 
 build: $(LINUX_DIR)/include/linux/autoconf.h
-	if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
-	    $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
-	    $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install ; \
-	fi
+	$(MAKE) -C $(LINUX_DIR) ARCH=xen modules
+	$(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
 	$(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
 
 # The real action starts here!