diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-06-09 16:36:08 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-06-09 16:36:08 +0000 |
commit | 03907beb680ee39bee212bb3cb170cb295238cda (patch) | |
tree | f594d4df409070fe7f41cb1709f1ae22b76ac17c /Makefile | |
parent | 63cf7286eeb40cadb2581fef38376da82a25b2ba (diff) | |
download | xen-03907beb680ee39bee212bb3cb170cb295238cda.tar.gz xen-03907beb680ee39bee212bb3cb170cb295238cda.tar.bz2 xen-03907beb680ee39bee212bb3cb170cb295238cda.zip |
bitkeeper revision 1.946 (40c73c7805slPvnfEohXfQoiriAESg)
Rename Linux directories and upgrade build system.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 28 insertions, 11 deletions
@@ -1,16 +1,8 @@ - +# # Grand Unified Makefile for Xen. # -# Builds everything except Linux: -# cd xenolinux-<version>-sparse -# ./mkbuildtree <build dir> -# cd <build dir> -# ARCH=xen make oldconfig -# ARCH=xen make dep -# ARCH=xen make bzImage -# (<build dir> should be a vanilla linux tree with matching version) -all: +all: make-symlinks $(MAKE) -C xen $(MAKE) -C tools @@ -22,6 +14,31 @@ dist: all $(MAKE) prefix=`pwd`/../install dist=yes -C xen install $(MAKE) prefix=`pwd`/../install dist=yes -C tools install -clean: +LINUX_SRC ?= ../linux-2.4.26.tar.gz +LINUX_CONFIG_DIR ?= ../install/config +world: dist + $(RM) ../linux-2.4.26-xen + tar -x -z -C .. -f $(LINUX_SRC) + mv ../linux-2.4.26 ../linux-2.4.26-xen + cd ../linux-2.4.26-xen + cp $(LINUX_CONFIG_DIR)/dom0 .config + ARCH=xen make oldconfig; ARCH=xen make dep; ARCH=xen make bzImage + install -m0644 arch/xen/boot/bzImage \ + ../install/boot/vmlinuz-2.4.26-xen0 + install -m0644 vmlinux ../install/boot/vmlinux-syms-2.4.26-xen0 + ARCH=xen make mrproper + cp $(LINUX_CONFIG_DIR)/unprivileged .config + ARCH=xen make oldconfig; ARCH=xen make dep; ARCH=xen make bzImage + install -m0644 arch/xen/boot/bzImage \ + ../install/boot/vmlinuz-2.4.26-xen + install -m0644 vmlinux ../install/boot/vmlinux-syms-2.4.26-xen + +clean: delete-symlinks $(MAKE) -C xen clean $(MAKE) -C tools clean + +make-symlinks: + ln -sf linux-2.4.26-xen-sparse linux-xen-sparse + +delete-symlinks: + $(RM) linux-xen-sparse |