summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-07-20 12:52:14 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-27 14:11:41 (GMT)
commitb32f186cfd2590da133c21dc32842c6bbc681e03 (patch)
tree098edc503e045c0c09509bfaf20b4ed36fef9c0f
parentcd6c7bc29a072d65d384e47dfa9df4a8362e8143 (diff)
downloadbuildroot-b32f186cfd2590da133c21dc32842c6bbc681e03.tar.gz
buildroot-b32f186cfd2590da133c21dc32842c6bbc681e03.tar.bz2
blackfin: set GNU_TARGET_NAME accordingly
Blackfin for FDPIC targets uses *-linux-*, however for FLAT targets it needs *-uclinux-* in order for gcc to build properly. [Thomas: use a TARGET_OS variable instead of redefining GNU_TARGET_NAME completely] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Makefile.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 95eec52..aed28d5 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -21,7 +21,14 @@ MAKE1:=$(HOSTMAKE) -j1
MAKE:=$(HOSTMAKE) -j$(PARALLEL_JOBS)
# Compute GNU_TARGET_NAME
-GNU_TARGET_NAME=$(ARCH)-buildroot-linux-$(LIBC)$(ABI)
+GNU_TARGET_NAME=$(ARCH)-buildroot-$(TARGET_OS)-$(LIBC)$(ABI)
+
+# Blackfin FLAT needs uclinux
+ifeq ($(BR2_bfin)$(BR2_BINFMT_FLAT),yy)
+TARGET_OS=uclinux
+else
+TARGET_OS=linux
+endif
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
LIBC=uclibc