From 793ff4df088e2a1d3aa78e5d6fb88a6ae8522e3b Mon Sep 17 00:00:00 2001 From: David Vrabel Date: Mon, 13 Feb 2012 13:34:47 +0000 Subject: [PATCH] libfdt: add to build Signed-off-by: David Vrabel Acked-by: Tim Deegan Committed-by: Keir Fraser --- xen/arch/arm/Rules.mk | 2 ++ xen/common/Makefile | 1 + xen/common/libfdt/Makefile | 5 +++++ 3 files changed, 8 insertions(+) create mode 100644 xen/common/libfdt/Makefile diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index 336e20908..14082dd0a 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 924984583..4b1e6f220 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 000000000..0e65bc06b --- /dev/null +++ b/xen/common/libfdt/Makefile @@ -0,0 +1,5 @@ +include Makefile.libfdt + +obj-y += $(LIBFDT_OBJS) + +CFLAGS += -I. -- 2.39.5