xen-vtx-unstable

annotate buildconfigs/mk.linux-2.6-xenU @ 6774:4d899a738d59

merge?
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 15:05:49 2005 +0000 (2005-09-13)
parents f752e0c873a6 dd668f7527cb
children e7c7196fa329 8ca0f98ba8e2
rev   line source
cl349@4871 1
cl349@4871 2 OS = linux
cl349@2858 3
cl349@2858 4 LINUX_SERIES = 2.6
vh249@5730 5 LINUX_VER = 2.6.12
iap10@2842 6
iap10@2842 7 EXTRAVERSION = xenU
iap10@2842 8
cl349@4884 9 LINUX_DIR = $(OS)-$(LINUX_VER)-$(EXTRAVERSION)
iap10@2842 10
iap10@2842 11 include buildconfigs/Rules.mk
iap10@2842 12
iap10@2844 13 .PHONY: build clean delete
iap10@2842 14
iap10@2842 15 # The real action starts here!
cl349@2894 16 build: $(LINUX_DIR)/include/linux/autoconf.h
kaf24@3414 17 if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
kaf24@3414 18 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
iap10@3499 19 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
kaf24@3414 20 fi
iap10@3499 21 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install
iap10@2844 22
cl349@4889 23 $(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref
iap10@2842 24 rm -rf $(LINUX_DIR)
cl349@4889 25 cp -al $(<D) $(LINUX_DIR)
iap10@2842 26 # Apply arch-xen patches
vh249@5728 27 ( cd linux-$(LINUX_SERIES)-xen-sparse ; \
iap10@2842 28 ./mkbuildtree ../$(LINUX_DIR) )
cl349@5104 29 # Re-use config from install dir if one exits else use default config
cl349@5104 30 CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
cl349@5104 31 [ -r $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) ] && \
cl349@5104 32 cp $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) $(LINUX_DIR)/.config \
cl349@5107 33 || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig_$(XEN_TARGET_ARCH) \
cl349@5104 34 $(LINUX_DIR)/.config
iap10@5878 35 # See if we need to munge config to enable PAE
iap10@5878 36 $(MAKE) CONFIG_FILE=$(LINUX_DIR)/.config -f buildconfigs/Rules.mk config-update-pae
iap10@2842 37 # Patch kernel Makefile to set EXTRAVERSION
iap10@2842 38 ( cd $(LINUX_DIR) ; \
cl349@4917 39 sed -e 's/^EXTRAVERSION.*/&$$(XENGUEST)\nXENGUEST = -$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
iap10@2842 40 rm -f Makefile ; mv Mk.tmp Makefile )
kaf24@3590 41 $(MAKE) -C $(LINUX_DIR) ARCH=xen oldconfig
iap10@2842 42
cl349@3885 43 config: CONFIGMODE = menuconfig
cl349@3885 44 config: $(LINUX_DIR)/include/linux/autoconf.h
cl349@3885 45 $(MAKE) -C $(LINUX_DIR) ARCH=xen $(CONFIGMODE)
cl349@3885 46
cl349@4889 47 clean::
iap10@2842 48 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
iap10@2842 49
iap10@2842 50 delete:
cl349@4871 51 rm -rf tmp-$(OS)-$(LINUX_VER) $(LINUX_DIR)