aboutsummaryrefslogtreecommitdiffstats
path: root/xen
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2012-02-13 13:34:47 +0000
committerDavid Vrabel <david.vrabel@citrix.com>2012-02-13 13:34:47 +0000
commit5f2a0630239c21ec4a779dab166a0a5074bc6b23 (patch)
tree930cff6e3986737c26b63baeddcdc73a3c6178d2 /xen
parentc3436384d0e088f9fb0f79b008c509baa7f6dc2a (diff)
downloadxen-5f2a0630239c21ec4a779dab166a0a5074bc6b23.tar.gz
xen-5f2a0630239c21ec4a779dab166a0a5074bc6b23.tar.bz2
xen-5f2a0630239c21ec4a779dab166a0a5074bc6b23.zip
libfdt: add to build
Signed-off-by: David Vrabel <david.vrabel@citrix.com> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen')
-rw-r--r--xen/arch/arm/Rules.mk2
-rw-r--r--xen/common/Makefile1
-rw-r--r--xen/common/libfdt/Makefile5
3 files changed, 8 insertions, 0 deletions
diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk
index 336e209081..14082dd0a7 100644
--- a/xen/arch/arm/Rules.mk
+++ b/xen/arch/arm/Rules.mk
@@ -6,6 +6,8 @@
# 'make clean' before rebuilding.
#
+HAS_DEVICE_TREE := y
+
CFLAGS += -fno-builtin -fno-common -Wredundant-decls
CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
CFLAGS += -I$(BASEDIR)/include
diff --git a/xen/common/Makefile b/xen/common/Makefile
index 9249845832..4b1e6f220c 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -59,3 +59,4 @@ subdir-$(x86_64) += hvm
subdir-$(ia64) += hvm
subdir-y += libelf
+subdir-$(HAS_DEVICE_TREE) += libfdt
diff --git a/xen/common/libfdt/Makefile b/xen/common/libfdt/Makefile
new file mode 100644
index 0000000000..0e65bc06b8
--- /dev/null
+++ b/xen/common/libfdt/Makefile
@@ -0,0 +1,5 @@
+include Makefile.libfdt
+
+obj-y += $(LIBFDT_OBJS)
+
+CFLAGS += -I.