From: Tom Rini Date: Wed, 17 Apr 2013 11:35:54 -0400 Subject: [U-Boot] [PATCH] fdt: Ensure that libfdt_env.h comes from U-Boot In-Reply-To: <1363019427-31520-1-git-send-email-sjg@chromium.org> References: <1363019427-31520-1-git-send-email-sjg@chromium.org> Message-ID: <20130417153554.GA14952@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: