public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] kbuild: add "cross_tools" target to build tools for the target
Date: Mon, 03 Mar 2014 12:14:55 +0100	[thread overview]
Message-ID: <5314642F.6020502@denx.de> (raw)
In-Reply-To: <1393812379-19990-3-git-send-email-yamada.m@jp.panasonic.com>

Hello Masahiro,

Am 03.03.2014 03:06, schrieb Masahiro Yamada:
> 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>
> ---
>
>   Makefile       |  3 +++
>   tools/Makefile | 12 ++++++++++++
>   2 files changed, 15 insertions(+)

Tested-by: Heiko Schocher <hs@denx.de>
(on the IDS8247 and upcoming ids8313 board)

Acked-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2014-03-03 11:14 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 [this message]
2014-03-04 19:19   ` [U-Boot] [U-Boot, " Tom Rini

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=5314642F.6020502@denx.de \
    --to=hs@denx.de \
    --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