|
@@ -493,17 +493,13 @@ $$(printf $(call toolchain_find_libc_a,$(1)) | sed -r -e 's:.*/(usr/)?(lib(32|64
|
|
|
endef
|
|
|
|
|
|
# Checks for an already installed toolchain: check the toolchain
|
|
|
-# location, check that it supports sysroot, and then verify that it
|
|
|
+# location, check that it is usable, and then verify that it
|
|
|
# matches the configuration provided in Buildroot: ABI, C++ support,
|
|
|
# kernel headers version, type of C library and all C library features.
|
|
|
define TOOLCHAIN_EXTERNAL_CONFIGURE_CMDS
|
|
|
$(Q)$(call check_cross_compiler_exists,$(TOOLCHAIN_EXTERNAL_CC))
|
|
|
$(Q)$(call check_unusable_toolchain,$(TOOLCHAIN_EXTERNAL_CC))
|
|
|
$(Q)SYSROOT_DIR="$(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC))" ; \
|
|
|
- if test -z "$${SYSROOT_DIR}" ; then \
|
|
|
- @echo "External toolchain doesn't support --sysroot. Cannot use." ; \
|
|
|
- exit 1 ; \
|
|
|
- fi ; \
|
|
|
$(call check_kernel_headers_version,\
|
|
|
$(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC)),\
|
|
|
$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST))); \
|
|
@@ -654,10 +650,6 @@ endif
|
|
|
|
|
|
define TOOLCHAIN_EXTERNAL_INSTALL_SYSROOT_LIBS
|
|
|
$(Q)SYSROOT_DIR="$(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC))" ; \
|
|
|
- if test -z "$${SYSROOT_DIR}" ; then \
|
|
|
- @echo "External toolchain doesn't support --sysroot. Cannot use." ; \
|
|
|
- exit 1 ; \
|
|
|
- fi ; \
|
|
|
ARCH_SYSROOT_DIR="$(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC) $(TOOLCHAIN_EXTERNAL_CFLAGS))" ; \
|
|
|
ARCH_LIB_DIR="$(call toolchain_find_libdir,$(TOOLCHAIN_EXTERNAL_CC) $(TOOLCHAIN_EXTERNAL_CFLAGS))" ; \
|
|
|
SUPPORT_LIB_DIR="" ; \
|