]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
arm: move check for CONFIG_DTB_FILE to xen/arch/arm/Makefile
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 22 Feb 2012 14:33:23 +0000 (14:33 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 22 Feb 2012 14:33:23 +0000 (14:33 +0000)
CONFIG_DTB_FILE only needs to be set when building Xen itself.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <Ian.Campbell@citrix.com>
config/arm.mk
xen/arch/arm/Makefile

index f20fd2db0b14e55069f7c5aef2108052c3627dcb..f64f0c1c831cda859953db39d3d92ef3a72ab96b 100644 (file)
@@ -16,9 +16,3 @@ LDFLAGS_DIRECT_Linux = _linux
 LDFLAGS_DIRECT += -marmelf$(LDFLAGS_DIRECT_$(XEN_OS))_eabi
 
 CONFIG_LOAD_ADDRESS ?= 0x80000000
-
-# XXX: When running on the model there is no bootloader to provide a
-# device tree.  It must be linked into Xen.
-ifndef CONFIG_DTB_FILE
-$(error CONFIG_DTB_FILE must be set to the absolute filename of a DTB)
-endif
index 49b64fe34086b0f6defbbf1d33b6be314148835f..da5096a4be0694c12f058430bd8827af73d330b5 100644 (file)
@@ -28,6 +28,10 @@ obj-y += vtimer.o
 ifdef CONFIG_DTB_FILE
 obj-y += dtb.o
 AFLAGS += -DCONFIG_DTB_FILE=\"$(CONFIG_DTB_FILE)\"
+else
+# XXX: When running on the model there is no bootloader to provide a
+# device tree.  It must be linked into Xen.
+$(error CONFIG_DTB_FILE must be set to the absolute filename of a DTB)
 endif
 
 ALL_OBJS := head.o $(ALL_OBJS)