public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, 2/2] kbuild: add "cross_tools" target to build tools for the target
Date: Tue, 4 Mar 2014 14:19:22 -0500	[thread overview]
Message-ID: <20140304191922.GP16805@bill-the-cat> (raw)
In-Reply-To: <1393812379-19990-3-git-send-email-yamada.m@jp.panasonic.com>

On Mon, Mar 03, 2014 at 11:06:19AM +0900, Masahiro Yamada wrote:

> Programs in tools/ directory are usually built for the host.
> But some of them (mkimage, dumpimge, gen_eth_addr, etc.) are
> useful on the target OS too.
> 
> Actually, prior to Kbuild, U-Boot could build tools for
> the target like follows:
> 
>   $ make <target_board>_config
>   $ export CROSS_COMPILE=<cross_gcc_prefix>
>   $ make HOSTCC=${CROSS_COMPILE}gcc HOSTSTRIP=${CROSS_COMPILE}strip tools
> 
> In Kbuild, we can no longer replace HOSTCC at the command line.
> 
> In order to get back that feature, this commit adds "cross-tools" target.
> 
> Usage:
> 
>   Build tools for the host
>   $ make CROSS_COMPILE=<cross_gcc_prefix> tools
> 
>   Build tools for the target
>   $ make CROSS_COMPILE=<cross_gcc_prefix> cross_tools
> 
> Besides, "make cross_tools" strip tools programs because we
> generally expect smaller storages on embedded systems.
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Reported-by: Heiko Schocher <hs@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Tom Rini <trini@ti.com>
> Tested-by: Heiko Schocher <hs@denx.de>
> Acked-by: Heiko Schocher <hs@denx.de>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20140304/81b9dbb5/attachment.pgp>

      parent reply	other threads:[~2014-03-04 19:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03  2:06 [U-Boot] [PATCH 0/2] Masahiro Yamada
2014-03-03  2:06 ` [U-Boot] [PATCH 1/2] kbuild: fix "tools-all" target Masahiro Yamada
2014-03-03 11:14   ` Heiko Schocher
2014-03-04 19:19   ` [U-Boot] [U-Boot,1/2] " Tom Rini
2014-03-03  2:06 ` [U-Boot] [PATCH 2/2] kbuild: add "cross_tools" target to build tools for the target Masahiro Yamada
2014-03-03 11:14   ` Heiko Schocher
2014-03-04 19:19   ` 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=20140304191922.GP16805@bill-the-cat \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox