summaryrefslogtreecommitdiff
path: root/mk/toolchain.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/toolchain.mk')
-rw-r--r--mk/toolchain.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
index addb531..52d93eb 100644
--- a/mk/toolchain.mk
+++ b/mk/toolchain.mk
@@ -54,16 +54,26 @@ include $(EMBTK_ROOT)/mk/gcc.mk
#linux kernel headers
include $(EMBTK_ROOT)/mk/kernel-headers.mk
+ifeq ($(CONFIG_EMBTK_CLIB_EGLIBC),y)
#EGLIBC
include $(EMBTK_ROOT)/mk/eglibc.mk
-
-#targets
-buildtoolchain: mkinitialpath kernel-headers_install ccachehost_install \
+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: $(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 \