]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
arm: Enable build without CONFIG_DTB_FILE
authorIan Campbell <ian.campbell@citrix.com>
Fri, 30 Nov 2012 12:20:21 +0000 (12:20 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 30 Nov 2012 12:20:21 +0000 (12:20 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/Makefile
xen/arch/arm/xen.lds.S

index d3e34bc354e5e49b94cf7e032bf775ddb9c306ec..e69b278832b1b57ecb853d7800966ccb85bd0423 100644 (file)
@@ -34,10 +34,6 @@ obj-y += hvm.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)
index f0f4cd3d9f2fcd1e0cd54bca4be34424ac6331ed..410d7dbcf3d4886be4cc21437e2bc575cdd38aaf 100644 (file)
@@ -123,9 +123,11 @@ SECTIONS
   } :text
   _end = . ;
 
+#ifdef CONFIG_DTB_FILE
   /* Section for the device tree blob (if any). */
   _sdtb = .;
   .dtb : { *(.dtb) } :text
+#endif
 
   /* Sections to be discarded */
   /DISCARD/ : {