All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Fix out-of-tree tools/fdt build
Date: Mon, 08 Sep 2008 00:28:07 -0400	[thread overview]
Message-ID: <48C4A9D7.3060300@gmail.com> (raw)
In-Reply-To: <20080908041043.GA12846@cideas.com>

Jerry Van Baren wrote:
> The fdt header files must come from the u-boot versions when building
> the tools (we must use the same definitions in the tools as in the
> u-boot image).  To ensure this, generate the "fdt_host.h" file in the
> Makefile to use the full path to the u-boot fdt header files.
> 
> Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
> ---
> 
> This is *NOT* a final answer.  I'm still getting a build error that I
> cannot figure out so I figured I would appeal to the Wisdom of the List.
> 
> In this patch, I'm auto-generating the fdt_host.h header to specifically
> include the u-boot fdt headers (as opposed to the host's headers).
> There may be better way(s) of doing this and there are the aforementioned
> errors to fix.  Treat this as a challenge for improvements.  ;-)
> 
> Thanks,
> gvb
> 
>  Makefile         |    1 +
>  include/image.h  |    4 ++++
>  tools/Makefile   |   36 ++++++++++++++++++++++++++----------
>  tools/fdt_host.h |   28 ----------------------------
>  tools/mkimage.h  |    2 +-
>  5 files changed, 32 insertions(+), 39 deletions(-)
>  delete mode 100644 tools/fdt_host.h
> 
> diff --git a/Makefile b/Makefile
> index 8d82ef5..be08685 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -3152,6 +3152,7 @@ clean:
>  	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
>  	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
>  	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
> +	@rm -f $(SRCTREE)/tools/fdt_host.h

Arrgh, this should have been:
	@rm -f $(obj)fdt_host.h
(missed that change as my technique evolved).  This doesn't affect the 
aforementioned errors to be fixed or the challenge for improvements.

gvb

      reply	other threads:[~2008-09-08  4:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27  0:13 [U-Boot] libfdt/fdt_ro.c build issues Wolfgang Denk
2008-08-27  2:04 ` Jerry Van Baren
2008-08-27  7:42   ` Wolfgang Denk
2008-08-27  8:04   ` Wolfgang Denk
2008-08-27 11:42     ` JerryVanBaren
2008-09-06 21:21       ` Wolfgang Denk
2008-09-08  4:10         ` [U-Boot] [PATCH] Fix out-of-tree tools/fdt build Jerry Van Baren
2008-09-08  4:28           ` Jerry Van Baren [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=48C4A9D7.3060300@gmail.com \
    --to=gvb.uboot@gmail.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.