ia64/xen-unstable

annotate buildconfigs/mk.linux-2.6-xen0 @ 2842:2c276f6ac53c

bitkeeper revision 1.1159.1.346 (4188d882FwpqRabp9rhXLwbR2fAQjQ)

build system cleanups
author iap10@labyrinth.cl.cam.ac.uk
date Wed Nov 03 13:09:22 2004 +0000 (2004-11-03)
parents
children 4fdcd6139bf0
rev   line source
iap10@2842 1
iap10@2842 2 EXTRAVERSION = xen0
iap10@2842 3
iap10@2842 4 FULLVERSION = $(LINUX_26VER)-$(EXTRAVERSION)
iap10@2842 5
iap10@2842 6 LINUX_DIR = linux-$(FULLVERSION)
iap10@2842 7
iap10@2842 8 .PHONY: build clean mrproper mkpatch
iap10@2842 9
iap10@2842 10 include buildconfigs/Rules.mk
iap10@2842 11
iap10@2842 12 .PHONY: build clean mrproper mkpatch
iap10@2842 13
iap10@2842 14 # The real action starts here!
iap10@2842 15 $(LINUX_DIR): pristine-linux-$(LINUX_26VER)
iap10@2842 16 rm -rf $(LINUX_DIR)
iap10@2842 17 cp -al pristine-linux-$(LINUX_26VER) $(LINUX_DIR)
iap10@2842 18 # Apply arch-xen patches
iap10@2842 19 ( cd linux-$(LINUX_26VER)-xen-sparse ; \
iap10@2842 20 ./mkbuildtree ../$(LINUX_DIR) )
iap10@2842 21 # Patch kernel Makefile to set EXTRAVERSION
iap10@2842 22 ( cd $(LINUX_DIR) ; \
iap10@2842 23 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
iap10@2842 24 rm -f Makefile ; mv Mk.tmp Makefile )
iap10@2842 25 # Re-use config from install dir if one exits else use make defconfig
iap10@2842 26 cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig $(LINUX_DIR)/.config
iap10@2842 27 make -C $(LINUX_DIR) ARCH=xen oldconfig
iap10@2842 28
iap10@2842 29 build: $(LINUX_DIR)
iap10@2842 30 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules
iap10@2842 31 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
iap10@2842 32 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
iap10@2842 33
iap10@2842 34 clean:
iap10@2842 35 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
iap10@2842 36
iap10@2842 37 delete:
iap10@2842 38 rm -rf tmp-linux-$(LINUX_26VER) $(LINUX_DIR)
iap10@2842 39
iap10@2842 40
iap10@2842 41
iap10@2842 42
iap10@2842 43
iap10@2842 44
iap10@2842 45