From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [PATCH 3/8] libfdt: add to build Date: Fri, 10 Feb 2012 13:03:39 +0000 Message-ID: <1328879024-5621-4-git-send-email-david.vrabel@citrix.com> References: <1328879024-5621-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1328879024-5621-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: David Vrabel List-Id: xen-devel@lists.xenproject.org From: David Vrabel Signed-off-by: David Vrabel --- xen/arch/arm/Rules.mk | 2 ++ xen/common/Makefile | 1 + xen/common/libfdt/Makefile | 5 +++++ 3 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 xen/common/libfdt/Makefile diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index 336e209..14082dd 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 9249845..4b1e6f2 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 0000000..0e65bc0 --- /dev/null +++ b/xen/common/libfdt/Makefile @@ -0,0 +1,5 @@ +include Makefile.libfdt + +obj-y += $(LIBFDT_OBJS) + +CFLAGS += -I. -- 1.7.2.5