diff options
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 |