From: Tobias Hunger Subject: Linux Kernels without modules Date: Tue, 11 Jan 2005 15:42:01 +0100 Message-ID: <200501111542.06339.tobias@aquazul.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2683989.GJlZU14vJx"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org --nextPart2683989.GJlZU14vJx Content-Type: multipart/mixed; boundary="Boundary-01=_6W+4BuVIF2d7ArQ" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_6W+4BuVIF2d7ArQ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! I am building a xen-enabled kernel and want to leave out module loading.=20 Unfortunately the build scripts insist on building modules and fail when=20 those are disabled. Attached you will find a small patch for this issue. It needs to be applied= to=20 buildconfig/mk.linux-* where appropriate and makes sure modules are only=20 build when enabled in the .config file. It should work with both 2.6 and 2.4 kernels, but I have only tested this w= ith=20 the 2.6 series. =2D-=20 Gruss, Tobias =2D----------------------------------------------------------- Tobias Hunger The box said: 'Windows 95 or better' tobias@aquazul.com So I installed Linux. =2D----------------------------------------------------------- --Boundary-01=_6W+4BuVIF2d7ArQ Content-Type: text/x-diff; charset="us-ascii"; name="mk.linux-modules.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mk.linux-modules.patch" =2D-- xen-unstable-20050110/buildconfigs/mk.linux-2.6-xen0 2005-01-10 15:26= :57.000000000 +0100 +++ xen-unstable/buildconfigs/mk.linux-2.6-xen0 2005-01-11 05:36:00.0000000= 00 +0100 @@ -12,10 +12,8 @@ .PHONY: build clean delete =20 build: $(LINUX_DIR)/include/linux/autoconf.h =2D if grep "^CONFIG_MODULES=3D" $(LINUX_DIR)/.config ; then \ =2D $(MAKE) -C $(LINUX_DIR) ARCH=3Dxen modules ; \ =2D $(MAKE) -C $(LINUX_DIR) ARCH=3Dxen INSTALL_MOD_PATH=3D$(INSTALL_DIR= ) modules_install ; \ =2D fi + $(MAKE) -C $(LINUX_DIR) ARCH=3Dxen modules + $(MAKE) -C $(LINUX_DIR) ARCH=3Dxen INSTALL_MOD_PATH=3D$(INSTALL_DIR) modu= les_install $(MAKE) -C $(LINUX_DIR) ARCH=3Dxen INSTALL_PATH=3D$(INSTALL_DIR) install =20 # The real action starts here! --Boundary-01=_6W+4BuVIF2d7ArQ-- --nextPart2683989.GJlZU14vJx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBB4+W+v0FZW3NyoqURAohLAJ0bc2rkXOlG+O2BayxzjhJzT7WAkwCfQDy5 G41K2Vv01F7BO4kTKjBN0bY= =IkmJ -----END PGP SIGNATURE----- --nextPart2683989.GJlZU14vJx-- ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt