aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-08-14 13:46:48 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-08-14 13:46:48 +0100
commit006e7188d48680d651cdf27a477b1af3b507de5d (patch)
tree07c4e93058752a893b4b4b8b9776ae6c20a2f7cd /Makefile
parentf6c2c609f7ca5109c3871798ebb9966d0b08cdc0 (diff)
downloadxen-006e7188d48680d651cdf27a477b1af3b507de5d.tar.gz
xen-006e7188d48680d651cdf27a477b1af3b507de5d.tar.bz2
xen-006e7188d48680d651cdf27a477b1af3b507de5d.zip
pv-grub: On x86_64, also build an x86_32 pv-grub
This requires suffixing obj directories and having grub compiled outside sources. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 39aff692bc..3fbdb4646c 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ build: kernels
$(MAKE) -C xen build
$(MAKE) -C tools build
$(MAKE) -C stubdom build
+ifeq (x86_64,$(XEN_TARGET_ARCH))
+ XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom pv-grub
+endif
$(MAKE) -C docs build
# The test target is for unit tests that can run without an installation. Of
@@ -71,6 +74,9 @@ install-kernels:
.PHONY: install-stubdom
install-stubdom:
$(MAKE) -C stubdom install
+ifeq (x86_64,$(XEN_TARGET_ARCH))
+ XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub
+endif
.PHONY: install-docs
install-docs:
@@ -109,6 +115,9 @@ clean::
$(MAKE) -C xen clean
$(MAKE) -C tools clean
$(MAKE) -C stubdom crossclean
+ifeq (x86_64,$(XEN_TARGET_ARCH))
+ XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom crossclean
+endif
$(MAKE) -C docs clean
# clean, but blow away kernel build tree plus tarballs
@@ -117,6 +126,9 @@ distclean:
$(MAKE) -C xen distclean
$(MAKE) -C tools distclean
$(MAKE) -C stubdom distclean
+ifeq (x86_64,$(XEN_TARGET_ARCH))
+ XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom distclean
+endif
$(MAKE) -C docs distclean
rm -rf dist patches/tmp
for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done