* [U-Boot] [PATCH 0/2]
@ 2014-03-03 2:06 Masahiro Yamada
2014-03-03 2:06 ` [U-Boot] [PATCH 1/2] kbuild: fix "tools-all" target Masahiro Yamada
2014-03-03 2:06 ` [U-Boot] [PATCH 2/2] kbuild: add "cross_tools" target to build tools for the target Masahiro Yamada
0 siblings, 2 replies; 8+ messages in thread
From: Masahiro Yamada @ 2014-03-03 2:06 UTC (permalink / raw)
To: u-boot
Kbuild: fix tools build
Masahiro Yamada (2):
kbuild: fix "tools-all" target
kbuild: add "cross_tools" target to build tools for the target
Makefile | 5 ++++-
tools/Makefile | 12 ++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
--
1.8.3.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH 1/2] kbuild: fix "tools-all" target
2014-03-03 2:06 [U-Boot] [PATCH 0/2] Masahiro Yamada
@ 2014-03-03 2:06 ` 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
1 sibling, 2 replies; 8+ messages in thread
From: Masahiro Yamada @ 2014-03-03 2:06 UTC (permalink / raw)
To: u-boot
The top Makefile must export HOST_TOOLS_ALL to use it
in tools/Makefile.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e49a240..3647804 100644
--- a/Makefile
+++ b/Makefile
@@ -1142,7 +1142,7 @@ checkarmreloc: u-boot
env: scripts_basic
$(Q)$(MAKE) $(build)=tools/$@
-tools-all: HOST_TOOLS_ALL=y
+tools-all: export HOST_TOOLS_ALL=y
tools-all: env tools ;
.PHONY : CHANGELOG
--
1.8.3.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH 2/2] kbuild: add "cross_tools" target to build tools for the target
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 2:06 ` Masahiro Yamada
2014-03-03 11:14 ` Heiko Schocher
2014-03-04 19:19 ` [U-Boot] [U-Boot, " Tom Rini
1 sibling, 2 replies; 8+ messages in thread
From: Masahiro Yamada @ 2014-03-03 2:06 UTC (permalink / raw)
To: u-boot
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(+)
diff --git a/Makefile b/Makefile
index 3647804..ea4a362 100644
--- a/Makefile
+++ b/Makefile
@@ -1145,6 +1145,9 @@ env: scripts_basic
tools-all: export HOST_TOOLS_ALL=y
tools-all: env tools ;
+cross_tools: export CROSS_BUILD_TOOLS=y
+cross_tools: tools ;
+
.PHONY : CHANGELOG
CHANGELOG:
git log --no-merges U-Boot-1_1_5.. | \
diff --git a/tools/Makefile b/tools/Makefile
index dcd49f8..8fccc65 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -191,3 +191,15 @@ $(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP)
# Let clean descend into subdirs
subdir- += env
+
+ifneq ($(CROSS_BUILD_TOOLS),)
+HOSTCC = $(CC)
+
+quiet_cmd_crosstools_strip = STRIP $^
+ cmd_crosstools_strip = $(STRIP) $^; touch $@
+$(obj)/.strip: $(call objectify,$(filter $(always),$(hostprogs-y)))
+ $(call cmd,crosstools_strip)
+
+always += .strip
+endif
+clean-files += .strip
--
1.8.3.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH 1/2] kbuild: fix "tools-all" target
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
1 sibling, 0 replies; 8+ messages in thread
From: Heiko Schocher @ 2014-03-03 11:14 UTC (permalink / raw)
To: u-boot
Hello Masahiro,
Am 03.03.2014 03:06, schrieb Masahiro Yamada:
> The top Makefile must export HOST_TOOLS_ALL to use it
> in tools/Makefile.
>
> Signed-off-by: Masahiro Yamada<yamada.m@jp.panasonic.com>
> ---
>
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH 2/2] kbuild: add "cross_tools" target to build tools for the target
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 ` [U-Boot] [U-Boot, " Tom Rini
1 sibling, 0 replies; 8+ messages in thread
From: Heiko Schocher @ 2014-03-03 11:14 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot,1/2] kbuild: fix "tools-all" target
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 ` Tom Rini
1 sibling, 0 replies; 8+ messages in thread
From: Tom Rini @ 2014-03-04 19:19 UTC (permalink / raw)
To: u-boot
On Mon, Mar 03, 2014 at 11:06:18AM +0900, Masahiro Yamada wrote:
> The top Makefile must export HOST_TOOLS_ALL to use it
> in tools/Makefile.
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.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/f3baa045/attachment.pgp>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot, 2/2] kbuild: add "cross_tools" target to build tools for the target
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
1 sibling, 0 replies; 8+ messages in thread
From: Tom Rini @ 2014-03-04 19:19 UTC (permalink / raw)
To: u-boot
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>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH 0/2]
@ 2015-05-26 6:32 Masahiro Yamada
0 siblings, 0 replies; 8+ messages in thread
From: Masahiro Yamada @ 2015-05-26 6:32 UTC (permalink / raw)
To: u-boot
1/2: refactors a little because NDS32 actually need not the symbolic link
2/2: introduce a new config to avoid broken symbolic links.
Masahiro Yamada (2):
nds32: include <asm/arch-*/*.h> instead of <asm/arch/*.h>
kbuild: create symbolic link only for ARM, SPARC, PowerPC, x86
arch/Kconfig | 6 ++++++
arch/powerpc/Kconfig | 3 +++
include/configs/adp-ag101.h | 2 +-
include/configs/adp-ag101p.h | 2 +-
include/configs/adp-ag102.h | 2 +-
scripts/Makefile.autoconf | 2 ++
6 files changed, 14 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-05-26 6:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [U-Boot] [U-Boot, " Tom Rini
2015-05-26 6:32 [U-Boot] [PATCH 0/2] Masahiro Yamada
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.