summaryrefslogtreecommitdiff
path: root/mk/toolchain.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/toolchain.mk')
-rw-r--r--mk/toolchain.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
index 27e6f88..52d93eb 100644
--- a/mk/toolchain.mk
+++ b/mk/toolchain.mk
@@ -57,18 +57,23 @@ include $(EMBTK_ROOT)/mk/kernel-headers.mk
ifeq ($(CONFIG_EMBTK_CLIB_EGLIBC),y)
#EGLIBC
include $(EMBTK_ROOT)/mk/eglibc.mk
+TOOLCHAINBUILD := mkinitialpath kernel-headers_install ccachehost_install \
+ gmphost_install mpfrhost_install binutils_install \
+ gcc1_install eglibc-headers_install gcc2_install \
+ eglibc_install gcc3_install
else
#uClibc
include $(EMBTK_ROOT)/mk/uclibc.mk
+TOOLCHAINBUILD := mkinitialpath kernel-headers_install ccachehost_install \
+ gmphost_install mpfrhost_install binutils_install gcc1_install \
+ uclibc_install gcc3_install
endif
#targets
-buildtoolchain: mkinitialpath kernel-headers_install ccachehost_install \
- gmphost_install mpfrhost_install binutils_install \
- gcc1_install eglibc-headers_install gcc2_install \
- eglibc_install gcc3_install
+buildtoolchain: $(TOOLCHAINBUILD)
$(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 \