From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 03 Mar 2014 12:14:55 +0100 Subject: [U-Boot] [PATCH 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-1-git-send-email-yamada.m@jp.panasonic.com> <1393812379-19990-3-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <5314642F.6020502@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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_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 > --- > > Makefile | 3 +++ > tools/Makefile | 12 ++++++++++++ > 2 files changed, 15 insertions(+) Tested-by: Heiko Schocher (on the IDS8247 and upcoming ids8313 board) Acked-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany