From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 4 Mar 2014 14:19:22 -0500 Subject: [U-Boot] [U-Boot, 2/2] kbuild: add "cross_tools" target to build tools for the target In-Reply-To: <1393812379-19990-3-git-send-email-yamada.m@jp.panasonic.com> References: <1393812379-19990-3-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140304191922.GP16805@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 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 _config > $ export CROSS_COMPILE= > $ 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= tools > > Build tools for the target > $ make CROSS_COMPILE= cross_tools > > Besides, "make cross_tools" strip tools programs because we > generally expect smaller storages on embedded systems. > > Signed-off-by: Masahiro Yamada > Reported-by: Heiko Schocher > Cc: Wolfgang Denk > Cc: Tom Rini > Tested-by: Heiko Schocher > Acked-by: Heiko Schocher 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: