Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] toolchain: Use the correct target name
@ 2015-01-15 22:48 André Hentschel
  2015-01-16  8:29 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: André Hentschel @ 2015-01-15 22:48 UTC (permalink / raw)
  To: buildroot

When using an external toolchain we need to use the toolchain prefix
for the staging directory and e.g. for configure.

Signed-off-by: Andr? Hentschel <nerv@dawncrow.de>
---
This fixes cross compiling Wine (not yet upstream because of that).

 package/Makefile.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/Makefile.in b/package/Makefile.in
index 2055f00..0a00c7e 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -36,7 +36,11 @@ $(error BR2_TOOLCHAIN_BUILDROOT_VENDOR cannot be 'unknown'. \
 endif

 # Compute GNU_TARGET_NAME
+ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
 GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-$(TARGET_OS)-$(LIBC)$(ABI)
+else
+GNU_TARGET_NAME = $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
+endif

 # FLAT binary format needs uclinux
 ifeq ($(BR2_BINFMT_FLAT),y)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-18 16:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-15 22:48 [Buildroot] [PATCH] toolchain: Use the correct target name André Hentschel
2015-01-16  8:29 ` Thomas Petazzoni
2015-01-18 12:45   ` André Hentschel
2015-01-18 16:27     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox