From b32f186cfd2590da133c21dc32842c6bbc681e03 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Sat, 20 Jul 2013 09:52:14 -0300 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/Makefile.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package/Makefile.in b/package/Makefile.in index 95eec52dcc..aed28d5a27 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 -- 2.30.2