[U-Boot] [U-Boot, 2/2] kbuild: add "cross_tools" target to build tools for the target
Tom Rini
trini at ti.com
Tue Mar 4 20:19:22 CET 2014
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 at jp.panasonic.com>
> Reported-by: Heiko Schocher <hs at denx.de>
> Cc: Wolfgang Denk <wd at denx.de>
> Cc: Tom Rini <trini at ti.com>
> Tested-by: Heiko Schocher <hs at denx.de>
> Acked-by: Heiko Schocher <hs at 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>
More information about the U-Boot
mailing list