aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-25 22:16:52 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-25 22:16:52 +0000
commiteb4166af594f8c2875adb7030d3a95e0407f4868 (patch)
tree4d9e683ed054e5efd6d90498e5ba725469451699 /Makefile
parent0d2b8607e3c50c070c89bb7b9b77a45a5bd24645 (diff)
downloadxen-eb4166af594f8c2875adb7030d3a95e0407f4868.tar.gz
xen-eb4166af594f8c2875adb7030d3a95e0407f4868.tar.bz2
xen-eb4166af594f8c2875adb7030d3a95e0407f4868.zip
Generate headers with arch-specific structs.
This patch adds a script to generate headers with arch-specific structs which can be included on any architecture. Can be used to deal with structs of "foreign" architectures, needed for 32-on-64 support for example. Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- Makefile | 11 +- tools/Rules.mk | 2 xen/Makefile | 4 xen/include/public/foreign/Makefile | 37 +++++++ xen/include/public/foreign/mkchecker.py | 58 +++++++++++ xen/include/public/foreign/mkheader.py | 153 ++++++++++++++++++++++++++++++ xen/include/public/foreign/reference.size | 17 +++ xen/include/public/foreign/structs.py | 52 ++++++++++ 8 files changed, 331 insertions(+), 3 deletions(-)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cac9547a3d..62b581062d 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ endif
install: install-xen install-kernels install-tools install-docs
.PHONY: build
-build: kernels
+build: kernels build-headers
$(MAKE) -C xen build
$(MAKE) -C tools build
$(MAKE) -C docs build
@@ -59,11 +59,11 @@ prep-kernels:
for i in $(XKERNELS) ; do $(MAKE) $$i-prep || exit 1; done
.PHONY: install-xen
-install-xen:
+install-xen: build-headers
$(MAKE) -C xen install
.PHONY: install-tools
-install-tools:
+install-tools: build-headers
$(MAKE) -C tools install
.PHONY: install-kernels
@@ -82,6 +82,11 @@ dev-docs:
.PHONY: kbuild
kbuild: kernels
+# generate header files
+.PHONY: build-headers
+build-headers:
+ $(MAKE) -C xen/include/public/foreign
+
# Delete the kernel build trees entirely
.PHONY: kdelete
kdelete: