summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/toolchain.mk12
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