All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 4/8] arm: link a device tree blob into the xen image
Date: Fri, 17 Feb 2012 17:22:41 +0000	[thread overview]
Message-ID: <4F3E8CE1.7030803@citrix.com> (raw)
In-Reply-To: <1329498796.3131.135.camel@zakaz.uk.xensource.com>

On 17/02/12 17:13, Ian Campbell wrote:
> On Mon, 2012-02-13 at 13:18 +0000, David Vrabel wrote:
>> diff --git a/config/arm.mk b/config/arm.mk
>> index f64f0c1..f20fd2d 100644
>> --- a/config/arm.mk
>> +++ b/config/arm.mk
>> @@ -16,3 +16,9 @@ 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 
> 
> This turns out to be a little aggressive -- it also triggers when you
> are building the tools. Not a big deal, but a bit annoying, is there
> some way we can avoid this? Put it in xen/arch/arm/Foo perhaps?

Does this do the right thing?

8<---------
arm: move check for CONFIG_DTB_FILE to xen/arch/arm/Makefile

CONFIG_DTB_FILE only needs to be set when building Xen itself.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
---
 config/arm.mk         |    6 ------
 xen/arch/arm/Makefile |    4 ++++
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/config/arm.mk b/config/arm.mk
index f20fd2d..f64f0c1 100644
--- a/config/arm.mk
+++ b/config/arm.mk
@@ -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
diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile
index 168716e..da9134b 100644
--- a/xen/arch/arm/Makefile
+++ b/xen/arch/arm/Makefile
@@ -26,6 +26,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)
-- 
1.7.2.5

  reply	other threads:[~2012-02-17 17:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-13 13:18 [PATCH 0/8] arm: initial device tree support (#3) David Vrabel
2012-02-13 13:18 ` [PATCH 1/8] libfdt: add version 1.3.0 David Vrabel
2012-02-13 13:18 ` [PATCH 2/8] libfdt: fixup libfdt_env.h for xen David Vrabel
2012-02-13 13:18 ` [PATCH 3/8] libfdt: add to build David Vrabel
2012-02-13 13:18 ` [PATCH 4/8] arm: link a device tree blob into the xen image David Vrabel
2012-02-17 17:13   ` Ian Campbell
2012-02-17 17:22     ` David Vrabel [this message]
2012-02-20 17:20       ` Ian Campbell
2012-02-22 14:34         ` Ian Campbell
2012-02-13 13:18 ` [PATCH 5/8] arm: map device tree blob in initial page tables David Vrabel
2012-02-13 13:18 ` [PATCH 6/8] arm: add early_printk() David Vrabel
2012-02-13 13:18 ` [PATCH 7/8] arm, device tree: parse the DTB for RAM location and size David Vrabel
2012-02-13 14:51   ` Ian Campbell
2012-02-13 15:46     ` David Vrabel
2012-02-13 16:53       ` Ian Campbell
2012-02-13 17:41         ` Ian Jackson
2012-03-14 10:53           ` Ian Campbell
2012-02-13 13:18 ` [PATCH 8/8] arm: setup MM using information from the device tree David Vrabel
2012-02-13 15:27 ` [PATCH 0/8] arm: initial device tree support (#3) Ian Campbell
2012-02-13 15:49   ` David Vrabel
  -- strict thread matches above, loose matches on Subject: below --
2012-02-10 13:03 [PATCH 0/8] arm: initial device tree support (#2) David Vrabel
2012-02-10 13:03 ` [PATCH 4/8] arm: link a device tree blob into the xen image David Vrabel
2012-02-10 13:35   ` Ian Campbell
2012-02-10 13:40     ` David Vrabel
2012-02-10 13:52       ` Ian Campbell
2012-02-10 16:50         ` Tim Deegan
2012-02-10 17:38           ` David Vrabel
2012-02-10 17:46             ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F3E8CE1.7030803@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.