From 5463eef829dd393d00458e675a9e7fb3a7bc6be4 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Mon, 8 Jun 2009 21:32:51 +0200 Subject: Toolchain: create symlinks with GNU_TARGET in tools binary directory Signed-off-by: Abdoulaye Walsimou Gaye --- mk/toolchain.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'mk') 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 -- cgit v1.2.3