Files
xen/buildconfigs/src.tarball
T
Ian Campbell 9f426c8ad5 Add support for building -mm, -tip and -rc upstream trees.
(note that not all of those contains Xen support just yet and that a
native kernel will be silently built in that case.)


Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-07-09 12:04:20 +01:00

34 lines
952 B
Plaintext

XEN_LINUX_MIRROR ?= http://www.kernel.org/pub/linux/kernel/v2.6/
XEN_LINUX_TARBALL ?= linux-$(LINUX_VER)-xen.tar.bz2
# Update using ketchup instead of manipulating tarball manually.
XEN_LINUX_TARBALL_KETCHUP ?= n
LINUX_SRCDIR ?= linux-$(LINUX_VER)
KETCHUP ?= python buildconfigs/ketchup
vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
# download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
linux-%.tar.bz2:
@echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
wget $(XEN_LINUX_MIRROR)/$@ -O./$@
# XXX create a pristine tree for diff -Nurp convenience
ifeq ($(XEN_LINUX_TARBALL_KETCHUP),y)
%/.valid-src:
$(KETCHUP) -d $(@D) $(LINUX_VER)
touch $@ # update timestamp to avoid rebuild
else
%/.valid-src: %.tar.bz2
rm -rf tmp-linux-$* $(@D)
mkdir -p tmp-linux-$*
tar -C tmp-linux-$* -jxf $<
-@rm -f tmp-linux-$*/pax_global_header
mv tmp-linux-$*/* $(@D)
@rm -rf tmp-linux-$*
touch $@ # update timestamp to avoid rebuild
endif