From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] fdt: Ensure that libfdt_env.h comes from U-Boot
Date: Fri, 14 Jun 2013 11:07:08 -0400 [thread overview]
Message-ID: <51BB319C.8040108@ti.com> (raw)
In-Reply-To: <CANr=Z=acxnZi-aMNEOwyAwu5i08O2p_dPehG4ZAxHkFnfi+76w@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/14/2013 10:56 AM, Joe Hershberger wrote:
> Hi Simon,
>
> On Wed, Apr 17, 2013 at 10:35 AM, Tom Rini <trini@ti.com> wrote:
>> On Mon, Mar 11, 2013 at 09:30:27AM -0700, Simon Glass wrote:
>>
>>> When building host utilities, we include libfdt.h from the
>>> host, not from U-Boot. This in turn brings in libfdt_env.h from
>>> the host, which can mess up the types and cause a build
>>> failure, depending on the host environment. To fix this, force
>>> inclusion of U-Boot's libfdt_env.h so that the types are
>>> correct.
>>>
>>> Another way to fix this is to use -nostdinc and -idirafter to
>>> ensure that system includes are included after U-Boot ones.
>>> Unfortunately this means that U-Boot's errno.h gets included
>>> instead of the system one. This in turn requires a hack to
>>> errno.h to redirect things, so all in all the solution in this
>>> patch is probably cleaner.
>>>
>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>
>> Applied to u-boot/master, thanks!
>>
>> -- Tom
>
> For me this patch causes a regression that looks like this:
>
> Configuring for sandbox board... aisimage.c: In function
> ?aisimage_generate?: aisimage.c:314: warning: implicit declaration
> of function ?getline? imximage.c: In function ?parse_cfg_file?:
> imximage.c:424: warning: implicit declaration of function
> ?getline? kwbimage.c: In function ?kwdimage_set_ext_header?:
> kwbimage.c:236: warning: implicit declaration of function
> ?getline? pblimage.c: In function ?pbl_parser?: pblimage.c:119:
> warning: implicit declaration of function ?getline? ublimage.c: In
> function ?parse_cfg_file?: ublimage.c:179: warning: implicit
> declaration of function ?getline?
>
> Did you not see this? I see it on ARM, PPC, and sandbox.
Nope. What toolchains?
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJRuzGcAAoJENk4IS6UOR1W2KEP/Roaf4ewQxnpag59QdHHy7GJ
FaMHOA36GbjLt8ay4KaEfFazxpmJiVPWApEt5RkbKICa8sYot6X+nmcOhLMau46t
/mSx5ig6NMQeCvVmFvppRmBdJvew1dfxGiIAXd8GEAQQgDQsJ18KS0qOOyr9UlUI
o+z6unVXybQQgsijiQaph2uhIkV2Fo5wUY2JrNzbHDepjHgKkfS+6CeIRxJE7+yr
sCyn5hAAWDBIUR3Xlqw2pfrWPCNJNORSQhWtfMNVQbf1PFUYEv4U008QldsaR1qF
AcXZv7tzXahJYYqQTKuEGIdO9Ed9Ij3eJ+oPg5guZ5+6PYoX8ZLAyOKEtp/hdFs6
bHXdj5URUzv1bW81p4Hsuk+O+h1izIgqeUqfzTQfnZucgCPl87HVsevdA2N22deC
2PuM8vvEdl0UgJmwd9fFyrUYXzE+xzOLf3XRXVwOWtKrQUl8WE6FMmkGfAWLQNNx
LbXwmyQKXOPM1YAM+P7mxEk4L7gpeRF/r+uARBJ36Oi1RtY4zM16FYT25cOoppuL
aFCssOuxL02WiX4q9EWZ8sGtJ9H6c5Dz/oFMwWmse9i+QNMnLGpoS4m6imnDJw26
yju4fIztjajAJN+dFV5J9CJHp2ddon3sa+6Sdn7aEBrCUgjU0Zi9ne+Ge+UghoRG
3fHhQNqmvtq0OgrCmLPY
=+4Fc
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2013-06-14 15:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 16:30 [U-Boot] [PATCH] fdt: Ensure that libfdt_env.h comes from U-Boot Simon Glass
2013-04-12 20:24 ` Simon Glass
2013-04-17 2:25 ` Jerry Van Baren
2013-04-17 15:35 ` Tom Rini
2013-06-14 14:56 ` Joe Hershberger
2013-06-14 15:07 ` Tom Rini [this message]
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=51BB319C.8040108@ti.com \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/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.