summaryrefslogtreecommitdiff
path: root/toolchain/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-03 14:23:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-07-03 14:23:32 +0000
commit5d19a38d8008411f06b8beb265d94890690f562b (patch)
treee1a15ed27522ba51c4219d68461c71ba699347bd /toolchain/Makefile
parentf1a1d0a2624900df6729ba5281093af6d0cbf8b3 (diff)
downloadmtk-20170518-5d19a38d8008411f06b8beb265d94890690f562b.zip
mtk-20170518-5d19a38d8008411f06b8beb265d94890690f562b.tar.gz
mtk-20170518-5d19a38d8008411f06b8beb265d94890690f562b.tar.bz2
toolchain: sync eglibc headers/build split with uclibc changes
SVN-Revision: 32584
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r--toolchain/Makefile25
1 files changed, 8 insertions, 17 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index 25f8f46..bdfb29e 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -28,9 +28,8 @@
curdir:=toolchain
# subdirectories to descend into
-$(curdir)/builddirs := $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_INSIGHT),insight) $(if $(CONFIG_EXTERNAL_TOOLCHAIN),wrapper,kernel-headers binutils gcc/minimal gcc/initial gcc/final $(LIBC))
+$(curdir)/builddirs := $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_INSIGHT),insight) $(if $(CONFIG_EXTERNAL_TOOLCHAIN),wrapper,kernel-headers binutils gcc/minimal gcc/initial gcc/final $(LIBC)/headers $(LIBC))
ifdef CONFIG_USE_UCLIBC
- $(curdir)/builddirs += $(LIBC)/headers
$(curdir)/builddirs += $(LIBC)/utils
endif
$(curdir)/builddirs-compile:=$($(curdir)/builddirs-prepare)
@@ -43,21 +42,13 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
$(curdir)/gcc/initial/prepare:=$(curdir)/gcc/minimal/prepare
$(curdir)/gcc/final/prepare:=$(curdir)/gcc/initial/prepare
- ifdef CONFIG_USE_UCLIBC
- $(curdir)/$(LIBC)/headers/compile:=$(curdir)/kernel-headers/install
- $(curdir)/gcc/initial/compile:=$(curdir)/$(LIBC)/headers/install
- $(curdir)/$(LIBC)/compile:=$(curdir)/gcc/initial/install
- $(curdir)/gcc/final/compile:=$(curdir)/$(LIBC)/install
- $(curdir)/$(LIBC)/utils/compile:=$(curdir)/gcc/final/install
- $(curdir)/$(LIBC)/prepare:=$(curdir)/$(LIBC)/headers/prepare
- $(curdir)/$(LIBC)/utils/prepare:=$(curdir)/$(LIBC)/headers/prepare
- else
- $(curdir)/$(LIBC)/prepare:=$(curdir)/kernel-headers/install
- $(curdir)/$(LIBC)/compile:=$(curdir)/gcc/initial/install
- $(curdir)/$(LIBC)/install:=$(curdir)/gcc/final/install
- $(curdir)/gcc/initial/compile:=$(curdir)/$(LIBC)/prepare
- $(curdir)/gcc/final/compile:=$(curdir)/$(LIBC)/compile
- endif
+ $(curdir)/$(LIBC)/headers/compile:=$(curdir)/kernel-headers/install
+ $(curdir)/gcc/initial/compile:=$(curdir)/$(LIBC)/headers/install
+ $(curdir)/$(LIBC)/compile:=$(curdir)/gcc/initial/install
+ $(curdir)/gcc/final/compile:=$(curdir)/$(LIBC)/install
+ $(curdir)/$(LIBC)/utils/compile:=$(curdir)/gcc/final/install
+ $(curdir)/$(LIBC)/prepare:=$(curdir)/$(LIBC)/headers/prepare
+ $(curdir)/$(LIBC)/utils/prepare:=$(curdir)/$(LIBC)/headers/prepare
endif
ifdef CONFIG_GCC_VERSION_LLVM