Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc
Date: Wed, 1 Aug 2018 09:05:48 +0200	[thread overview]
Message-ID: <20180801090548.0c92457b@windsurf> (raw)
In-Reply-To: <ea2ac147-3c9f-a85d-83ea-84f33a0d52e4@mind.be>

Hello,

On Wed, 1 Aug 2018 00:14:08 +0200, Arnout Vandecappelle wrote:

> > I think the optional dependency on host-dtc depends from a time where
> > U-Boot did not have its own copy of DTC. I'm not sure it makes a lot of
> > sense now.  
> 
>  ... but we still want to support those older U-Boot versions, so we can't
> remove it.

Absolutely.

But the case found by David is not a case where U-Boot needs a DTC
available on the host: it tries to use its own internal DTC, but
forgets to build it. That's a bug in U-Boot.

>  Ideally, we should find out between which two versions it is needed, and
> mention that in the help text.
> 
> > If U-Boot tries to use ./scripts/dtc/dtc, then it should have built it.
> > If it didn't build it but tries to use it nonetheless, it sounds like a
> > bug in U-Boot.  
> 
>  Oh yes, now I see it, it's indeed a bug in U-Boot. CONFIG_OF_LIST should either
> depend on CONFIG_OF_CONTROL or select it, otherwise dtc is not built.

Right, so it's indeed a bug in U-Boot. That being said, the change
proposed by David is not too bad: it makes sense to use the host DTC if
it was built, rather than the one built by U-Boot. It's just that the
initial problem explanation wasn't really complete enough, so I was a
bit confused.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-08-01  7:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26 10:36 [Buildroot] [PATCH 0/1] boot/uboot: host-dtc is not used as expected David De Grave
2018-07-26 10:36 ` [Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc David De Grave
2018-07-28 19:48   ` Thomas Petazzoni
2018-07-31 18:12     ` David De Grave
2018-07-31 18:51       ` Thomas Petazzoni
2018-07-31 22:14         ` Arnout Vandecappelle
2018-08-01  7:05           ` Thomas Petazzoni [this message]
2018-08-01 10:36             ` David De Grave
2018-08-01 10:43               ` Thomas Petazzoni
2018-08-01 14:36                 ` David De Grave

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=20180801090548.0c92457b@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox