Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] toolchain-external: check sysroot *after* copying
@ 2010-12-12 16:25 Mike Frysinger
  2010-12-13 16:52 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2010-12-12 16:25 UTC (permalink / raw)
  To: buildroot

The current toolchain checking code will probe the files in the sysroot to
make sure things are sane, but it does this *before* it actually copies
the files in question over.  Thus from a clean build, it's impossible to
actually use the external toolchain option.

So re-order things so we initialize the local sysroot first and then check
the result.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 toolchain/toolchain-external/ext-tool.mk |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
index 53ad636..a913162 100644
--- a/toolchain/toolchain-external/ext-tool.mk
+++ b/toolchain/toolchain-external/ext-tool.mk
@@ -93,11 +93,6 @@ endif
 ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
 	$(Q)$(call check_cplusplus)
 endif
-ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y)
-	$(Q)$(call check_uclibc,$(SYSROOT_DIR))
-else
-	$(Q)$(call check_glibc,$(SYSROOT_DIR))
-endif
 	mkdir -p $(TARGET_DIR)/lib
 	@echo "Copy external toolchain libraries to target..."
 	$(Q)for libs in $(LIB_EXTERNAL_LIBS); do \
@@ -112,4 +107,9 @@ endif
 	$(Q)if [ -L $(ARCH_SYSROOT_DIR)/lib64 ] ; then \
 		$(call create_lib64_symlinks) ; \
 	fi
+ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y)
+	$(Q)$(call check_uclibc,$(SYSROOT_DIR))
+else
+	$(Q)$(call check_glibc,$(SYSROOT_DIR))
+endif
 	@touch $@
-- 
1.7.3.3

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

end of thread, other threads:[~2010-12-13 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12 16:25 [Buildroot] [PATCH] toolchain-external: check sysroot *after* copying Mike Frysinger
2010-12-13 16:52 ` Thomas Petazzoni
2010-12-13 17:27   ` Mike Frysinger

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