ia64/xen-unstable

changeset 3414:ee7636141b3e

bitkeeper revision 1.1159.170.87 (41e403a3b9YzrwLBMzUP1m_iQQGMJQ)

Allow building of kernels with no module support.
author kaf24@scramble.cl.cam.ac.uk
date Tue Jan 11 16:49:39 2005 +0000 (2005-01-11)
parents 757e2d296e9f
children fd293c2a73db 6e1bbc139117
files buildconfigs/mk.linux-2.6-xen0 buildconfigs/mk.linux-2.6-xenU
line diff
     1.1 --- a/buildconfigs/mk.linux-2.6-xen0	Tue Jan 11 16:23:01 2005 +0000
     1.2 +++ b/buildconfigs/mk.linux-2.6-xen0	Tue Jan 11 16:49:39 2005 +0000
     1.3 @@ -11,12 +11,14 @@ include buildconfigs/Rules.mk
     1.4  
     1.5  .PHONY: build clean delete
     1.6  
     1.7 +# The real action starts here!
     1.8  build: $(LINUX_DIR)/include/linux/autoconf.h
     1.9 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen modules
    1.10 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
    1.11 +	if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
    1.12 +	    $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
    1.13 +	    $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install ; \
    1.14 +	fi
    1.15  	$(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
    1.16  
    1.17 -# The real action starts here!
    1.18  $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
    1.19  	rm -rf $(LINUX_DIR)
    1.20  	cp -al $< $(LINUX_DIR)
     2.1 --- a/buildconfigs/mk.linux-2.6-xenU	Tue Jan 11 16:23:01 2005 +0000
     2.2 +++ b/buildconfigs/mk.linux-2.6-xenU	Tue Jan 11 16:49:39 2005 +0000
     2.3 @@ -13,11 +13,12 @@ include buildconfigs/Rules.mk
     2.4  
     2.5  # The real action starts here!
     2.6  build: $(LINUX_DIR)/include/linux/autoconf.h
     2.7 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen modules
     2.8 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
     2.9 +	if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
    2.10 +	    $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
    2.11 +	    $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install ; \
    2.12 +	fi
    2.13  	$(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
    2.14  
    2.15 -
    2.16  $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
    2.17  	rm -rf $(LINUX_DIR)
    2.18  	cp -al $< $(LINUX_DIR)