diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-06-08 21:32:51 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-06-08 21:32:51 +0200 |
commit | 5463eef829dd393d00458e675a9e7fb3a7bc6be4 (patch) | |
tree | a53130b3a239f4b8f6854bc479764220292f9a36 /mk/toolchain.mk | |
parent | 644ba08a72f1f3597e32c2153b33ae60ef073cbf (diff) | |
download | embtoolkit-5463eef829dd393d00458e675a9e7fb3a7bc6be4.tar.gz embtoolkit-5463eef829dd393d00458e675a9e7fb3a7bc6be4.tar.bz2 embtoolkit-5463eef829dd393d00458e675a9e7fb3a7bc6be4.tar.xz |
Toolchain: create symlinks with GNU_TARGET in tools binary directory
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk/toolchain.mk')
-rw-r--r-- | mk/toolchain.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/toolchain.mk b/mk/toolchain.mk index 01c109e..6e4de39 100644 --- a/mk/toolchain.mk +++ b/mk/toolchain.mk @@ -52,5 +52,15 @@ include $(EMBTK_ROOT)/mk/eglibc.mk buildtoolchain: mkinitialpath ccachehost_install gmphost_install \ mpfrhost_install binutils_install gcc1_install \ kernel-headers_install eglibc-headers_install \ - gcc2_install eglibc_install gcc3_install + gcc2_install eglibc_install gcc3_install symlink_tools + $(call EMBTK_GENERIC_MESSAGE,"You successfully build a toolchain for $(STRICT_GNU_TARGET !!!") +symlink_tools: + @cd $(TOOLS)/bin/; export TOOLS_LIST="`ls`"; \ + for i in $$TOOLS_LIST;do \ + TOOLS_NAME=$$TOOLS_NAME" ""`echo $$i | sed 's/$(STRICT_GNU_TARGET)-*//'`" ; \ + done; \ + export TOOLS_NAME; \ + for i in $$TOOLS_NAME;do \ + ln -s $(STRICT_GNU_TARGET)-$$i $(GNU_TARGET)-$$i; \ + done |