Commit 131db3ed authored by kaf24's avatar kaf24

bitkeeper revision 1.946 (40c73c7805slPvnfEohXfQoiriAESg)

Rename Linux directories and upgrade build system.
parent 98c2aca1
#!/bin/sh -x
set -e
test -L xenolinux-sparse
rm xenolinux-sparse
(find -depth -type d -print | xargs -r rmdir 2>/dev/null) || true
#!/bin/sh
exit 0
#!/bin/sh -x
set -e
ln -s xenolinux-2.4.26-sparse xenolinux-sparse
(find -depth -type d -print | xargs -r rmdir 2>/dev/null) || true
#!/bin/sh
exit 0
This diff is collapsed.
......@@ -6,6 +6,7 @@ PENDING/*
*.a
*.pyc
extras/mini-os/h/hypervisor-ifs
linux-xen-sparse
tools/*/build/lib*/*.py
tools/balloon/balloon
tools/misc/miniterm/miniterm
......
#
# 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
......@@ -109,17 +109,17 @@ FORCE: ;
.PHONY: bzImage compressed clean archclean archmrproper archdep
bzImage: vmlinux
@$(MAKEBOOT) xenolinux.gz
@$(MAKEBOOT) bzImage
install: bzImage
mkdir -p $(prefix)/boot
install -m0644 arch/$(ARCH)/boot/xenolinux.gz $(prefix)/boot/xenolinux.gz
install -m0644 vmlinux $(prefix)/boot/xenolinux.dbg
install -m0644 arch/$(ARCH)/boot/bzImage $(prefix)/boot/vmlinuz-2.4.26-xen
install -m0644 vmlinux $(prefix)/boot/vmlinux-syms-2.4.26-xen
dist: bzImage
mkdir -p ../install/boot
install -m0644 arch/$(ARCH)/boot/xenolinux.gz ../install/boot/xenolinux.gz
install -m0644 vmlinux ../install/boot/xenolinux.dbg
install -m0644 arch/$(ARCH)/boot/xenolinux.gz ../install/boot/vmlinuz-2.4.26-xen
install -m0644 vmlinux ../install/boot/vmlinux-syms-2.4.26-xen
archclean:
@$(MAKEBOOT) clean
......
#
# arch/xen/boot/Makefile
#
bzImage: $(TOPDIR)/vmlinux
$(OBJCOPY) $< Image
gzip -f -9 < Image > $@
rm -f Image
dep:
clean:
rm -f bzImage Image
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment