Initial Commit
- initial default booting image
This commit is contained in:
1010
toolchain/Config.in
Normal file
1010
toolchain/Config.in
Normal file
File diff suppressed because it is too large
Load Diff
560
toolchain/helpers.mk
Normal file
560
toolchain/helpers.mk
Normal file
@@ -0,0 +1,560 @@
|
||||
# This Makefile fragment declares toolchain related helper functions.
|
||||
|
||||
# The copy_toolchain_lib_root function copies a toolchain library and
|
||||
# its symbolic links from the sysroot directory to the target
|
||||
# directory. Note that this function is used both by the external
|
||||
# toolchain logic, and the glibc package, so care must be taken when
|
||||
# changing this function.
|
||||
#
|
||||
# $1: library name pattern (can include glob wildcards)
|
||||
#
|
||||
copy_toolchain_lib_root = \
|
||||
LIBPATTERN="$(strip $1)"; \
|
||||
LIBPATHS=`find $(STAGING_DIR)/ -name "$${LIBPATTERN}" 2>/dev/null` ; \
|
||||
for LIBPATH in $${LIBPATHS} ; do \
|
||||
while true ; do \
|
||||
LIBNAME=`basename $${LIBPATH}`; \
|
||||
DESTDIR=`echo $${LIBPATH} | sed "s,^$(STAGING_DIR)/,," | xargs dirname` ; \
|
||||
mkdir -p $(TARGET_DIR)/$${DESTDIR}; \
|
||||
rm -fr $(TARGET_DIR)/$${DESTDIR}/$${LIBNAME}; \
|
||||
if test -h $${LIBPATH} ; then \
|
||||
cp -d $${LIBPATH} $(TARGET_DIR)/$${DESTDIR}/$${LIBNAME}; \
|
||||
OLD_LIBPATH="$${LIBPATH}"; \
|
||||
LIBPATH="`readlink -f $${LIBPATH}`"; \
|
||||
if [ "$${LIBPATH}" = "" ]; then \
|
||||
echo "LIBPATH empty after trying to resolve symlink $${OLD_LIBPATH}" 1>&2; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
elif test -f $${LIBPATH}; then \
|
||||
$(INSTALL) -D -m0755 $${LIBPATH} $(TARGET_DIR)/$${DESTDIR}/$${LIBNAME}; \
|
||||
break ; \
|
||||
else \
|
||||
exit -1; \
|
||||
fi; \
|
||||
done; \
|
||||
done
|
||||
|
||||
#
|
||||
# Copy the full external toolchain sysroot directory to the staging
|
||||
# dir. The operation of this function is rendered a little bit
|
||||
# complicated by the support for multilib toolchains.
|
||||
#
|
||||
# We start by copying etc, 'lib', sbin, usr and usr/'lib' from the
|
||||
# sysroot of the selected architecture variant (as pointed to by
|
||||
# ARCH_SYSROOT_DIR). This allows to import into the staging directory
|
||||
# the C library and companion libraries for the correct architecture
|
||||
# variant. 'lib' may not be literally 'lib' but could be something else,
|
||||
# e.g. lib32-fp (as determined by ARCH_LIB_DIR) and we only want to copy
|
||||
# that lib directory and no other. When copying usr, we therefore need
|
||||
# to be extra careful not to include usr/lib* but we _do_ want to
|
||||
# include usr/libexec.
|
||||
# We are selective in the directories we copy since other directories
|
||||
# might exist for other architecture variants (on Codesourcery
|
||||
# toolchain, the sysroot for the default architecture variant contains
|
||||
# the armv4t and thumb2 subdirectories, which are the sysroot for the
|
||||
# corresponding architecture variants), and we don't want to import
|
||||
# them.
|
||||
#
|
||||
# If ARCH_LIB_DIR is not a singular directory component, e.g.
|
||||
# 'lib32/octeon2', then symbolic links in ARCH_LIB_DIR and
|
||||
# usr/ARCH_LIB_DIR may be broken because Buildroot will flatten the
|
||||
# directory structure (e.g. lib32/octeon2/foo is actually stored in
|
||||
# lib/foo). This is only relevant for links that contain one or more ../
|
||||
# components, as links to the current directory are always fine.
|
||||
# We need to fix the broken links by removing the right amount of ../
|
||||
# dots from the link destination.
|
||||
# Once the link destination is valid again, it can be simplified to
|
||||
# remove the dependency on intermediate directory symlinks.
|
||||
#
|
||||
# It is possible that ARCH_LIB_DIR does not contain the dynamic loader
|
||||
# (ld*.so or similar) because it (or the main symlink to it) normally
|
||||
# resides in /lib while ARCH_LIB_DIR may be something else (e.g. lib64,
|
||||
# lib/<tuple>, ...). Therefore, copy the dynamic loader separately.
|
||||
#
|
||||
# Then, if the selected architecture variant is not the default one
|
||||
# (i.e, if SYSROOT_DIR != ARCH_SYSROOT_DIR), then we :
|
||||
#
|
||||
# * Import the header files from the default architecture
|
||||
# variant. Header files are typically shared between the sysroots
|
||||
# for the different architecture variants. If we use the
|
||||
# non-default one, header files were not copied by the previous
|
||||
# step, so we copy them here from the sysroot of the default
|
||||
# architecture variant.
|
||||
#
|
||||
# * Create a symbolic link that matches the name of the subdirectory
|
||||
# for the architecture variant in the original sysroot. This is
|
||||
# required as the compiler will by default look in
|
||||
# sysroot_dir/arch_variant/ for libraries and headers, when the
|
||||
# non-default architecture variant is used. Without this, the
|
||||
# compiler fails to find libraries and headers.
|
||||
#
|
||||
# Some toolchains (i.e Linaro binary toolchains) store support
|
||||
# libraries (libstdc++, libgcc_s) outside of the sysroot, so we simply
|
||||
# copy all the libraries from the "support lib directory" into our
|
||||
# sysroot.
|
||||
#
|
||||
# Note that the 'locale' directories are not copied. They are huge
|
||||
# (400+MB) in CodeSourcery toolchains, and they are not really useful.
|
||||
#
|
||||
# usr/sbin may be a directory in the source toolchain, but a symlink
|
||||
# in the destination sysroot, when we are using a merged-bin. Account
|
||||
# for that.
|
||||
#
|
||||
# $1: main sysroot directory of the toolchain
|
||||
# $2: arch specific sysroot directory of the toolchain
|
||||
# $3: arch specific subdirectory in the sysroot
|
||||
# $4: directory of libraries ('lib', 'lib32' or 'lib64')
|
||||
# $5: support lib directories (for toolchains storing libgcc_s,
|
||||
# libstdc++ and other gcc support libraries outside of the
|
||||
# sysroot)
|
||||
copy_toolchain_sysroot = \
|
||||
SYSROOT_DIR="$(strip $1)"; \
|
||||
ARCH_SYSROOT_DIR="$(strip $2)"; \
|
||||
ARCH_SUBDIR="$(strip $3)"; \
|
||||
ARCH_LIB_DIR="$(strip $4)" ; \
|
||||
SUPPORT_LIB_DIR="$(strip $5)" ; \
|
||||
for i in etc $${ARCH_LIB_DIR} sbin usr usr/$${ARCH_LIB_DIR} usr/sbin; do \
|
||||
if [ ! -d $${ARCH_SYSROOT_DIR}/$$i ] ; then \
|
||||
continue ; \
|
||||
fi ; \
|
||||
if [ "$$i" = "usr" ]; then \
|
||||
rsync -au --chmod=u=rwX,go=rX --exclude 'locale/' \
|
||||
--include '/libexec*/' --exclude '/lib*/' --exclude '/sbin' \
|
||||
$${ARCH_SYSROOT_DIR}/$$i/ $(STAGING_DIR)/$$i/ ; \
|
||||
else \
|
||||
rsync -au --chmod=u=rwX,go=rX --exclude 'locale/' \
|
||||
$${ARCH_SYSROOT_DIR}/$$i/ $(STAGING_DIR)/$$i/ ; \
|
||||
fi ; \
|
||||
done ; \
|
||||
for link in $$(find $(STAGING_DIR) -type l); do \
|
||||
target=$$(readlink $${link}) ; \
|
||||
if [ "$${target}" == "$${target$(SHARP_SIGN)/}" ] ; then \
|
||||
continue ; \
|
||||
fi ; \
|
||||
relpath="$(call relpath_prefix,$${target$(SHARP_SIGN)/})" ; \
|
||||
echo "Fixing symlink $${link} from $${target} to $${relpath}$${target$(SHARP_SIGN)/}" ; \
|
||||
ln -sf $${relpath}$${target$(SHARP_SIGN)/} $${link} ; \
|
||||
done ; \
|
||||
relpath="$(call relpath_prefix,$${ARCH_LIB_DIR})" ; \
|
||||
if [ "$${relpath}" != "" ]; then \
|
||||
for i in $$(find -H $(STAGING_DIR)/$${ARCH_LIB_DIR} $(STAGING_DIR)/usr/$${ARCH_LIB_DIR} -type l -xtype l); do \
|
||||
LINKTARGET=`readlink $$i` ; \
|
||||
NEWLINKTARGET=$${LINKTARGET\#$$relpath} ; \
|
||||
ln -sf $${NEWLINKTARGET} $$i ; \
|
||||
$(call simplify_symlink,$$i,$(STAGING_DIR)) ; \
|
||||
done ; \
|
||||
fi ; \
|
||||
if [[ ! $$(find $(STAGING_DIR)/lib -name 'ld*.so.*' -print -quit) ]]; then \
|
||||
find $${ARCH_SYSROOT_DIR}/lib -name 'ld*.so.*' -print0 | xargs -0 -I % cp % $(STAGING_DIR)/lib/; \
|
||||
fi ; \
|
||||
if [ `readlink -f $${SYSROOT_DIR}` != `readlink -f $${ARCH_SYSROOT_DIR}` ] ; then \
|
||||
if [ ! -d $${ARCH_SYSROOT_DIR}/usr/include ] ; then \
|
||||
cp -a $${SYSROOT_DIR}/usr/include $(STAGING_DIR)/usr ; \
|
||||
fi ; \
|
||||
mkdir -p `dirname $(STAGING_DIR)/$${ARCH_SUBDIR}` ; \
|
||||
relpath="$(call relpath_prefix,$${ARCH_SUBDIR})./" ; \
|
||||
ln -s $${relpath} $(STAGING_DIR)/$${ARCH_SUBDIR} ; \
|
||||
echo "Symlinking $(STAGING_DIR)/$${ARCH_SUBDIR} -> $${relpath}" ; \
|
||||
fi ; \
|
||||
if test -n "$${SUPPORT_LIB_DIR}" ; then \
|
||||
cp -a $${SUPPORT_LIB_DIR}/* $(STAGING_DIR)/lib/ ; \
|
||||
fi ; \
|
||||
find $(STAGING_DIR) -type d -print0 | xargs -0 chmod 755
|
||||
|
||||
#
|
||||
# Check the specified kernel headers version actually matches the
|
||||
# version in the toolchain.
|
||||
#
|
||||
# $1: build directory
|
||||
# $2: sysroot directory
|
||||
# $3: kernel version string, in the form: X.Y
|
||||
# $4: test to do for the latest kernel version, 'strict' or 'loose'
|
||||
# always 'strict' if this is not the latest version.
|
||||
#
|
||||
check_kernel_headers_version = \
|
||||
if ! support/scripts/check-kernel-headers.sh $(1) $(2) $(3) \
|
||||
$(if $(BR2_TOOLCHAIN_HEADERS_LATEST),$(4),strict); \
|
||||
then \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check the specific gcc version actually matches the version in the
|
||||
# toolchain
|
||||
#
|
||||
# $1: path to gcc
|
||||
# $2: expected gcc version
|
||||
#
|
||||
check_gcc_version = \
|
||||
expected_version="$(strip $2)" ; \
|
||||
if [ -z "$${expected_version}" ]; then \
|
||||
exit 0 ; \
|
||||
fi; \
|
||||
real_version=`$(1) -dumpversion` ; \
|
||||
if [[ ! "$${real_version}." =~ ^$${expected_version}\. ]] ; then \
|
||||
printf "Incorrect selection of gcc version: expected %s.x, got %s\n" \
|
||||
"$${expected_version}" "$${real_version}" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check the availability of a particular glibc feature. This function
|
||||
# is used to check toolchain options that are always supported by
|
||||
# glibc, so we simply check that the corresponding option is properly
|
||||
# enabled.
|
||||
#
|
||||
# $1: Buildroot option name
|
||||
# $2: feature description
|
||||
#
|
||||
check_glibc_feature = \
|
||||
if [ "$($(1))" != "y" ] ; then \
|
||||
echo "$(2) available in C library, please enable $(1)" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check the availability of RPC support in a glibc toolchain
|
||||
#
|
||||
# $1: sysroot directory
|
||||
#
|
||||
check_glibc_rpc_feature = \
|
||||
IS_IN_LIBC=`test -f $(1)/usr/include/rpc/rpc.h && echo y` ; \
|
||||
if [ "$(BR2_TOOLCHAIN_HAS_NATIVE_RPC)" != "y" -a "$${IS_IN_LIBC}" = "y" ] ; then \
|
||||
echo "RPC support available in C library, please enable BR2_TOOLCHAIN_EXTERNAL_INET_RPC" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
if [ "$(BR2_TOOLCHAIN_HAS_NATIVE_RPC)" = "y" -a "$${IS_IN_LIBC}" != "y" ] ; then \
|
||||
echo "RPC support not available in C library, please disable BR2_TOOLCHAIN_EXTERNAL_INET_RPC" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check the correctness of a glibc external toolchain configuration.
|
||||
# 1. Check that the C library selected in Buildroot matches the one
|
||||
# of the external toolchain
|
||||
# 2. Check that all the C library-related features are enabled in the
|
||||
# config, since glibc always supports all of them
|
||||
#
|
||||
# $1: sysroot directory
|
||||
#
|
||||
check_glibc = \
|
||||
SYSROOT_DIR="$(strip $1)"; \
|
||||
if test `find -L $${SYSROOT_DIR}/ -maxdepth 2 -name 'ld-linux*.so.*' -o -name 'ld.so.*' -o -name 'ld64.so.*' | wc -l` -eq 0 ; then \
|
||||
echo "Incorrect selection of the C library"; \
|
||||
exit -1; \
|
||||
fi; \
|
||||
$(call check_glibc_feature,BR2_USE_MMU,MMU support) ;\
|
||||
$(call check_glibc_rpc_feature,$${SYSROOT_DIR})
|
||||
|
||||
#
|
||||
# Check that the selected C library really is musl
|
||||
#
|
||||
# $1: cross-gcc path
|
||||
# $2: cross-readelf path
|
||||
check_musl = \
|
||||
__CROSS_CC=$(strip $1) ; \
|
||||
libc_a_path=`$${__CROSS_CC} -print-file-name=libc.a` ; \
|
||||
if ! strings $${libc_a_path} | grep -q MUSL_LOCPATH ; then \
|
||||
echo "Incorrect selection of the C library" ; \
|
||||
exit -1; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check the conformity of Buildroot configuration with regard to the
|
||||
# uClibc configuration of the external toolchain, for a particular
|
||||
# feature.
|
||||
#
|
||||
# If 'Buildroot option name' ($2) is empty it means the uClibc option
|
||||
# is mandatory.
|
||||
#
|
||||
# $1: uClibc macro name
|
||||
# $2: Buildroot option name
|
||||
# $3: uClibc config file
|
||||
# $4: feature description
|
||||
#
|
||||
check_uclibc_feature = \
|
||||
IS_IN_LIBC=`grep -q "\#define $(1) 1" $(3) && echo y` ; \
|
||||
if [ -z "$(2)" ] ; then \
|
||||
if [ "$${IS_IN_LIBC}" != "y" ] ; then \
|
||||
echo "$(4) not available in C library, toolchain unsuitable for Buildroot" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
else \
|
||||
if [ "$($(2))" != "y" -a "$${IS_IN_LIBC}" = "y" ] ; then \
|
||||
echo "$(4) available in C library, please enable $(2)" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
if [ "$($(2))" = "y" -a "$${IS_IN_LIBC}" != "y" ] ; then \
|
||||
echo "$(4) not available in C library, please disable $(2)" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check the correctness of a uclibc external toolchain configuration
|
||||
# 1. Check that the C library selected in Buildroot matches the one
|
||||
# of the external toolchain
|
||||
# 2. Check that the features enabled in the Buildroot configuration
|
||||
# match the features available in the uClibc of the external
|
||||
# toolchain
|
||||
#
|
||||
# $1: sysroot directory
|
||||
#
|
||||
check_uclibc = \
|
||||
SYSROOT_DIR="$(strip $1)"; \
|
||||
if ! test -f $${SYSROOT_DIR}/usr/include/bits/uClibc_config.h ; then \
|
||||
echo "Incorrect selection of the C library"; \
|
||||
exit -1; \
|
||||
fi; \
|
||||
UCLIBC_CONFIG_FILE=$${SYSROOT_DIR}/usr/include/bits/uClibc_config.h ; \
|
||||
$(call check_uclibc_feature,__ARCH_USE_MMU__,BR2_USE_MMU,$${UCLIBC_CONFIG_FILE},MMU support) ;\
|
||||
$(call check_uclibc_feature,__UCLIBC_HAS_LFS__,,$${UCLIBC_CONFIG_FILE},Large file support) ;\
|
||||
$(call check_uclibc_feature,__UCLIBC_HAS_IPV6__,,$${UCLIBC_CONFIG_FILE},IPv6 support) ;\
|
||||
$(call check_uclibc_feature,__UCLIBC_HAS_RPC__,BR2_TOOLCHAIN_HAS_NATIVE_RPC,$${UCLIBC_CONFIG_FILE},RPC support) ;\
|
||||
$(call check_uclibc_feature,__UCLIBC_HAS_XLOCALE__,BR2_ENABLE_LOCALE,$${UCLIBC_CONFIG_FILE},Locale support) ;\
|
||||
$(call check_uclibc_feature,__UCLIBC_HAS_WCHAR__,BR2_USE_WCHAR,$${UCLIBC_CONFIG_FILE},Wide char support) ;\
|
||||
$(call check_uclibc_feature,__UCLIBC_HAS_THREADS__,BR2_TOOLCHAIN_HAS_THREADS,$${UCLIBC_CONFIG_FILE},Thread support) ;\
|
||||
$(call check_uclibc_feature,__PTHREADS_DEBUG_SUPPORT__,BR2_TOOLCHAIN_HAS_THREADS_DEBUG,$${UCLIBC_CONFIG_FILE},Thread debugging support) ;\
|
||||
$(call check_uclibc_feature,__UCLIBC_HAS_THREADS_NATIVE__,BR2_TOOLCHAIN_HAS_THREADS_NPTL,$${UCLIBC_CONFIG_FILE},NPTL thread support)
|
||||
|
||||
#
|
||||
# Check that the Buildroot configuration of the ABI matches the
|
||||
# configuration of the external toolchain.
|
||||
#
|
||||
# $1: cross-gcc path
|
||||
# $2: cross-readelf path
|
||||
#
|
||||
check_arm_abi = \
|
||||
__CROSS_CC=$(strip $1) ; \
|
||||
EXT_TOOLCHAIN_TARGET=`LANG=C $${__CROSS_CC} -v 2>&1 | grep ^Target | cut -f2 -d ' '` ; \
|
||||
if ! echo $${EXT_TOOLCHAIN_TARGET} | grep -qE 'eabi(hf)?$$' ; then \
|
||||
echo "External toolchain uses the unsupported OABI" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
if ! echo 'int main(void) {}' | $${__CROSS_CC} -x c -o $(BUILD_DIR)/.br-toolchain-test.tmp - ; then \
|
||||
rm -f $(BUILD_DIR)/.br-toolchain-test.tmp*; \
|
||||
abistr_$(BR2_ARM_EABI)='EABI'; \
|
||||
abistr_$(BR2_ARM_EABIHF)='EABIhf'; \
|
||||
echo "Incorrect ABI setting: $${abistr_y} selected, but toolchain is incompatible"; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
rm -f $(BUILD_DIR)/.br-toolchain-test.tmp*
|
||||
|
||||
#
|
||||
# Check that the external toolchain supports C++
|
||||
#
|
||||
# $1: cross-g++ path
|
||||
#
|
||||
check_cplusplus = \
|
||||
__CROSS_CXX=$(strip $1) ; \
|
||||
__HAS_CXX=`$${__CROSS_CXX} -v > /dev/null 2>&1 && echo y`; \
|
||||
if [ "$${__HAS_CXX}" != "y" -a "$(BR2_INSTALL_LIBSTDCPP)" = y ] ; then \
|
||||
echo "C++ support is selected but is not available in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
elif [ "$${__HAS_CXX}" = "y" -a "$(BR2_INSTALL_LIBSTDCPP)" != y ] ; then \
|
||||
echo "C++ support is not selected but is available in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
fi \
|
||||
|
||||
#
|
||||
#
|
||||
# Check that the external toolchain supports D language
|
||||
#
|
||||
# $1: cross-gdc path
|
||||
#
|
||||
check_dlang = \
|
||||
__CROSS_GDC=$(strip $1) ; \
|
||||
__o=$(BUILD_DIR)/.br-toolchain-test-dlang.tmp ; \
|
||||
__HAS_DLANG=`printf 'import std.stdio;\nvoid main() { writeln("Hello World!"); }\n' | \
|
||||
$${__CROSS_GDC} -x d -o $${__o} - >/dev/null 2>&1 && echo y`; \
|
||||
rm -f $${__o}* ; \
|
||||
if [ "$${__HAS_DLANG}" != "y" -a "$(BR2_TOOLCHAIN_HAS_DLANG)" = y ] ; then \
|
||||
echo "D language support is selected but is not available in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
elif [ "$${__HAS_DLANG}" = "y" -a "$(BR2_TOOLCHAIN_HAS_DLANG)" != y ] ; then \
|
||||
echo "D language support is not selected but is available in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
fi \
|
||||
|
||||
#
|
||||
#
|
||||
# Check that the external toolchain supports Fortran
|
||||
#
|
||||
# $1: cross-gfortran path
|
||||
#
|
||||
check_fortran = \
|
||||
__CROSS_FC=$(strip $1) ; \
|
||||
__o=$(BUILD_DIR)/.br-toolchain-test-fortran.tmp ; \
|
||||
__HAS_FORTRAN=`printf 'program hello\n\tprint *, "Hello Fortran!\\\n"\nend program hello\n' | \
|
||||
$${__CROSS_FC} -x f95 -ffree-form -o $${__o} - 2>/dev/null && echo y`; \
|
||||
rm -f $${__o}* ; \
|
||||
if [ "$${__HAS_FORTRAN}" != "y" -a "$(BR2_TOOLCHAIN_HAS_FORTRAN)" = y ] ; then \
|
||||
echo "Fortran support is selected but is not available in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
elif [ "$${__HAS_FORTRAN}" = "y" -a "$(BR2_TOOLCHAIN_HAS_FORTRAN)" != y ] ; then \
|
||||
echo "Fortran support is not selected but is available in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
fi \
|
||||
|
||||
#
|
||||
#
|
||||
# Check that the external toolchain supports OpenMP
|
||||
#
|
||||
# $1: cross-gcc path
|
||||
#
|
||||
check_openmp = \
|
||||
__CROSS_CC=$(strip $1) ; \
|
||||
__o=$(BUILD_DIR)/.br-toolchain-test-openmp.tmp ; \
|
||||
__HAS_OPENMP=`printf '\#include <omp.h>\nint main(void) { return omp_get_thread_num(); }' | \
|
||||
$${__CROSS_CC} -fopenmp -x c -o $${__o} - >/dev/null 2>&1 && echo y` ; \
|
||||
rm -f $${__o}* ; \
|
||||
if [ "$${__HAS_OPENMP}" != "y" -a "$(BR2_TOOLCHAIN_HAS_OPENMP)" = y ] ; then \
|
||||
echo "OpenMP support is selected but is not available in external toolchain"; \
|
||||
exit 1 ; \
|
||||
elif [ "$${__HAS_OPENMP}" = "y" -a "$(BR2_TOOLCHAIN_HAS_OPENMP)" != y ] ; then \
|
||||
echo "OpenMP support is not selected but is available in external toolchain"; \
|
||||
exit 1 ; \
|
||||
fi \
|
||||
|
||||
#
|
||||
# Check that the cross-compiler given in the configuration exists
|
||||
#
|
||||
# $1: cross-gcc path
|
||||
#
|
||||
check_cross_compiler_exists = \
|
||||
__CROSS_CC=$(strip $1) ; \
|
||||
$${__CROSS_CC} -v > /dev/null 2>&1 ; \
|
||||
if test $$? -ne 0 ; then \
|
||||
echo "Cannot execute cross-compiler '$${__CROSS_CC}'" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check for toolchains known not to work with Buildroot.
|
||||
# - For the Angstrom toolchains, we check by looking at the vendor part of
|
||||
# the host tuple.
|
||||
# - Exclude distro-class toolchains which are not relocatable.
|
||||
# - Exclude broken toolchains which return "libc.a" with -print-file-name.
|
||||
# - Exclude toolchains used with wrong toolchain cflags or broken toolchains
|
||||
# which return "libc.a" with -print-file-name and toolchain cflags.
|
||||
# - Exclude toolchains which doesn't support --sysroot option.
|
||||
#
|
||||
# $1: cross-gcc path
|
||||
# $1: toolchain cflags
|
||||
#
|
||||
check_unusable_toolchain = \
|
||||
__CROSS_CC=$(strip $1) ; \
|
||||
__TOOLCHAIN_CFLAGS=$(strip $2) ; \
|
||||
vendor=`$${__CROSS_CC} -dumpmachine | cut -f2 -d'-'` ; \
|
||||
if test "$${vendor}" = "angstrom" ; then \
|
||||
echo "Angstrom toolchains are not pure toolchains: they contain" ; \
|
||||
echo "many other libraries than just the C library, which makes" ; \
|
||||
echo "them unsuitable as external toolchains for build systems" ; \
|
||||
echo "such as Buildroot." ; \
|
||||
exit 1 ; \
|
||||
fi; \
|
||||
with_sysroot=`$${__CROSS_CC} -v 2>&1 |sed -r -e '/.* --with-sysroot=([^[:space:]]+)[[:space:]].*/!d; s//\1/'`; \
|
||||
if test "$${with_sysroot}" = "/" ; then \
|
||||
echo "Distribution toolchains are unsuitable for use by Buildroot," ; \
|
||||
echo "as they were configured in a way that makes them non-relocatable,"; \
|
||||
echo "and contain a lot of pre-built libraries that would conflict with"; \
|
||||
echo "the ones Buildroot wants to build."; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
libc_a_path=`$${__CROSS_CC} -print-file-name=libc.a` ; \
|
||||
if test "$${libc_a_path}" = "libc.a" ; then \
|
||||
echo "Unable to detect the toolchain sysroot, Buildroot cannot use this toolchain." ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
libc_a_archsysroot_path=`$${__CROSS_CC} $${__TOOLCHAIN_CFLAGS} -print-file-name=libc.a` ; \
|
||||
if test "$${libc_a_archsysroot_path}" = "libc.a" ; then \
|
||||
echo "Unable to detect the toolchain architecture sysroot." ; \
|
||||
echo "Please check the Target Architecture Variant selected, the toolchains may not support it." ; \
|
||||
echo "Buildroot cannot use this toolchain." ; \
|
||||
exit 1 ; \
|
||||
fi; \
|
||||
sysroot_dir="$(call toolchain_find_sysroot,$${__CROSS_CC})" ; \
|
||||
if test -z "$${sysroot_dir}" ; then \
|
||||
echo "External toolchain doesn't support --sysroot. Cannot use." ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
#
|
||||
# Check if the toolchain has SSP (stack smashing protector) support
|
||||
#
|
||||
# $1: cross-gcc path
|
||||
# $2: gcc ssp option
|
||||
#
|
||||
check_toolchain_ssp = \
|
||||
__CROSS_CC=$(strip $1) ; \
|
||||
__HAS_SSP=`echo 'int main(){}' | $${__CROSS_CC} -Werror -fstack-protector -x c - -o $(BUILD_DIR)/.br-toolchain-test.tmp >/dev/null 2>&1 && echo y` ; \
|
||||
if [ "$(BR2_TOOLCHAIN_HAS_SSP)" != "y" -a "$${__HAS_SSP}" = "y" ] ; then \
|
||||
echo "SSP support available in this toolchain, please enable BR2_TOOLCHAIN_EXTERNAL_HAS_SSP" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
if [ "$(BR2_TOOLCHAIN_HAS_SSP)" = "y" -a "$${__HAS_SSP}" != "y" ] ; then \
|
||||
echo "SSP support not available in this toolchain, please disable BR2_TOOLCHAIN_EXTERNAL_HAS_SSP" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
__SSP_OPTION=$(2); \
|
||||
if [ -n "$${__SSP_OPTION}" ] ; then \
|
||||
if ! echo 'int main(){}' | $${__CROSS_CC} -Werror $${__SSP_OPTION} -x c - -o $(BUILD_DIR)/.br-toolchain-test.tmp >/dev/null 2>&1 ; then \
|
||||
echo "SSP option $${__SSP_OPTION} not available in this toolchain, please select another SSP level" ; \
|
||||
exit 1 ; \
|
||||
fi; \
|
||||
fi; \
|
||||
rm -f $(BUILD_DIR)/.br-toolchain-test.tmp*
|
||||
|
||||
#
|
||||
# Generate gdbinit file for use with Buildroot
|
||||
#
|
||||
gen_gdbinit_file = \
|
||||
mkdir -p $(STAGING_DIR)/usr/share/buildroot/ ; \
|
||||
echo "add-auto-load-safe-path $(STAGING_DIR)" > $(STAGING_DIR)/usr/share/buildroot/gdbinit ; \
|
||||
echo "set sysroot $(STAGING_DIR)" >> $(STAGING_DIR)/usr/share/buildroot/gdbinit
|
||||
|
||||
# Given a path, determine the relative prefix (../) needed to return to the
|
||||
# root level. Note that the last component is treated as a file component; use a
|
||||
# trailing slash to force treating it as a directory. Examples:
|
||||
# relpath_prefix(lib32) = ""
|
||||
# relpath_prefix(lib32/octeon2) = "../"
|
||||
# relpath_prefix(lib32/octeon2/) = "../../"
|
||||
#
|
||||
# $1: input path
|
||||
define relpath_prefix
|
||||
$$( \
|
||||
prefix="" ; \
|
||||
nbslashs=`printf $1 | sed 's%[^/]%%g' | wc -c` ; \
|
||||
for slash in `seq 1 $${nbslashs}` ; do \
|
||||
prefix=$${prefix}"../" ; \
|
||||
done ; \
|
||||
printf "$$prefix" ; \
|
||||
)
|
||||
endef
|
||||
|
||||
# Replace the destination of a symbolic link with a simpler version
|
||||
# For example,
|
||||
# usr/lib/libfoo.so -> ../../lib32/libfoo.so.1
|
||||
# becomes
|
||||
# usr/lib/libfoo.so -> ../../lib/libfoo.so.1
|
||||
# since 'lib32' is a symlink to 'lib'.
|
||||
#
|
||||
# Likewise,
|
||||
# usr/lib/octeon2/libbar.so -> ../../../lib32/octeon2/libbar.so.1
|
||||
# becomes
|
||||
# usr/lib/octeon2/libbar.so -> ../../lib/libbar.so.1
|
||||
# assuming lib32->lib and lib/octeon2->lib.
|
||||
#
|
||||
# $1: symlink
|
||||
# $2: base path
|
||||
define simplify_symlink
|
||||
( \
|
||||
FULL_SRC="$$(readlink -f $$(dirname $1))/$$(basename $1)" ; \
|
||||
FULL_DEST="$$(readlink -f $1)" ; \
|
||||
FULL_BASE="$$(readlink -f $2)" ; \
|
||||
REL_SRC="$${FULL_SRC#$${FULL_BASE}/}" ; \
|
||||
REL_DEST="$${FULL_DEST#$${FULL_BASE}/}" ; \
|
||||
DOTS="$(call relpath_prefix,$${REL_SRC})" ; \
|
||||
ln -sf "$${DOTS}$${REL_DEST}" "$${FULL_SRC}" ; \
|
||||
)
|
||||
endef
|
||||
31
toolchain/toolchain-bare-metal-buildroot/Config.in
Normal file
31
toolchain/toolchain-bare-metal-buildroot/Config.in
Normal file
@@ -0,0 +1,31 @@
|
||||
if BR2_TOOLCHAIN_BARE_METAL_BUILDROOT
|
||||
|
||||
config BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH
|
||||
string "list of architecture tuples"
|
||||
help
|
||||
This option allows to define the list of architecture
|
||||
tuples for which bare-metal toolchains will be created.
|
||||
One toolchain will be built for each of the architecture
|
||||
tuples specified in this option.
|
||||
|
||||
For example, to build both a Microblaze and a RISC-V bare
|
||||
metal toolchain, use the following definition:
|
||||
"microblazeel-buildroot-elf riscv32-buildroot-elf"
|
||||
|
||||
config BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_MULTILIB
|
||||
bool "Enable multilib"
|
||||
help
|
||||
Sometimes the default GCC and newlib libraries for a given
|
||||
architecture are not the desired ABI. Since ABI
|
||||
definitions are different for each architecture, this
|
||||
option will enable multilib configuration, so that all
|
||||
available ABI libraries are built which will guarantee
|
||||
that the desired version will be available for user
|
||||
applications.
|
||||
|
||||
When enabled, this option will apply to all architecture
|
||||
tuples in the list.
|
||||
|
||||
source "package/newlib-bare-metal/Config.in"
|
||||
|
||||
endif # BR2_TOOLCHAIN_BARE_METAL_BUILDROOT
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-bare-metal-buildroot
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TOOLCHAIN_BARE_METAL_BUILDROOT_DEPENDENCIES = newlib-bare-metal
|
||||
TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH_TUPLE = $(call qstrip,$(BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH))
|
||||
TOOLCHAIN_BARE_METAL_BUILDROOT_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
|
||||
$(eval $(virtual-package))
|
||||
119
toolchain/toolchain-buildroot/Config.in
Normal file
119
toolchain/toolchain-buildroot/Config.in
Normal file
@@ -0,0 +1,119 @@
|
||||
# Config entries for internal toolchain backend
|
||||
|
||||
if BR2_TOOLCHAIN_BUILDROOT
|
||||
|
||||
comment "Toolchain Buildroot Options"
|
||||
|
||||
config BR2_TOOLCHAIN_BUILDROOT_VENDOR
|
||||
string "custom toolchain vendor name"
|
||||
default "buildroot"
|
||||
help
|
||||
This option allows to customize the "vendor" part of the
|
||||
toolchain tuple, where the toolchain tuple has the form
|
||||
<arch>-<vendor>-<os>-<libc>. The default value, "buildroot",
|
||||
is fine for most cases, except in very specific situations
|
||||
where gcc might make different decisions based on the vendor
|
||||
part of the tuple. The value "unknown" is not allowed, as the
|
||||
cross-compiling toolchain might then be confused with the
|
||||
native toolchain when the target and host architecture are
|
||||
identical. The value can not be empty either.
|
||||
|
||||
If you're not sure, just leave the default "buildroot" value.
|
||||
|
||||
choice
|
||||
prompt "C library"
|
||||
default BR2_TOOLCHAIN_BUILDROOT_GLIBC
|
||||
|
||||
config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
|
||||
bool "uClibc-ng"
|
||||
depends on BR2_PACKAGE_UCLIBC_SUPPORTS
|
||||
select BR2_TOOLCHAIN_USES_UCLIBC
|
||||
help
|
||||
This option selects uClibc-ng as the C library for the
|
||||
cross-compilation toolchain.
|
||||
|
||||
http://uclibc-ng.org
|
||||
|
||||
config BR2_TOOLCHAIN_BUILDROOT_GLIBC
|
||||
bool "glibc"
|
||||
depends on BR2_PACKAGE_GLIBC_SUPPORTS
|
||||
select BR2_TOOLCHAIN_USES_GLIBC
|
||||
help
|
||||
This option selects glibc as the C library for the
|
||||
cross-compilation toolchain.
|
||||
|
||||
http://www.gnu.org/software/libc/
|
||||
|
||||
comment "glibc needs a toolchain w/ kernel headers >= 3.2"
|
||||
depends on BR2_PACKAGE_GLIBC_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
|
||||
|
||||
comment "glibc on LoongArch64 needs a toolchain w/ headers >= 5.19"
|
||||
depends on BR2_loongarch64
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
|
||||
|
||||
# glibc >= 2.26 require kernel headers >= 3.10 on powerpc64le.
|
||||
comment "glibc on powerpc64le needs a toolchain w/ headers >= 3.10"
|
||||
depends on BR2_powerpc64le
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
|
||||
|
||||
# Support for MIPS NAN2008 needs headers >= 4.5
|
||||
comment "glibc on MIPS w/ NAN2008 needs a toolchain w/ headers >= 4.5"
|
||||
depends on BR2_MIPS_NAN_2008
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
|
||||
|
||||
comment "glibc on RISC-V 64-bit needs a toolchain w/ headers >= 5.0"
|
||||
depends on BR2_RISCV_64
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
|
||||
|
||||
comment "glibc on RISC-V 32-bit needs a toolchain w/ headers >= 5.4"
|
||||
depends on BR2_RISCV_32
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
||||
|
||||
comment "glibc on ARC needs a toolchain w/ headers >= 5.1"
|
||||
depends on BR2_arc
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
|
||||
|
||||
comment "glibc on or1k needs a toolchain w/ headers >= 5.4"
|
||||
depends on BR2_or1k
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
||||
|
||||
config BR2_TOOLCHAIN_BUILDROOT_MUSL
|
||||
bool "musl"
|
||||
depends on BR2_PACKAGE_MUSL_SUPPORTS
|
||||
select BR2_TOOLCHAIN_USES_MUSL
|
||||
help
|
||||
This option selects musl as the C library for the
|
||||
cross-compilation toolchain.
|
||||
|
||||
https://www.musl-libc.org/
|
||||
|
||||
config BR2_TOOLCHAIN_BUILDROOT_NONE
|
||||
bool "none"
|
||||
depends on !BR2_PACKAGE_UCLIBC_SUPPORTS && \
|
||||
!BR2_PACKAGE_GLIBC_SUPPORTS && \
|
||||
!BR2_PACKAGE_MUSL_SUPPORTS
|
||||
help
|
||||
This option is visible if no C library is available for the
|
||||
currently selected configuration. If you select this option,
|
||||
the build will refuse to start as Buildroot needs a C
|
||||
library to build a toolchain. Change your configuration
|
||||
settings to make sure one of the C libraries is selected.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TOOLCHAIN_BUILDROOT_LIBC
|
||||
string
|
||||
default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
|
||||
default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
|
||||
default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
|
||||
|
||||
source "package/linux-headers/Config.in.host"
|
||||
source "package/linux-headers/Config.in"
|
||||
source "package/musl/Config.in"
|
||||
source "package/uclibc/Config.in"
|
||||
source "package/glibc/Config.in"
|
||||
source "package/binutils/Config.in.host"
|
||||
source "package/gcc/Config.in.host"
|
||||
source "package/gcc/Config.in"
|
||||
endif
|
||||
20
toolchain/toolchain-buildroot/toolchain-buildroot.mk
Normal file
20
toolchain/toolchain-buildroot/toolchain-buildroot.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-buildroot
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BR_LIBC = $(call qstrip,$(BR2_TOOLCHAIN_BUILDROOT_LIBC))
|
||||
|
||||
# Triggering the build of the gcc-final will automatically do the
|
||||
# build of binutils, uClibc, kernel headers and all the intermediate
|
||||
# gcc steps.
|
||||
|
||||
TOOLCHAIN_BUILDROOT_DEPENDENCIES = gcc-final
|
||||
|
||||
TOOLCHAIN_BUILDROOT_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
|
||||
# Not really a virtual package, but we use the virtual package infra here so
|
||||
# both the build log and build directory look nicer (toolchain-buildroot-virtual
|
||||
# instead of toolchain-buildroot-undefined)
|
||||
$(eval $(virtual-package))
|
||||
122
toolchain/toolchain-external/Config.in
Normal file
122
toolchain/toolchain-external/Config.in
Normal file
@@ -0,0 +1,122 @@
|
||||
if BR2_TOOLCHAIN_EXTERNAL
|
||||
|
||||
comment "Toolchain External Options"
|
||||
|
||||
choice
|
||||
prompt "Toolchain"
|
||||
|
||||
# Kept toolchains sorted by architecture in order to use some toolchain
|
||||
# as default choice
|
||||
|
||||
# Aarch64 (use ARM toolchain by default)
|
||||
source "toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in"
|
||||
|
||||
# Aarch64 big-endian
|
||||
source "toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in"
|
||||
|
||||
# ARM (use ARM toolchain by default)
|
||||
source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in"
|
||||
|
||||
# Bootlin toolchains, available for virtually all architectures
|
||||
source "toolchain/toolchain-external/toolchain-external-bootlin/Config.in"
|
||||
|
||||
# Kept last, so it remains the non-default choice, unless there isn't
|
||||
# any available toolchain profile for the currently selected
|
||||
# architecture, but before toolchains from br2-external trees.
|
||||
source "toolchain/toolchain-external/toolchain-external-custom/Config.in"
|
||||
|
||||
# Toolchains from br2-external trees, if any
|
||||
source "$BR2_BASE_DIR/.br2-external.in.toolchains"
|
||||
|
||||
endchoice
|
||||
|
||||
choice
|
||||
prompt "Toolchain origin"
|
||||
# Keep compatibility with old defconfig files that are using
|
||||
# custom toolchains, and which are therefore assuming that
|
||||
# "preinstalled" in the default choice.
|
||||
default BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
|
||||
bool "Toolchain to be downloaded and installed"
|
||||
help
|
||||
Select this option if you want Buildroot to download and
|
||||
install the toolchain. If you have selected a custom
|
||||
toolchain, specify the URL in BR2_TOOLCHAIN_EXTERNAL_URL.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
|
||||
bool "Pre-installed toolchain"
|
||||
help
|
||||
Select this option if you want to use a pre-installed
|
||||
toolchain. Specify the path to this toolchain in
|
||||
BR2_TOOLCHAIN_EXTERNAL_PATH.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_PATH
|
||||
string "Toolchain path"
|
||||
default ""
|
||||
depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
|
||||
help
|
||||
Path to where the external toolchain is installed. The
|
||||
compiler itself is expected to be in the "bin" subdirectory
|
||||
of this path.
|
||||
|
||||
If empty, the compiler will be searched in $PATH.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
bool
|
||||
select BR2_TOOLCHAIN_USES_GLIBC
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
|
||||
bool
|
||||
select BR2_TOOLCHAIN_USES_UCLIBC
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_MUSL
|
||||
bool
|
||||
select BR2_TOOLCHAIN_USES_MUSL
|
||||
# Compatibility headers: cdefs.h, queue.h
|
||||
select BR2_PACKAGE_MUSL_COMPAT_HEADERS
|
||||
|
||||
# Make sure the virtual-package infra checks the provider
|
||||
config BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL
|
||||
bool
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
|
||||
string
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
||||
string
|
||||
|
||||
# Kept toolchains sorted as in the choice above
|
||||
# The toolchain Config.in.options must define
|
||||
# BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
||||
|
||||
# Aarch64
|
||||
source "toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in.options"
|
||||
|
||||
# Aarch64 big-endian
|
||||
source "toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in.options"
|
||||
|
||||
# ARM
|
||||
source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options"
|
||||
|
||||
# Bootlin toolchains
|
||||
source "toolchain/toolchain-external/toolchain-external-bootlin/Config.in.options"
|
||||
|
||||
# Custom toolchains
|
||||
source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options"
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HAS_NO_GDBSERVER
|
||||
bool
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
|
||||
bool "Copy gdb server to the Target"
|
||||
depends on BR2_TOOLCHAIN_EXTERNAL
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_HAS_NO_GDBSERVER
|
||||
help
|
||||
Copy the gdbserver provided by the external toolchain to the
|
||||
target.
|
||||
|
||||
endif # BR2_TOOLCHAIN_EXTERNAL
|
||||
641
toolchain/toolchain-external/pkg-toolchain-external.mk
Normal file
641
toolchain/toolchain-external/pkg-toolchain-external.mk
Normal file
@@ -0,0 +1,641 @@
|
||||
################################################################################
|
||||
# External toolchain package infrastructure
|
||||
#
|
||||
# This package infrastructure implements the support for external
|
||||
# toolchains, i.e toolchains that are available pre-built, ready to
|
||||
# use. Such toolchain may either be readily available on the Web
|
||||
# (Linaro, Sourcery CodeBench, from processor vendors) or may be built
|
||||
# with tools like Crosstool-NG or Buildroot itself. So far, we have
|
||||
# tested this with:
|
||||
#
|
||||
# * Toolchains generated by Crosstool-NG
|
||||
# * Toolchains generated by Buildroot
|
||||
# * Toolchains provided by Linaro for the ARM and AArch64
|
||||
# architectures
|
||||
# * Sourcery CodeBench toolchains (from Mentor Graphics) for the ARM,
|
||||
# MIPS, PowerPC, and x86_64 architectures. For the MIPS
|
||||
# toolchain, the -muclibc variant isn't supported yet, only the
|
||||
# default glibc-based variant is.
|
||||
# * Synopsys DesignWare toolchains for ARC cores
|
||||
#
|
||||
# The basic principle is the following
|
||||
#
|
||||
# 1. If the toolchain is not pre-installed, download and extract it
|
||||
# in $(TOOLCHAIN_EXTERNAL_INSTALL_DIR). Otherwise,
|
||||
# $(TOOLCHAIN_EXTERNAL_INSTALL_DIR) points to were the toolchain has
|
||||
# already been installed by the user.
|
||||
#
|
||||
# 2. For all external toolchains, perform some checks on the
|
||||
# conformity between the toolchain configuration described in the
|
||||
# Buildroot menuconfig system, and the real configuration of the
|
||||
# external toolchain. This is for example important to make sure that
|
||||
# the Buildroot configuration system knows whether the toolchain
|
||||
# supports RPC, IPv6, locales, large files, etc. Unfortunately, these
|
||||
# things cannot be detected automatically, since the value of these
|
||||
# options (such as BR2_TOOLCHAIN_HAS_NATIVE_RPC) are needed at
|
||||
# configuration time because these options are used as dependencies
|
||||
# for other options. And at configuration time, we are not able to
|
||||
# retrieve the external toolchain configuration.
|
||||
#
|
||||
# 3. Copy the libraries needed at runtime to the target directory,
|
||||
# $(TARGET_DIR). Obviously, things such as the C library, the dynamic
|
||||
# loader and a few other utility libraries are needed if dynamic
|
||||
# applications are to be executed on the target system.
|
||||
#
|
||||
# 4. Copy the libraries and headers to the staging directory. This
|
||||
# will allow all further calls to gcc to be made using --sysroot
|
||||
# $(STAGING_DIR), which greatly simplifies the compilation of the
|
||||
# packages when using external toolchains. So in the end, only the
|
||||
# cross-compiler binaries remains external, all libraries and headers
|
||||
# are imported into the Buildroot tree.
|
||||
#
|
||||
# 5. Build a toolchain wrapper which executes the external toolchain
|
||||
# with a number of arguments (sysroot/march/mtune/..) hardcoded,
|
||||
# so we're sure the correct configuration is always used and the
|
||||
# toolchain behaves similar to an internal toolchain.
|
||||
# This toolchain wrapper and symlinks are installed into
|
||||
# $(HOST_DIR)/bin like for the internal toolchains, and the rest
|
||||
# of Buildroot is handled identical for the 2 toolchain types.
|
||||
################################################################################
|
||||
|
||||
#
|
||||
# Definitions of where the toolchain can be found
|
||||
#
|
||||
|
||||
TOOLCHAIN_EXTERNAL_PREFIX = $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
|
||||
TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR = $(HOST_DIR)/opt/ext-toolchain
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),y)
|
||||
TOOLCHAIN_EXTERNAL_INSTALL_DIR = $(TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR)
|
||||
else
|
||||
TOOLCHAIN_EXTERNAL_INSTALL_DIR = $(abspath $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH)))
|
||||
endif
|
||||
|
||||
ifeq ($(TOOLCHAIN_EXTERNAL_INSTALL_DIR),)
|
||||
ifneq ($(TOOLCHAIN_EXTERNAL_PREFIX),)
|
||||
# if no path set, figure it out from path
|
||||
TOOLCHAIN_EXTERNAL_BIN := $(dir $(shell which $(TOOLCHAIN_EXTERNAL_PREFIX)-gcc))
|
||||
endif
|
||||
else
|
||||
TOOLCHAIN_EXTERNAL_REL_BIN_PATH = $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH))
|
||||
ifeq ($(TOOLCHAIN_EXTERNAL_REL_BIN_PATH),)
|
||||
TOOLCHAIN_EXTERNAL_REL_BIN_PATH = bin
|
||||
endif
|
||||
TOOLCHAIN_EXTERNAL_BIN = $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)/$(TOOLCHAIN_EXTERNAL_REL_BIN_PATH)
|
||||
endif
|
||||
|
||||
# If this is a buildroot toolchain, it already has a wrapper which we want to
|
||||
# bypass. Since this is only evaluated after it has been extracted, we can use
|
||||
# $(wildcard ...) here.
|
||||
TOOLCHAIN_EXTERNAL_SUFFIX = \
|
||||
$(if $(wildcard $(TOOLCHAIN_EXTERNAL_BIN)/*.br_real),.br_real)
|
||||
|
||||
TOOLCHAIN_EXTERNAL_CROSS = $(TOOLCHAIN_EXTERNAL_BIN)/$(TOOLCHAIN_EXTERNAL_PREFIX)-
|
||||
TOOLCHAIN_EXTERNAL_CC = $(TOOLCHAIN_EXTERNAL_CROSS)gcc$(TOOLCHAIN_EXTERNAL_SUFFIX)
|
||||
TOOLCHAIN_EXTERNAL_CXX = $(TOOLCHAIN_EXTERNAL_CROSS)g++$(TOOLCHAIN_EXTERNAL_SUFFIX)
|
||||
TOOLCHAIN_EXTERNAL_GDC = $(TOOLCHAIN_EXTERNAL_CROSS)gdc$(TOOLCHAIN_EXTERNAL_SUFFIX)
|
||||
TOOLCHAIN_EXTERNAL_FC = $(TOOLCHAIN_EXTERNAL_CROSS)gfortran$(TOOLCHAIN_EXTERNAL_SUFFIX)
|
||||
TOOLCHAIN_EXTERNAL_READELF = $(TOOLCHAIN_EXTERNAL_CROSS)readelf
|
||||
|
||||
# Normal handling of downloaded toolchain tarball extraction.
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),y)
|
||||
# As a regular package, the toolchain gets extracted in $(@D), but
|
||||
# since it's actually a fairly special package, we need it to be moved
|
||||
# into TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR.
|
||||
define TOOLCHAIN_EXTERNAL_MOVE
|
||||
rm -rf $(TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR)
|
||||
mkdir -p $(TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR)
|
||||
mv $(@D)/* $(TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR)/
|
||||
endef
|
||||
endif
|
||||
|
||||
#
|
||||
# Definitions of the list of libraries that should be copied to the target.
|
||||
#
|
||||
|
||||
TOOLCHAIN_EXTERNAL_LIBS += ld*.so.* libgcc_s.so.* libatomic.so.*
|
||||
|
||||
ifneq ($(BR2_SSP_NONE),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libssp.so.*
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GLIBC)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libc.so.* libdl.so.* libm.so.* libnsl.so.* libresolv.so.* librt.so.* libutil.so.*
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libpthread.so.*
|
||||
ifneq ($(BR2_PACKAGE_GDB)$(BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY),)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libthread_db.so.*
|
||||
endif # gdbserver
|
||||
endif # ! no threads
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y)
|
||||
# uClibc, though mono-lib, still has a separate libcrypt as a stub
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libcrypt.so.*
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GLIBC),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libnss_files.so.* libnss_dns.so.* libmvec.so.* libanl.so.*
|
||||
# Note: explicitly do copy libcrypt.so.1: it is not the same SONAME as the
|
||||
# one from libxcrypt, so no conflict, but some prebuilt binaries may have
|
||||
# it in their DT_NEEDED. However, do remove the headers, static lib, and
|
||||
# symlink to avoid conflict with libxcrypt (the prebuilt binaries do not
|
||||
# need those either).
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libcrypt.so.1
|
||||
define TOOLCHAIN_EXTERNAL_GLIBC_NO_LIBCRYPT
|
||||
rm -f $(STAGING_DIR)/usr/include/crypt.h \
|
||||
$(STAGING_DIR)/usr/lib/libcrypt.so \
|
||||
$(STAGING_DIR)/usr/lib/libcrypt.a
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_MUSL),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libc.so
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libstdc++.so.*
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libgfortran.so.*
|
||||
# fortran needs quadmath on x86 and x86_64
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBQUADMATH),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libquadmath.so*
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_OPENMP),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libgomp.so.*
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_DLANG),y)
|
||||
TOOLCHAIN_EXTERNAL_LIBS += libgdruntime.so* libgphobos.so*
|
||||
endif
|
||||
|
||||
TOOLCHAIN_EXTERNAL_LIBS += $(addsuffix .so*,$(call qstrip,$(BR2_TOOLCHAIN_EXTRA_LIBS)))
|
||||
|
||||
|
||||
#
|
||||
# Definition of the CFLAGS to use with the external toolchain, as well as the
|
||||
# common toolchain wrapper build arguments
|
||||
#
|
||||
|
||||
# march/mtune/floating point mode needs to be passed to the external toolchain
|
||||
# to select the right multilib variant
|
||||
ifeq ($(BR2_x86_64),y)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -m64
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_64
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_ARCH),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -march=$(GCC_TARGET_ARCH)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_ARCH='"$(GCC_TARGET_ARCH)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_CPU),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -mcpu=$(GCC_TARGET_CPU)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_CPU='"$(GCC_TARGET_CPU)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_ABI),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -mabi=$(GCC_TARGET_ABI)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_ABI='"$(GCC_TARGET_ABI)"'
|
||||
endif
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_MNAN_OPTION),y)
|
||||
ifneq ($(GCC_TARGET_NAN),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -mnan=$(GCC_TARGET_NAN)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_NAN='"$(GCC_TARGET_NAN)"'
|
||||
endif
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_FP32_MODE),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -mfp$(GCC_TARGET_FP32_MODE)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_FP32_MODE='"$(GCC_TARGET_FP32_MODE)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_FPU),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -mfpu=$(GCC_TARGET_FPU)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_FPU='"$(GCC_TARGET_FPU)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_FLOAT_ABI),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -mfloat-abi=$(GCC_TARGET_FLOAT_ABI)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_FLOAT_ABI='"$(GCC_TARGET_FLOAT_ABI)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_SIMD),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -msimd=$(GCC_TARGET_SIMD)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_SIMD='"$(GCC_TARGET_SIMD)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_MODE),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -m$(GCC_TARGET_MODE)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_MODE='"$(GCC_TARGET_MODE)"'
|
||||
endif
|
||||
ifeq ($(BR2_BINFMT_FLAT),y)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -Wl,-elf2flt
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_BINFMT_FLAT
|
||||
endif
|
||||
ifeq ($(BR2_mipsel)$(BR2_mips64el),y)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_MIPS_TARGET_LITTLE_ENDIAN
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -EL
|
||||
endif
|
||||
ifeq ($(BR2_mips)$(BR2_mips64),y)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_MIPS_TARGET_BIG_ENDIAN
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -EB
|
||||
endif
|
||||
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += $(call qstrip,$(BR2_TARGET_OPTIMIZATION))
|
||||
|
||||
ifeq ($(BR2_SOFT_FLOAT),y)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -msoft-float
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_SOFTFLOAT=1
|
||||
endif
|
||||
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += \
|
||||
-DBR_CROSS_PATH_SUFFIX='"$(TOOLCHAIN_EXTERNAL_SUFFIX)"'
|
||||
|
||||
ifeq ($(filter $(HOST_DIR)/%,$(TOOLCHAIN_EXTERNAL_BIN)),)
|
||||
# TOOLCHAIN_EXTERNAL_BIN points outside HOST_DIR => absolute path
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += \
|
||||
-DBR_CROSS_PATH_ABS='"$(TOOLCHAIN_EXTERNAL_BIN)"'
|
||||
else
|
||||
# TOOLCHAIN_EXTERNAL_BIN points inside HOST_DIR => relative path
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += \
|
||||
-DBR_CROSS_PATH_REL='"$(TOOLCHAIN_EXTERNAL_BIN:$(HOST_DIR)/%=%)"'
|
||||
endif
|
||||
|
||||
|
||||
#
|
||||
# The following functions creates the symbolic links needed to get the
|
||||
# cross-compilation tools visible in $(HOST_DIR)/bin. Some of
|
||||
# links are done directly to the corresponding tool in the external
|
||||
# toolchain installation directory, while some other links are done to
|
||||
# the toolchain wrapper (preprocessor, C, C++ and Fortran compiler)
|
||||
#
|
||||
# We skip gdb symlink when we are building our own gdb to prevent two
|
||||
# gdb's in $(HOST_DIR)/bin.
|
||||
#
|
||||
# The LTO support in gcc creates wrappers for ar, ranlib and nm which load
|
||||
# the lto plugin. These wrappers are called *-gcc-ar, *-gcc-ranlib, and
|
||||
# *-gcc-nm and should be used instead of the real programs when -flto is
|
||||
# used. However, we should not add the toolchain wrapper for them, and they
|
||||
# match the *cc-* pattern. Therefore, an additional case is added for *-ar,
|
||||
# *-ranlib and *-nm.
|
||||
define TOOLCHAIN_EXTERNAL_INSTALL_WRAPPER
|
||||
$(Q)cd $(HOST_DIR)/bin; \
|
||||
for i in $(TOOLCHAIN_EXTERNAL_CROSS)*; do \
|
||||
base=$${i##*/}; \
|
||||
case "$$base" in \
|
||||
*-ar|*-ranlib|*-nm) \
|
||||
ln -sf $$(echo $$i | sed 's%^$(HOST_DIR)%..%') .; \
|
||||
;; \
|
||||
*cc|*cc-*|*++|*++-*|*cpp|*-gfortran|*-gdc) \
|
||||
ln -sf toolchain-wrapper $$base; \
|
||||
;; \
|
||||
*gdb|*gdbtui) \
|
||||
if test "$(BR2_PACKAGE_HOST_GDB)" != "y"; then \
|
||||
ln -sf $$(echo $$i | sed 's%^$(HOST_DIR)%..%') .; \
|
||||
fi \
|
||||
;; \
|
||||
*) \
|
||||
ln -sf $$(echo $$i | sed 's%^$(HOST_DIR)%..%') .; \
|
||||
;; \
|
||||
esac; \
|
||||
done
|
||||
endef
|
||||
|
||||
|
||||
# Various utility functions used by the external toolchain package
|
||||
# infrastructure. Those functions are mainly responsible for:
|
||||
#
|
||||
# - installation the toolchain libraries to $(TARGET_DIR)
|
||||
# - copying the toolchain sysroot to $(STAGING_DIR)
|
||||
# - installing a gdbinit file
|
||||
#
|
||||
# Details about sysroot directory selection.
|
||||
#
|
||||
# To find the sysroot directory, we use the trick of looking for the
|
||||
# 'libc.a' file with the -print-file-name gcc option, and then
|
||||
# mangling the path to find the base directory of the sysroot.
|
||||
#
|
||||
# Note that we do not use the -print-sysroot option, because it is
|
||||
# only available since gcc 4.4.x, and we only recently dropped support
|
||||
# for 4.2.x and 4.3.x.
|
||||
#
|
||||
# When doing this, we don't pass any option to gcc that could select a
|
||||
# multilib variant (such as -march) as we want the "main" sysroot,
|
||||
# which contains all variants of the C library in the case of multilib
|
||||
# toolchains. We use the TARGET_CC_NO_SYSROOT variable, which is the
|
||||
# path of the cross-compiler, without the --sysroot=$(STAGING_DIR),
|
||||
# since what we want to find is the location of the original toolchain
|
||||
# sysroot. This "main" sysroot directory is stored in SYSROOT_DIR.
|
||||
#
|
||||
# Then, multilib toolchains are a little bit more complicated, since
|
||||
# they in fact have multiple sysroots, one for each variant supported
|
||||
# by the toolchain. So we need to find the particular sysroot we're
|
||||
# interested in.
|
||||
#
|
||||
# To do so, we ask the compiler where its sysroot is by passing all
|
||||
# flags (including -march and al.), except the --sysroot flag since we
|
||||
# want to the compiler to tell us where its original sysroot
|
||||
# is. ARCH_SUBDIR will contain the subdirectory, in the main
|
||||
# SYSROOT_DIR, that corresponds to the selected architecture
|
||||
# variant. ARCH_SYSROOT_DIR will contain the full path to this
|
||||
# location.
|
||||
#
|
||||
# One might wonder why we don't just bother with ARCH_SYSROOT_DIR. The
|
||||
# fact is that in multilib toolchains, the header files are often only
|
||||
# present in the main sysroot, and only the libraries are available in
|
||||
# each variant-specific sysroot directory.
|
||||
|
||||
|
||||
# toolchain_find_sysroot returns the sysroot location for the given
|
||||
# compiler + flags. We need to handle cases where libc.a is in:
|
||||
#
|
||||
# - lib/
|
||||
# - usr/lib/
|
||||
# - lib32/
|
||||
# - lib64/
|
||||
# - lib32-fp/ (Cavium toolchain)
|
||||
# - lib64-fp/ (Cavium toolchain)
|
||||
# - usr/lib/<tuple>/ (Linaro toolchain)
|
||||
#
|
||||
# And variations on these.
|
||||
define toolchain_find_sysroot
|
||||
$$(printf $(call toolchain_find_libc_a,$(1)) | sed -r -e 's:/(usr/)?lib(32|64)?([^/]*)?/([^/]*/)?libc\.a:/:')
|
||||
endef
|
||||
|
||||
# Returns the lib subdirectory for the given compiler + flags (i.e
|
||||
# typically lib32 or lib64 for some toolchains)
|
||||
define toolchain_find_libdir
|
||||
$$(printf $(call toolchain_find_libc_a,$(1)) | sed -r -e 's:.*/(usr/)?(lib(32|64)?([^/]*)?(/[^/]*)?)/libc.a:\2:')
|
||||
endef
|
||||
|
||||
# Returns the location of the libc.a file for the given compiler + flags
|
||||
define toolchain_find_libc_a
|
||||
$$(readlink -f $$(LANG=C $(1) -print-file-name=libc.a))
|
||||
endef
|
||||
|
||||
# Integration of the toolchain into Buildroot: find the main sysroot
|
||||
# and the variant-specific sysroot, then copy the needed libraries to
|
||||
# the $(TARGET_DIR) and copy the whole sysroot (libraries and headers)
|
||||
# to $(STAGING_DIR).
|
||||
#
|
||||
# Variables are defined as follows:
|
||||
#
|
||||
# SYSROOT_DIR: the main sysroot directory, deduced from the location of
|
||||
# the libc.a file in the default multilib variant, by
|
||||
# removing the usr/lib[32|64]/libc.a part of the path.
|
||||
# Ex: /x-tools/mips-2011.03/mips-linux-gnu/libc/
|
||||
#
|
||||
# ARCH_SYSROOT_DIR: the sysroot of the selected multilib variant,
|
||||
# deduced from the location of the libc.a file in the
|
||||
# selected multilib variant (taking into account the
|
||||
# CFLAGS), by removing usr/lib[32|64]/libc.a at the end
|
||||
# of the path.
|
||||
# Ex: /x-tools/mips-2011.03/mips-linux-gnu/libc/mips16/soft-float/el/
|
||||
#
|
||||
# ARCH_LIB_DIR: 'lib', 'lib32' or 'lib64' depending on where libraries
|
||||
# are stored. Deduced from the location of the libc.a file
|
||||
# in the selected multilib variant, by looking at
|
||||
# usr/lib??/libc.a.
|
||||
# Ex: lib
|
||||
#
|
||||
# ARCH_SUBDIR: the relative location of the sysroot of the selected
|
||||
# multilib variant compared to the main sysroot.
|
||||
# Ex: mips16/soft-float/el
|
||||
#
|
||||
# SUPPORT_LIB_DIR: some toolchains, such as recent Linaro toolchains,
|
||||
# store GCC support libraries (libstdc++,
|
||||
# libgcc_s, etc.) outside of the sysroot. In
|
||||
# this case, SUPPORT_LIB_DIR is set to a
|
||||
# non-empty value, and points to the directory
|
||||
# where these support libraries are
|
||||
# available. Those libraries will be copied to
|
||||
# our sysroot, and the directory will also be
|
||||
# considered when searching libraries for copy
|
||||
# to the target filesystem.
|
||||
#
|
||||
# Please be very careful to check the major toolchain sources:
|
||||
# Buildroot, Crosstool-NG, CodeSourcery and Linaro
|
||||
# before doing any modification on the below logic.
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),)
|
||||
define TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LIBS
|
||||
$(Q)$(call MESSAGE,"Copying external toolchain libraries to target...")
|
||||
$(Q)for libpattern in $(TOOLCHAIN_EXTERNAL_LIBS); do \
|
||||
$(call copy_toolchain_lib_root,$$libpattern); \
|
||||
done
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY),y)
|
||||
define TOOLCHAIN_EXTERNAL_INSTALL_TARGET_GDBSERVER
|
||||
$(Q)$(call MESSAGE,"Copying gdbserver")
|
||||
$(Q)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))" ; \
|
||||
gdbserver_found=0 ; \
|
||||
for d in $${ARCH_SYSROOT_DIR}/usr \
|
||||
$${ARCH_SYSROOT_DIR}/../debug-root/usr \
|
||||
$${ARCH_SYSROOT_DIR}/usr/$${ARCH_LIB_DIR} \
|
||||
$(TOOLCHAIN_EXTERNAL_INSTALL_DIR); do \
|
||||
if test -f $${d}/bin/gdbserver ; then \
|
||||
install -m 0755 -D $${d}/bin/gdbserver $(TARGET_DIR)/usr/bin/gdbserver ; \
|
||||
gdbserver_found=1 ; \
|
||||
break ; \
|
||||
fi ; \
|
||||
done ; \
|
||||
if [ $${gdbserver_found} -eq 0 ] ; then \
|
||||
echo "Could not find gdbserver in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
endef
|
||||
endif
|
||||
|
||||
define TOOLCHAIN_EXTERNAL_INSTALL_SYSROOT_LIBS
|
||||
$(Q)SYSROOT_DIR="$(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC))" ; \
|
||||
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="" ; \
|
||||
if test `find $${ARCH_SYSROOT_DIR} -name 'libstdc++.a' | wc -l` -eq 0 ; then \
|
||||
LIBSTDCPP_A_LOCATION=$$(LANG=C $(TOOLCHAIN_EXTERNAL_CC) $(TOOLCHAIN_EXTERNAL_CFLAGS) -print-file-name=libstdc++.a) ; \
|
||||
if [ -e "$${LIBSTDCPP_A_LOCATION}" ]; then \
|
||||
SUPPORT_LIB_DIR=`readlink -f $${LIBSTDCPP_A_LOCATION} | sed -r -e 's:libstdc\+\+\.a::'` ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
if [ "$${SYSROOT_DIR}" == "$${ARCH_SYSROOT_DIR}" ] ; then \
|
||||
ARCH_SUBDIR="" ; \
|
||||
elif [ "`dirname $${ARCH_SYSROOT_DIR}`" = "`dirname $${SYSROOT_DIR}`" ] ; then \
|
||||
SYSROOT_DIR_DIRNAME=`dirname $${SYSROOT_DIR}`/ ; \
|
||||
ARCH_SUBDIR=`echo $${ARCH_SYSROOT_DIR} | sed -r -e "s:^$${SYSROOT_DIR_DIRNAME}(.*)/$$:\1:"` ; \
|
||||
else \
|
||||
ARCH_SUBDIR=`echo $${ARCH_SYSROOT_DIR} | sed -r -e "s:^$${SYSROOT_DIR}(.*)/$$:\1:"` ; \
|
||||
fi ; \
|
||||
$(call MESSAGE,"Copying external toolchain sysroot to staging...") ; \
|
||||
$(call copy_toolchain_sysroot,$${SYSROOT_DIR},$${ARCH_SYSROOT_DIR},$${ARCH_SUBDIR},$${ARCH_LIB_DIR},$${SUPPORT_LIB_DIR})
|
||||
endef
|
||||
|
||||
# Create a symlink from (usr/)$(ARCH_LIB_DIR) to lib.
|
||||
# Note: the skeleton package additionally creates lib32->lib or lib64->lib
|
||||
# (as appropriate)
|
||||
#
|
||||
# $1: destination directory (TARGET_DIR / STAGING_DIR)
|
||||
create_lib_symlinks = \
|
||||
$(Q)DESTDIR="$(strip $1)" ; \
|
||||
ARCH_LIB_DIR="$(call toolchain_find_libdir,$(TOOLCHAIN_EXTERNAL_CC) $(TOOLCHAIN_EXTERNAL_CFLAGS))" ; \
|
||||
if [ ! -e "$${DESTDIR}/$${ARCH_LIB_DIR}" -a ! -e "$${DESTDIR}/usr/$${ARCH_LIB_DIR}" ]; then \
|
||||
relpath="$(call relpath_prefix,$${ARCH_LIB_DIR})" ; \
|
||||
ln -snf $${relpath}lib "$${DESTDIR}/$${ARCH_LIB_DIR}" ; \
|
||||
ln -snf $${relpath}lib "$${DESTDIR}/usr/$${ARCH_LIB_DIR}" ; \
|
||||
fi
|
||||
|
||||
define TOOLCHAIN_EXTERNAL_CREATE_STAGING_LIB_SYMLINK
|
||||
$(call create_lib_symlinks,$(STAGING_DIR))
|
||||
endef
|
||||
|
||||
define TOOLCHAIN_EXTERNAL_CREATE_TARGET_LIB_SYMLINK
|
||||
$(call create_lib_symlinks,$(TARGET_DIR))
|
||||
endef
|
||||
|
||||
#
|
||||
# Generate gdbinit file for use with Buildroot
|
||||
#
|
||||
define TOOLCHAIN_EXTERNAL_INSTALL_GDBINIT
|
||||
$(Q)if test -f $(TARGET_CROSS)gdb ; then \
|
||||
$(call MESSAGE,"Installing gdbinit"); \
|
||||
$(gen_gdbinit_file); \
|
||||
fi
|
||||
endef
|
||||
|
||||
# GCC installs a libstdcxx-...so-gdb.py file that gdb will load automatically,
|
||||
# but it contains hardcoded paths referring to the location where the (external)
|
||||
# toolchain was built. Fix up these paths so that the pretty printers can be
|
||||
# loaded automatically.
|
||||
# By default, the pretty printers are installed in
|
||||
# $(datadir)/gcc-$(gcc_version)/python but this could have been overwritten with
|
||||
# the gcc configure option: --with-python-dir. We thus have to search the
|
||||
# correct path first.
|
||||
define TOOLCHAIN_EXTERNAL_FIXUP_PRETTY_PRINTER_LOADER
|
||||
$(Q)loadfiles=$$(find $(STAGING_DIR) -name 'libstdc++.so*-gdb.py' 2>/dev/null); \
|
||||
pythondir=$$(find $(TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR) -path '*/libstdcxx/__init__.py' 2>/dev/null | sed 's%/libstdcxx/__init__.py%%' | head -n1); \
|
||||
if [ -n "$$loadfiles" ] && [ -n "$$pythondir" ]; then \
|
||||
echo "Fixing up hardcoded paths in GDB pretty-printer auto-load file(s) for libstdcxx: $$loadfiles"; \
|
||||
sed -ri \
|
||||
-e 's%^libdir\s*=.*%libdir = "$(STAGING_DIR)/lib"%' \
|
||||
-e "s%^pythondir\s*=.*%pythondir = '$$pythondir'%" \
|
||||
$$loadfiles; \
|
||||
fi
|
||||
endef
|
||||
|
||||
# uClibc-ng dynamic loader is called ld-uClibc.so.1, but gcc is not
|
||||
# patched specifically for uClibc-ng, so it continues to generate
|
||||
# binaries that expect the dynamic loader to be named ld-uClibc.so.0,
|
||||
# like with the original uClibc. Therefore, we create an additional
|
||||
# symbolic link to make uClibc-ng systems work properly.
|
||||
define TOOLCHAIN_EXTERNAL_FIXUP_UCLIBCNG_LDSO
|
||||
$(Q)if test -e $(TARGET_DIR)/lib/ld-uClibc.so.1; then \
|
||||
ln -sf ld-uClibc.so.1 $(TARGET_DIR)/lib/ld-uClibc.so.0 ; \
|
||||
fi
|
||||
$(Q)if test -e $(TARGET_DIR)/lib/ld64-uClibc.so.1; then \
|
||||
ln -sf ld64-uClibc.so.1 $(TARGET_DIR)/lib/ld64-uClibc.so.0 ; \
|
||||
fi
|
||||
endef
|
||||
|
||||
define TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LDD
|
||||
$(Q)if test -f $(STAGING_DIR)/usr/bin/ldd ; then \
|
||||
$(INSTALL) -D $(STAGING_DIR)/usr/bin/ldd $(TARGET_DIR)/usr/bin/ldd ; \
|
||||
$(SED) 's:.*/bin/bash:#!/bin/sh:' $(TARGET_DIR)/usr/bin/ldd ; \
|
||||
fi
|
||||
endef
|
||||
|
||||
################################################################################
|
||||
# inner-toolchain-external-package -- defines the generic installation rules
|
||||
# for external toolchain packages
|
||||
#
|
||||
# argument 1 is the lowercase package name
|
||||
# argument 2 is the uppercase package name, including a HOST_ prefix
|
||||
# for host packages
|
||||
# argument 3 is the uppercase package name, without the HOST_ prefix
|
||||
# for host packages
|
||||
# argument 4 is the type (target or host)
|
||||
################################################################################
|
||||
define inner-toolchain-external-package
|
||||
|
||||
$(2)_INSTALL_STAGING = YES
|
||||
$(2)_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
|
||||
# In fact, we don't need to download the toolchain, since it is already
|
||||
# available on the system, so force the site and source to be empty so
|
||||
# that nothing will be downloaded/extracted.
|
||||
ifeq ($$(BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED),y)
|
||||
$(2)_SITE =
|
||||
$(2)_SOURCE =
|
||||
endif
|
||||
|
||||
ifeq ($$(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),y)
|
||||
$(2)_EXCLUDES = usr/lib/locale/*
|
||||
|
||||
$(2)_POST_EXTRACT_HOOKS += \
|
||||
TOOLCHAIN_EXTERNAL_MOVE
|
||||
endif
|
||||
|
||||
# Checks for an already installed toolchain: check the toolchain
|
||||
# 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 $(2)_CONFIGURE_CMDS
|
||||
$$(Q)$$(call check_cross_compiler_exists,$$(TOOLCHAIN_EXTERNAL_CC))
|
||||
$$(Q)$$(call check_unusable_toolchain,$$(TOOLCHAIN_EXTERNAL_CC),"$$(TOOLCHAIN_EXTERNAL_CFLAGS)")
|
||||
$$(Q)SYSROOT_DIR="$$(call toolchain_find_sysroot,$$(TOOLCHAIN_EXTERNAL_CC))" ; \
|
||||
$$(call check_kernel_headers_version,\
|
||||
$$(BUILD_DIR),\
|
||||
$$(call toolchain_find_sysroot,$$(TOOLCHAIN_EXTERNAL_CC)),\
|
||||
$$(call qstrip,$$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)),\
|
||||
$$(if $$(BR2_TOOLCHAIN_EXTERNAL_CUSTOM),loose,strict)); \
|
||||
$$(call check_gcc_version,$$(TOOLCHAIN_EXTERNAL_CC),\
|
||||
$$(call qstrip,$$(BR2_TOOLCHAIN_GCC_AT_LEAST))); \
|
||||
if test "$$(BR2_arm)" = "y" ; then \
|
||||
$$(call check_arm_abi,\
|
||||
"$$(TOOLCHAIN_EXTERNAL_CC) $$(TOOLCHAIN_EXTERNAL_CFLAGS)") ; \
|
||||
fi ; \
|
||||
$$(call check_cplusplus,$$(TOOLCHAIN_EXTERNAL_CXX)) ; \
|
||||
$$(call check_dlang,$$(TOOLCHAIN_EXTERNAL_GDC)) ; \
|
||||
$$(call check_fortran,$$(TOOLCHAIN_EXTERNAL_FC)) ; \
|
||||
$$(call check_openmp,$$(TOOLCHAIN_EXTERNAL_CC)) ; \
|
||||
if test "$$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)" = "y" ; then \
|
||||
$$(call check_uclibc,$$$${SYSROOT_DIR}) ; \
|
||||
elif test "$$(BR2_TOOLCHAIN_EXTERNAL_MUSL)" = "y" ; then \
|
||||
$$(call check_musl,\
|
||||
"$$(TOOLCHAIN_EXTERNAL_CC) $$(TOOLCHAIN_EXTERNAL_CFLAGS)") ; \
|
||||
else \
|
||||
$$(call check_glibc,$$$${SYSROOT_DIR}) ; \
|
||||
fi
|
||||
$$(Q)$$(call check_toolchain_ssp,$$(TOOLCHAIN_EXTERNAL_CC),$(BR2_SSP_OPTION))
|
||||
endef
|
||||
|
||||
$(2)_TOOLCHAIN_WRAPPER_ARGS += $$(TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS)
|
||||
|
||||
$(2)_BUILD_CMDS = $$(TOOLCHAIN_WRAPPER_BUILD)
|
||||
|
||||
define $(2)_INSTALL_STAGING_CMDS
|
||||
$$(TOOLCHAIN_WRAPPER_INSTALL)
|
||||
$$(TOOLCHAIN_EXTERNAL_CREATE_STAGING_LIB_SYMLINK)
|
||||
$$(TOOLCHAIN_EXTERNAL_INSTALL_SYSROOT_LIBS)
|
||||
$$(TOOLCHAIN_EXTERNAL_GLIBC_NO_LIBCRYPT)
|
||||
$$(TOOLCHAIN_EXTERNAL_INSTALL_WRAPPER)
|
||||
$$(TOOLCHAIN_EXTERNAL_INSTALL_GDBINIT)
|
||||
$$(TOOLCHAIN_EXTERNAL_FIXUP_PRETTY_PRINTER_LOADER)
|
||||
endef
|
||||
|
||||
# Even though we're installing things in both the staging, the host
|
||||
# and the target directory, we do everything within the
|
||||
# install-staging step, arbitrarily.
|
||||
define $(2)_INSTALL_TARGET_CMDS
|
||||
$$(TOOLCHAIN_EXTERNAL_CREATE_TARGET_LIB_SYMLINK)
|
||||
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LIBS)
|
||||
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_GDBSERVER)
|
||||
$$(TOOLCHAIN_EXTERNAL_FIXUP_UCLIBCNG_LDSO)
|
||||
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LDD)
|
||||
endef
|
||||
|
||||
# Call the generic package infrastructure to generate the necessary
|
||||
# make targets
|
||||
$(call inner-generic-package,$(1),$(2),$(3),$(4))
|
||||
|
||||
endef
|
||||
|
||||
toolchain-external-package = $(call inner-toolchain-external-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),target)
|
||||
@@ -0,0 +1,19 @@
|
||||
config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE
|
||||
bool "Arm AArch64 BE 15.2.rel1"
|
||||
depends on BR2_aarch64_be
|
||||
depends on BR2_HOSTARCH = "x86_64"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_16
|
||||
select BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
select BR2_TOOLCHAIN_HAS_SSP
|
||||
select BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_15
|
||||
select BR2_TOOLCHAIN_HAS_FORTRAN
|
||||
select BR2_TOOLCHAIN_HAS_OPENMP
|
||||
help
|
||||
Arm toolchain for the AArch64 Big Endian architecture.
|
||||
|
||||
This is the same toolchain that was previously distributed by
|
||||
Linaro.
|
||||
|
||||
https://developer.arm.com/open-source/gnu-toolchain
|
||||
@@ -0,0 +1,9 @@
|
||||
if BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
||||
default "aarch64_be-none-linux-gnu"
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
|
||||
default "toolchain-external-arm-aarch64-be"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,2 @@
|
||||
# From https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-aarch64_be-none-linux-gnu.tar.xz.sha256asc
|
||||
sha256 f848f5b15d49217fbe8b3d72e1cc44eac06b096e6b66fa892898fa9c710a3c05 arm-gnu-toolchain-15.2.rel1-x86_64-aarch64_be-none-linux-gnu.tar.xz
|
||||
@@ -0,0 +1,12 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-external-arm-aarch64-be
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_VERSION = 15.2.rel1
|
||||
TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_SITE = https://developer.arm.com/-/media/Files/downloads/gnu/$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_VERSION)/binrel
|
||||
|
||||
TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_SOURCE = arm-gnu-toolchain-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_VERSION)-x86_64-aarch64_be-none-linux-gnu.tar.xz
|
||||
|
||||
$(eval $(toolchain-external-package))
|
||||
@@ -0,0 +1,19 @@
|
||||
config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
|
||||
bool "Arm AArch64 15.2.rel1"
|
||||
depends on BR2_aarch64
|
||||
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "aarch64"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_16
|
||||
select BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
select BR2_TOOLCHAIN_HAS_SSP
|
||||
select BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_15
|
||||
select BR2_TOOLCHAIN_HAS_FORTRAN
|
||||
select BR2_TOOLCHAIN_HAS_OPENMP
|
||||
help
|
||||
Arm toolchain for the AArch64 architecture.
|
||||
|
||||
This is the same toolchain that was previously distributed by
|
||||
Linaro.
|
||||
|
||||
https://developer.arm.com/open-source/gnu-toolchain
|
||||
@@ -0,0 +1,9 @@
|
||||
if BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
||||
default "aarch64-none-linux-gnu"
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
|
||||
default "toolchain-external-arm-aarch64"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz.sha256asc
|
||||
sha256 9a685b335bd709d683a8c782253c37e8c36c10e6924e59e39d4769b02132eb43 arm-gnu-toolchain-15.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz
|
||||
# From https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-aarch64-aarch64-none-linux-gnu.tar.xz.sha256asc
|
||||
sha256 97e3f600c00413088bb21109475443f9a1c57b4f75336a6e820acd43b065f875 arm-gnu-toolchain-15.2.rel1-aarch64-aarch64-none-linux-gnu.tar.xz
|
||||
@@ -0,0 +1,12 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-external-arm-aarch64
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 15.2.rel1
|
||||
TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu/$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)/binrel
|
||||
|
||||
TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = arm-gnu-toolchain-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-$(HOSTARCH)-aarch64-none-linux-gnu.tar.xz
|
||||
|
||||
$(eval $(toolchain-external-package))
|
||||
@@ -0,0 +1,30 @@
|
||||
comment "Arm toolchains available for Cortex-A with NEON + EABIhf"
|
||||
depends on BR2_arm
|
||||
depends on !BR2_ARM_CPU_ARMV7A || !BR2_ARM_EABIHF || !BR2_ARM_CPU_HAS_NEON
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_ARM_ARM
|
||||
bool "Arm ARM 15.2.rel1"
|
||||
depends on BR2_arm
|
||||
depends on BR2_ARM_CPU_ARMV7A || BR2_ARM_CPU_ARMV8A
|
||||
depends on BR2_ARM_CPU_HAS_NEON
|
||||
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "aarch64"
|
||||
depends on BR2_ARM_EABIHF
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_16
|
||||
select BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
select BR2_TOOLCHAIN_HAS_SSP
|
||||
select BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_15
|
||||
select BR2_TOOLCHAIN_HAS_FORTRAN
|
||||
select BR2_TOOLCHAIN_HAS_OPENMP
|
||||
help
|
||||
Arm toolchain for the ARM architecture. It uses GCC 14.2,
|
||||
GDB 15, glibc 2.40, Binutils 2.43. It generates code
|
||||
that runs on all Cortex-A profile devices. The code
|
||||
generated uses the hard floating point calling convention,
|
||||
and uses the NEON FPU instructions.
|
||||
|
||||
This is the same toolchain that was previously distributed by
|
||||
Linaro.
|
||||
|
||||
https://developer.arm.com/open-source/gnu-toolchain
|
||||
@@ -0,0 +1,9 @@
|
||||
if BR2_TOOLCHAIN_EXTERNAL_ARM_ARM
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
||||
default "arm-none-linux-gnueabihf"
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
|
||||
default "toolchain-external-arm-arm"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz.sha256asc
|
||||
sha256 3c65d820a6b8f677f8f6fbfc749fe00a4f16dde12341436c9df5b7092a47c0fb arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz
|
||||
# From https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-aarch64-arm-none-linux-gnueabihf.tar.xz.sha256asc
|
||||
sha256 6e5871df39a38b3a4c1374ea06f82fe0fe0c2927ddd2c060401fd60a5d045859 arm-gnu-toolchain-15.2.rel1-aarch64-arm-none-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1,12 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-external-arm-arm
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TOOLCHAIN_EXTERNAL_ARM_ARM_VERSION = 15.2.rel1
|
||||
TOOLCHAIN_EXTERNAL_ARM_ARM_SITE = https://developer.arm.com/-/media/Files/downloads/gnu/$(TOOLCHAIN_EXTERNAL_ARM_ARM_VERSION)/binrel
|
||||
|
||||
TOOLCHAIN_EXTERNAL_ARM_ARM_SOURCE = arm-gnu-toolchain-$(TOOLCHAIN_EXTERNAL_ARM_ARM_VERSION)-$(HOSTARCH)-arm-none-linux-gnueabihf.tar.xz
|
||||
|
||||
$(eval $(toolchain-external-package))
|
||||
@@ -0,0 +1,9 @@
|
||||
config BR2_TOOLCHAIN_EXTERNAL_BOOTLIN
|
||||
bool "Bootlin toolchains"
|
||||
depends on BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARCH_SUPPORTS
|
||||
depends on BR2_HOSTARCH = "x86_64"
|
||||
help
|
||||
Bootlin toolchains are built using Buildroot for a large
|
||||
number of architectures and C libraries configurations.
|
||||
|
||||
https://toolchains.bootlin.com
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,438 @@
|
||||
# This file was auto-generated by support/scripts/gen-bootlin-toolchains
|
||||
# Do not edit
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 54875d12829a792b8d4d1c9fb1f736afc60f514b0d260616f188eafafaac7cb5 aarch64--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--glibc--stable-2025.08-1.sha256
|
||||
sha256 dfb47eee874eef9e8a7fc042eee4e0a183f444b6bcde6a82fef8f009918389c9 aarch64--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 e102fe06809440bbca3b6d0d8837ffdb5122b07386d1d2ac023084d898aafe7b aarch64--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--musl--stable-2025.08-1.sha256
|
||||
sha256 defba831ffa1175236f137069333e21ed46d4d19feb5080a90cf248b6fc2cb08 aarch64--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 61e07fcd9e5e114e417d4c1fccf5cda5c75b1d5a1c005f848a6868ea4a0ba4e1 aarch64--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--uclibc--stable-2025.08-1.sha256
|
||||
sha256 e2f636f61d9eddbb503f7c9b04db1d9000c3c9281d9943afe373a61cbf944e3a aarch64--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64be/tarballs/aarch64be--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 9ad606eae73d7b48a1f7f658a9cd4af48916855f8fa27f7c6d0ded20ee5e9d9a aarch64be--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64be/tarballs/aarch64be--glibc--stable-2025.08-1.sha256
|
||||
sha256 4eca1a03d3d73bd31427d0f231d40a9f00a682a50c6ae5b31f6738a4675f9dd8 aarch64be--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64be/tarballs/aarch64be--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 e9152e550b0382df90ac177f9463d62ea2f7301372d71397db6205c7e7c6565a aarch64be--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64be/tarballs/aarch64be--musl--stable-2025.08-1.sha256
|
||||
sha256 27c3196d69457ff201613eacb4764eb0f6dca8a2b56c4d4d13ee62c2fd3e18c7 aarch64be--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64be/tarballs/aarch64be--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 d575f74461619f072bf394d784fb1e68d07cebb21ebf4ef07a40856152bffd92 aarch64be--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64be/tarballs/aarch64be--uclibc--stable-2025.08-1.sha256
|
||||
sha256 6d95a432130f38ddaffd04e08e2e21e3f58124e695d4c4ead7879a936d8333f9 aarch64be--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/arcle-750d/tarballs/arcle-750d--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 2e38f7bcd0b7f81bfb54357b2fbd327300fb14f5977414f1f3dcb871dae5c75c arcle-750d--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/arcle-750d/tarballs/arcle-750d--uclibc--stable-2025.08-1.sha256
|
||||
sha256 dd0fb263ec10ffd15a4743974af6509a66e705c1da1dc1a72a270702e4567be0 arcle-750d--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/arcle-hs38/tarballs/arcle-hs38--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 9f871ad3a93ce027adb66b4239396fba8da021924877f6dd0fef5ee2e7c7b9a4 arcle-hs38--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/arcle-hs38/tarballs/arcle-hs38--glibc--stable-2025.08-1.sha256
|
||||
sha256 c854f2339336662b02f8f440c348e25fa98eb80eb6c78405863b9ee5baa73a79 arcle-hs38--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/arcle-hs38/tarballs/arcle-hs38--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 99086c8f5d779f1b19c57686778793020c7bb3af527604f132e2bda252915627 arcle-hs38--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/arcle-hs38/tarballs/arcle-hs38--uclibc--stable-2025.08-1.sha256
|
||||
sha256 acf19ed3f1fd6b633cd4ef0e84bb5df8c20890ac4efc7312de4c00221ba7a774 arcle-hs38--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 bea49b0a172d318c9eb08a568e5a94ffac0d5f320aa88625e4c8126bc0dcd1fc armv5-eabi--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--glibc--stable-2025.08-1.sha256
|
||||
sha256 53f3d7c2b0ce32f120043bf4b338b3ea3f3375015ed63f5b382a5f62894baeec armv5-eabi--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 e8cc7d8033291da63a5390b3450c027d2722594f606d465d5303cb35186ef974 armv5-eabi--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--musl--stable-2025.08-1.sha256
|
||||
sha256 8cdb4ad70c6b5a66427fa3315fe3ddde1c19c90232674dec59045e04d2a36cf1 armv5-eabi--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 b0a04c35aa32a5722dc4f3f73288685855b932e501bad9397a9a3da7a5a1f637 armv5-eabi--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--uclibc--stable-2025.08-1.sha256
|
||||
sha256 e5415d32b39e94bf7b990ea4ead3619bf7055e338309d2cce2b6de2dd7307f12 armv5-eabi--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv6-eabihf/tarballs/armv6-eabihf--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 a9c2557e48c010361411c0c42ebacb35543ff0aa3377211be3bd049414267d16 armv6-eabihf--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv6-eabihf/tarballs/armv6-eabihf--glibc--stable-2025.08-1.sha256
|
||||
sha256 062c148a62785ce583f32e2e69bb1e8fc5dbb598bf4baacce0df118de4066de8 armv6-eabihf--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv6-eabihf/tarballs/armv6-eabihf--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 4159a6456e6cf2858fc3356da135d34db489d446cea6edf943a2e6a2e342de11 armv6-eabihf--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv6-eabihf/tarballs/armv6-eabihf--musl--stable-2025.08-1.sha256
|
||||
sha256 1a283f0936953c139d7171187414839c119997ea816de201f97e79ea3cfd6947 armv6-eabihf--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv6-eabihf/tarballs/armv6-eabihf--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 925c12a0c1c3d4e9f86b9c94947546e9c4f786c0b5cedce7e55bdd68e3aedb08 armv6-eabihf--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv6-eabihf/tarballs/armv6-eabihf--uclibc--stable-2025.08-1.sha256
|
||||
sha256 8977f8e657518955d685263d527aa05ea502c5cf937fff926c2e1abbe2150299 armv6-eabihf--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 eed0e672d305ac08d444685b48eafb291c63387ef7916c1615354ebfb3d1ebdc armv7-eabihf--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--glibc--stable-2025.08-1.sha256
|
||||
sha256 97d6fbaf19832002f3d6aa8fd31b2d29c1dc7b0752f4ae8ed35860fd33c1f9b4 armv7-eabihf--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 d3ec56feaeb5ffcb9c953b54acfcf99d32ad16542fe9206574f5cd1d11a74b48 armv7-eabihf--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--musl--stable-2025.08-1.sha256
|
||||
sha256 2f3a34458c3a8b961bd09f89669130fcdc4c1dbc6e31ada720527e4ad3741c11 armv7-eabihf--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 4a2c03247bc9bdedf72bdd4cd4e3f1859fb9b915a92e16fdeedbeb6d6d6b3399 armv7-eabihf--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--stable-2025.08-1.sha256
|
||||
sha256 1368328e9214ec71f0f9cea5229559fdd477e614b1e85c062fb562357b0a00ba armv7-eabihf--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armebv7-eabihf/tarballs/armebv7-eabihf--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 1380971b9c480a7b5ed704e33e6e5d77974ad3a1e4a3b9d525f63e150387f7a4 armebv7-eabihf--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armebv7-eabihf/tarballs/armebv7-eabihf--glibc--stable-2025.08-1.sha256
|
||||
sha256 98150dbf42927fe33a1ce51f48d13fcd83e04ba7c3d8c9ad0fc1837a3fa971ce armebv7-eabihf--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armebv7-eabihf/tarballs/armebv7-eabihf--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 8e724c1a763d23a5ad107ddbb77cc34e534b7aeceecbd6f9e65ee0b133b7ebeb armebv7-eabihf--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armebv7-eabihf/tarballs/armebv7-eabihf--musl--stable-2025.08-1.sha256
|
||||
sha256 6429155d88514c508181483616ff23ec2307af5fa24ff55e340ff9a84acbb37d armebv7-eabihf--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armebv7-eabihf/tarballs/armebv7-eabihf--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 fc9fb31cf07e3bd6d1206765b93250ae44fb09c535ac182619c9d1612d926c1c armebv7-eabihf--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armebv7-eabihf/tarballs/armebv7-eabihf--uclibc--stable-2025.08-1.sha256
|
||||
sha256 e048d4a7022b07cc585c5ef0c78842479bfcddcb521734f3278acb08a9f8dc99 armebv7-eabihf--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7m/tarballs/armv7m--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 13ebf698a4bfcdbb41d8e619cf76fbeb15224fe7c5239436a7e9c558ed7852db armv7m--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/armv7m/tarballs/armv7m--uclibc--stable-2025.08-1.sha256
|
||||
sha256 8024e0e353c85eb9c0a70aa258a0b6a2023e619e4d8cde082578742a80e1278c armv7m--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-68xxx/tarballs/m68k-68xxx--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 7e59552b90bf7ac1d122977d68e8a67f00e56d4aa591f0690d7d7742f611fe19 m68k-68xxx--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-68xxx/tarballs/m68k-68xxx--glibc--stable-2025.08-1.sha256
|
||||
sha256 0ad3bde066917d3d57b05b89fd13529acd401f4bef4a2afdd0c14452d039ca77 m68k-68xxx--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-68xxx/tarballs/m68k-68xxx--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 defaa92f0a236c32384b681c07511e3cdc6dc7350ee570dd79bc64427fa8380c m68k-68xxx--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-68xxx/tarballs/m68k-68xxx--musl--stable-2025.08-1.sha256
|
||||
sha256 356551e95045f9f3ead162d9966ae02c914049c2512e4fbf8ea81d06edd5f2fd m68k-68xxx--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-68xxx/tarballs/m68k-68xxx--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 a6566dd60e1f483d9eda0ffb6aa881e9995ee23f9f04bdb69924462a7903a5a4 m68k-68xxx--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-68xxx/tarballs/m68k-68xxx--uclibc--stable-2025.08-1.sha256
|
||||
sha256 bd065f2539e8ac03fdbe6fbb8b94f02c73337a828e958cc8e6fe27219c0b919e m68k-68xxx--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-coldfire/tarballs/m68k-coldfire--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 7bb582b01d02d01533019e949dfbee163a45b998d9c59d08832002efc46c9642 m68k-coldfire--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/m68k-coldfire/tarballs/m68k-coldfire--uclibc--stable-2025.08-1.sha256
|
||||
sha256 ae1f50f6b274464208ebd291dbd9a6b2fa35682c16ed390eab4d8f6607006a77 m68k-coldfire--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazebe/tarballs/microblazebe--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 0afdbfa599ea51e29242d2e3c2dc4e89f29e8d908ba988cee27eb51084660fda microblazebe--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazebe/tarballs/microblazebe--glibc--stable-2025.08-1.sha256
|
||||
sha256 dd0851e3e95feaebac2e078b8ad49bea9a82007443808d054e09f0a10a43dcc6 microblazebe--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazebe/tarballs/microblazebe--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 f4ea28fd3e6651bf3044d08abe7816046da4898ca5d7611f3102bd6103930473 microblazebe--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazebe/tarballs/microblazebe--musl--stable-2025.08-1.sha256
|
||||
sha256 99c6105e256a5a928595e18496996949201479fe9ea88aadcac8036d8be6d350 microblazebe--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazebe/tarballs/microblazebe--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 15f279cf63289f88ebac16772463e49d0d18d859d3e3bfe2c6ebe07dbc2cb9b7 microblazebe--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazebe/tarballs/microblazebe--uclibc--stable-2025.08-1.sha256
|
||||
sha256 33eb906e9620604690986767be46cd0f516dc2b425a90d97b99f0977ff209557 microblazebe--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazeel/tarballs/microblazeel--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 9ce246743ac66207e76c3649a9880f5a727e46e58d5384283af8b9a369060b2f microblazeel--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazeel/tarballs/microblazeel--glibc--stable-2025.08-1.sha256
|
||||
sha256 d171dcc14e21103636b4e6e9f59986303678d8a02435bde3453c3407fbe61424 microblazeel--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazeel/tarballs/microblazeel--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 515adfc96b617e57d5e0b0a2d552c55e014c3ba7ea0961ec205739015804bdea microblazeel--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazeel/tarballs/microblazeel--musl--stable-2025.08-1.sha256
|
||||
sha256 85654de9dff94aa016510ef1700e90ae25ea4c74a15d9bdde3bb543d2662f09a microblazeel--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazeel/tarballs/microblazeel--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 add7bd4c6eed777af458fe84a5716005a10859528642dd8185b0293157cf10fa microblazeel--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/microblazeel/tarballs/microblazeel--uclibc--stable-2025.08-1.sha256
|
||||
sha256 8ec6f521b5ca9ecb3eb98afd0c7bba7b42ba07329d08331aabe2300d9881a3b5 microblazeel--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32/tarballs/mips32--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 6594fd0af39c24e8c1dafb40b39aa7beb6d1bb51d54d525acf7088022ce9c318 mips32--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32/tarballs/mips32--glibc--stable-2025.08-1.sha256
|
||||
sha256 23d0f36aa7962230ef43338ba14ac2a7fa6eb68e15ef39cb9114ac711b907f70 mips32--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32/tarballs/mips32--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 a0a868d17980f80d1e40f81d4caa88b72f27dbad2b7c2119521a9bcc78969abe mips32--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32/tarballs/mips32--musl--stable-2025.08-1.sha256
|
||||
sha256 35b434d3ae1a46065d9e37de56b71bcf0e72bcda652f96d185e51dbea7ef045c mips32--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32/tarballs/mips32--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 f6b86ced93fdd4de9d97db2a30aa0545822223c7be4a5dc043aa67b05b8dbe84 mips32--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32/tarballs/mips32--uclibc--stable-2025.08-1.sha256
|
||||
sha256 0218bfa5ef4624350e48cc372632fb4bac60db54822a56f5565d4144c180f095 mips32--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 cee17e45c3c40255796b7ea80e0499aead00504ff51d0f8201ab10f18ff5e4eb mips32el--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--glibc--stable-2025.08-1.sha256
|
||||
sha256 1085fe6b13d74205ef6e92d1d40fb3960bf6e4bad50555c723fa07416cb53c1c mips32el--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 94dc82f94e87eb143d0959b3bf9e2bdd1d6d99e51752977e5cf1f249de69e46d mips32el--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--musl--stable-2025.08-1.sha256
|
||||
sha256 12a5e2f50b94b5c619730914db380ce9679798fb3c7460a40d480f77bb50628f mips32el--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 075ba385cee0a40e32dbd658a517373488536150b6e2ebb9042ff6d4450257ff mips32el--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--uclibc--stable-2025.08-1.sha256
|
||||
sha256 3911658253cf2e4b6168f0dca1511b96dae355979cbe4aa457a3bfe8116b9d97 mips32el--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r5el/tarballs/mips32r5el--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 5ed7b512c4b36244bfbaaccfc88b0f8cb81031ad6b709a18005ba8187d79114f mips32r5el--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r5el/tarballs/mips32r5el--glibc--stable-2025.08-1.sha256
|
||||
sha256 47e4a737c7f820c4f490ac7ffb54adf2c853d7a05e450ef1e6da3f44e663b487 mips32r5el--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r5el/tarballs/mips32r5el--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 78c2942feb0bb1ee9f19060871fc320f33856abd1d9717a5c6aa8d9e0355bf20 mips32r5el--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r5el/tarballs/mips32r5el--musl--stable-2025.08-1.sha256
|
||||
sha256 c68ba5c5122c8df26c96348249467d3fdb4b1405a4ef316a365c1e8c82594edc mips32r5el--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r5el/tarballs/mips32r5el--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 14f6b101aba02a4978deddd4a9dc91d84e0145bba0b2c7204e439e036ab1b684 mips32r5el--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r5el/tarballs/mips32r5el--uclibc--stable-2025.08-1.sha256
|
||||
sha256 7ce96fc3e0fe7409de3db1a205d74c0c9cbd30ad1371fb54bcee5f50cb517c72 mips32r5el--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r6el/tarballs/mips32r6el--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 3594f3dbc57ee3901af3c3f262969e633a57991e2b7b6ec7bd4ca6eed2b7c677 mips32r6el--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r6el/tarballs/mips32r6el--glibc--stable-2025.08-1.sha256
|
||||
sha256 a43b136dcfc081a3c5cfe411cf9b47b7c1e8dd98d133e5afca72869e59c4794c mips32r6el--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r6el/tarballs/mips32r6el--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 3a64473a8a58e71bbaa45cb0eba9b7c079f34a2e153af23fee0f90f7bfd65da4 mips32r6el--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r6el/tarballs/mips32r6el--musl--stable-2025.08-1.sha256
|
||||
sha256 402aaf0420e728f45ee8702d05b84519d7f423944c59942cd17f65bb4cff75d2 mips32r6el--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r6el/tarballs/mips32r6el--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 f840342d1775c349476c76cb2375c036c6a2061cc34c4fe7e22b1b1fbc993cf3 mips32r6el--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips32r6el/tarballs/mips32r6el--uclibc--stable-2025.08-1.sha256
|
||||
sha256 1731fc7edec2e39b5040bf09e1d8212c2b9ce9fee337148324134163f265e497 mips32r6el--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/tarballs/mips64-n32--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 fcf828be016eb08f67cdfa27caf6253bb61cb51a1ca1fff88881aa6dd8fa1771 mips64-n32--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/tarballs/mips64-n32--glibc--stable-2025.08-1.sha256
|
||||
sha256 4f6220f1ea1afe900dd0f014dedfaa7b216fb05b002bac0e5bf2377a50d198c6 mips64-n32--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/tarballs/mips64-n32--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 ebee97042671dee23107ea950a8a828219d66f28705376d46e8d71c5c4b8aff6 mips64-n32--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/tarballs/mips64-n32--musl--stable-2025.08-1.sha256
|
||||
sha256 e84dfee1d90952396065d2bcd0f28dac3d315bb59012b6f7568a63f3789b853c mips64-n32--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/tarballs/mips64-n32--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 cc4e36fc1f959fb0529376de5a6a70f25adb822fa0db4f876e070ded82599ca3 mips64-n32--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/tarballs/mips64-n32--uclibc--stable-2025.08-1.sha256
|
||||
sha256 9938c76f4a65aaa79494237597cc751479e66938375abcd8a7bdddd39f04ccd0 mips64-n32--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64el-n32/tarballs/mips64el-n32--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 b2195ffc091a2ebd2027e5c06d2b68e4f294877b5352fc6b84982d9b67723a65 mips64el-n32--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64el-n32/tarballs/mips64el-n32--glibc--stable-2025.08-1.sha256
|
||||
sha256 3c370fb4ea2015ffe77ed69ec6af2b33bdb74be88d4ca544fe0588fed9762c7f mips64el-n32--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64el-n32/tarballs/mips64el-n32--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 cdcf1e6852326aab2f3573a669e92aafd053c3c02256d382183f0cecbad4a3d8 mips64el-n32--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64el-n32/tarballs/mips64el-n32--musl--stable-2025.08-1.sha256
|
||||
sha256 772712d2f0278f53bfde0e954cc7ad01d25ac837f9c40af2f25823b28e23aaef mips64el-n32--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64el-n32/tarballs/mips64el-n32--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 5b62273a90a887dc3e0fdc08a07ab6ec792e32d69709e5e929bb073b5ba378fe mips64el-n32--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64el-n32/tarballs/mips64el-n32--uclibc--stable-2025.08-1.sha256
|
||||
sha256 da101611d048cfaf3f0df98da92da091286630dfcec6a794022713c7024a94e6 mips64el-n32--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64r6el-n32/tarballs/mips64r6el-n32--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 c5d55a8c3c18056faac6316bfc9d8adaf8a8b8f73bcb96477b36a56f79c5a1b6 mips64r6el-n32--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64r6el-n32/tarballs/mips64r6el-n32--glibc--stable-2025.08-1.sha256
|
||||
sha256 f2a449cbed813b357a1c327630d61e4e24aab33e1bccd64985e90a69e13b087a mips64r6el-n32--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64r6el-n32/tarballs/mips64r6el-n32--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 d485e5984da474bc67e72626968db9f719e07c007aa71881aa48943c484e2072 mips64r6el-n32--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64r6el-n32/tarballs/mips64r6el-n32--musl--stable-2025.08-1.sha256
|
||||
sha256 7c76ef9502a9b53fb17f3c6f0604b88de9f2bf5e3dad2d73536041e6473232bd mips64r6el-n32--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64r6el-n32/tarballs/mips64r6el-n32--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 79289935bcfaa4929daf75a86cda8025eb4227aaaa9a81b768cdd0d7c5ba7251 mips64r6el-n32--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/mips64r6el-n32/tarballs/mips64r6el-n32--uclibc--stable-2025.08-1.sha256
|
||||
sha256 9a2a97e1ef4b2e320e053cc9918be5a9d10f460096827ef61c378a2347ccc522 mips64r6el-n32--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/openrisc/tarballs/openrisc--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 87b78b6129470e687414e37dc14f025349574cf2c224047f9c1bc2f0779daaee openrisc--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/openrisc/tarballs/openrisc--glibc--stable-2025.08-1.sha256
|
||||
sha256 03b6e025b372970d4daf6879900b19df6fe23c9feb2c130c6743f36a48cb7d70 openrisc--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/openrisc/tarballs/openrisc--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 00a26576bafeccd7a4bdd7e8da649c7a8b465160c1dbade8a9b2559dc112ec0d openrisc--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/openrisc/tarballs/openrisc--musl--stable-2025.08-1.sha256
|
||||
sha256 fcaa1ed86b5fddfb7c0b2e7ec507a54d4723a0468de466fbbc0331d14d37a3cc openrisc--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/openrisc/tarballs/openrisc--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 e877168c4eb637157e8dd9c4ac14de8d9492dcab8013434d9b62987014c8e534 openrisc--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/openrisc/tarballs/openrisc--uclibc--stable-2025.08-1.sha256
|
||||
sha256 c4554431ebbb615afaf12cdca0c9938ae41d77f45405e572be1ca91a52d19bd4 openrisc--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-440fp/tarballs/powerpc-440fp--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 218af0ca2d46430e73e0773472d575b8e17f605df41887c12983af66438946c4 powerpc-440fp--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-440fp/tarballs/powerpc-440fp--glibc--stable-2025.08-1.sha256
|
||||
sha256 ff9425efff6ea7f9853fd2c0df7cf8f6c86d7a4cbd4f58605f3794e51237acfb powerpc-440fp--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-440fp/tarballs/powerpc-440fp--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 5c9f9a07aa2dbaab33289c81911eda55b7ed6f392a632df68c9d7e31b61af57a powerpc-440fp--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-440fp/tarballs/powerpc-440fp--musl--stable-2025.08-1.sha256
|
||||
sha256 5faa42457f06ded74f524074d73330f8156e53b4eb1e929069dc5df94d9a0868 powerpc-440fp--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-440fp/tarballs/powerpc-440fp--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 d4910ba94e356867bf7ae2e55e394a4419685d33c344a643ae1b8ccee3374457 powerpc-440fp--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-440fp/tarballs/powerpc-440fp--uclibc--stable-2025.08-1.sha256
|
||||
sha256 864d99426acdccaa2787dcecffb800c502c0c5f4a344a6d2e2c609314631fbfe powerpc-440fp--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e300c3/tarballs/powerpc-e300c3--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 e9da6e9ac7864b16f07bac4d2454eca41baac027aac3ff29b36c7cf21fff7373 powerpc-e300c3--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e300c3/tarballs/powerpc-e300c3--glibc--stable-2025.08-1.sha256
|
||||
sha256 581d0441a31bff4f3a0996b824afb3fe35c6c32f543765b28a6b63a5684fc116 powerpc-e300c3--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e300c3/tarballs/powerpc-e300c3--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 9533c785819a5ee3d7075532de3b97cd57cd5290f2977b0de9ea5fa0174d1b02 powerpc-e300c3--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e300c3/tarballs/powerpc-e300c3--musl--stable-2025.08-1.sha256
|
||||
sha256 5f628b374b6857f4b4ceabe5e41b2565b07985a7e444978c87b0f864bb5a47fc powerpc-e300c3--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e300c3/tarballs/powerpc-e300c3--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 6b499b08a54ede805b3952ec2998868f1bbbf16a1ff6a3fe03a4e920bbd1786b powerpc-e300c3--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e300c3/tarballs/powerpc-e300c3--uclibc--stable-2025.08-1.sha256
|
||||
sha256 397a57de82491dab311e0305e6c49ef7623abc8b9257333f4c41b8c854c963e2 powerpc-e300c3--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e500mc/tarballs/powerpc-e500mc--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 2e0e681f684d0e2ef1ecdc187dc9dcbb91f64bcc940bb0e2255c2a3bf9e25383 powerpc-e500mc--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e500mc/tarballs/powerpc-e500mc--glibc--stable-2025.08-1.sha256
|
||||
sha256 0232c110f2e47dcab4834ab375015a1a7a19379b059c352e5a95b5578f74a0a9 powerpc-e500mc--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e500mc/tarballs/powerpc-e500mc--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 3901ee890ac5e3a4064cf4a6611d8bc6ec3124988c770d305830719ddfcb0065 powerpc-e500mc--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e500mc/tarballs/powerpc-e500mc--musl--stable-2025.08-1.sha256
|
||||
sha256 a863d426495f89a7732d7e1e8a9862854a9823c5c95ac79ea0d082f8be357e34 powerpc-e500mc--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e500mc/tarballs/powerpc-e500mc--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 bf657e82026449af48b3b2c2199ac2752824ee621c8546d4619a0da0434f2024 powerpc-e500mc--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc-e500mc/tarballs/powerpc-e500mc--uclibc--stable-2025.08-1.sha256
|
||||
sha256 6a1e0c0a7bcbfde645a8d432711ccf2a223fde3c99a774c3938064d1ab955ef7 powerpc-e500mc--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-e5500/tarballs/powerpc64-e5500--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 2351cf635eed3fd47a5655fdb918807136b90d2f4f4c83e51e73af064546f9a6 powerpc64-e5500--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-e5500/tarballs/powerpc64-e5500--glibc--stable-2025.08-1.sha256
|
||||
sha256 0334d8c2b52043abc4ca5075af22ca9192b4c624ab7d4f31c8a6e1ed48c9f167 powerpc64-e5500--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-e6500/tarballs/powerpc64-e6500--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 8af79b874733206e3b8ed2156c7bedf6359723370e145f8d8d51bf5ecf677bec powerpc64-e6500--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-e6500/tarballs/powerpc64-e6500--glibc--stable-2025.08-1.sha256
|
||||
sha256 7341a030bda89b7784d40a9d6df5725eb927fff39bf7990668bf919a9c68b65d powerpc64-e6500--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-e6500/tarballs/powerpc64-e6500--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 26eaed61de5538f16cb558ac5f64a860e325891dd194687e91b01ac9069309bf powerpc64-e6500--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-e6500/tarballs/powerpc64-e6500--musl--stable-2025.08-1.sha256
|
||||
sha256 2df7bf4878887c8be4daa41521bff14281bd0163f3bf15c0652ddb7f34b1d803 powerpc64-e6500--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-power8/tarballs/powerpc64-power8--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 56051f6fe8059eb5c4fa225767c816cf29c7f1de99d5dd012c671755f7f5baa2 powerpc64-power8--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-power8/tarballs/powerpc64-power8--glibc--stable-2025.08-1.sha256
|
||||
sha256 5d4504754d9a1c6fe0385f4d32f83523a3c69d1e1f9926edd677139fed16e278 powerpc64-power8--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-power8/tarballs/powerpc64-power8--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 c2ee0fe6036f30e00d42758b367d1f8dba3a6fb2fd8548c8d54caccf307d8ddb powerpc64-power8--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64-power8/tarballs/powerpc64-power8--musl--stable-2025.08-1.sha256
|
||||
sha256 37b16e86732696c6d30f4ac41ac6e279567ed1014c05dc44899600a9c8ada8ab powerpc64-power8--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 c37471e3688d1a2232bd9b29bf3ba6fa833b0f683e45174d7eed36b901353392 powerpc64le-power8--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--glibc--stable-2025.08-1.sha256
|
||||
sha256 819c8dee94b1baff33943f3b01d669ea794a825e7b4cbead340ad5de8cff6baa powerpc64le-power8--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 92758192acda8f5ab17448c702af906023fc60cc7d7808cab1e5731aec3c4453 powerpc64le-power8--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--musl--stable-2025.08-1.sha256
|
||||
sha256 c32887d632e86da99a1c4efcc4358aa803b89d0d9651df65fb9d241c8edcd6cc powerpc64le-power8--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv32-ilp32d/tarballs/riscv32-ilp32d--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 85befad773c292e4b356514d924eeb202c1078d3c2c6bb6ca35037f5b9ab79da riscv32-ilp32d--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv32-ilp32d/tarballs/riscv32-ilp32d--glibc--stable-2025.08-1.sha256
|
||||
sha256 d42680e926542595c4c87629d33f5f90aac1e9a964c8955089e0514caa01b78f riscv32-ilp32d--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv32-ilp32d/tarballs/riscv32-ilp32d--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 f8227ec5579f4861f9293b6aeb4c14d5e0321bfe2485e20c15fc9647e4d608df riscv32-ilp32d--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv32-ilp32d/tarballs/riscv32-ilp32d--musl--stable-2025.08-1.sha256
|
||||
sha256 f15e9ed67724b249eb149126eb6ed945648c3cdcd3c1c484b23c1a12df368391 riscv32-ilp32d--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv32-ilp32d/tarballs/riscv32-ilp32d--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 5c7f5dd0f146a575191c954459dd912d4301d4ef22dfb4a99b555bf6a5380399 riscv32-ilp32d--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv32-ilp32d/tarballs/riscv32-ilp32d--uclibc--stable-2025.08-1.sha256
|
||||
sha256 48e97598eb2fdf11e9d79e4aa93fa47a3404ec2e6bbd7e84acad6579cc9fee97 riscv32-ilp32d--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 4040cd45c13ff03e8daac0ef69caf4322ed10e9843914d628b315c5dc27bf9c9 riscv64-lp64d--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--glibc--stable-2025.08-1.sha256
|
||||
sha256 45209041e9ba5054aa9787c40bce0ac1e48b78528b6635b79dfb4253e1491ff0 riscv64-lp64d--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 5100cea9083aa2339113a61a64f857d4c8c68981d0a973e8fa1cd918a06b4854 riscv64-lp64d--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--musl--stable-2025.08-1.sha256
|
||||
sha256 2c5155ce133c9c8dddde8f69b0715aa07e0520d99b1fd0131d915357c6fbce39 riscv64-lp64d--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 3c99d7f2f6c705e8bdc59c3e156f14e65d23fb933c2d968a1cef70a1d4a2817c riscv64-lp64d--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--uclibc--stable-2025.08-1.sha256
|
||||
sha256 04b82356a5956ebb58e03d163e958e9201071c24481102f18ac4e18efe1dc549 riscv64-lp64d--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/s390x-z13/tarballs/s390x-z13--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 dbd0a4a2ce4cbdb9481baad78ed33d08fdd5ef6d660f2fb8aa4da97a0d5419a8 s390x-z13--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/s390x-z13/tarballs/s390x-z13--glibc--stable-2025.08-1.sha256
|
||||
sha256 4e67f2751487493c2d68aab643de22a6e8cf81e6d918125b96b50eb5e02a85d5 s390x-z13--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/s390x-z13/tarballs/s390x-z13--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 c7f9a94ba17985d3c5608c93b22b920f65bf1e46e465d4588dfd20c2f7393905 s390x-z13--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/s390x-z13/tarballs/s390x-z13--musl--stable-2025.08-1.sha256
|
||||
sha256 23f536ff2bf1a9d3b93210465471996bc7c918fbb5702a277d8e1e42ffab8559 s390x-z13--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4/tarballs/sh-sh4--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 173a40ac99693a4b41749468f8f00c26511ffb2515bef0782c6074a9aebabe21 sh-sh4--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4/tarballs/sh-sh4--glibc--stable-2025.08-1.sha256
|
||||
sha256 0bf080d351d4a97a412a7068baf75e036f071de323c5e04a71be6992576f79ce sh-sh4--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4/tarballs/sh-sh4--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 9c23e9504fedc250def212bdffd462bcbf1d0750d3914ade74ab5620e6534d23 sh-sh4--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4/tarballs/sh-sh4--musl--stable-2025.08-1.sha256
|
||||
sha256 cd08c2335b4676c3f51a8dd3b1b43cb02a8148b5c118b9c439f481ddb51bacf6 sh-sh4--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4/tarballs/sh-sh4--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 cf2bdd8c2de851c6be0f830677abf8b8edd315fc5ab366b3450a022027b1b8d5 sh-sh4--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4/tarballs/sh-sh4--uclibc--stable-2025.08-1.sha256
|
||||
sha256 e8c2065017a3cd2355dcbb12773edfa6b8078e963178f047ccdfa493ccef1f6a sh-sh4--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4aeb/tarballs/sh-sh4aeb--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 a06a9b61d07f78510f17def530ee428e1a0db6ab430a0cbc65d2445523995b70 sh-sh4aeb--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4aeb/tarballs/sh-sh4aeb--glibc--stable-2025.08-1.sha256
|
||||
sha256 3816efda0e543ce8fdb22ef830df3bf8de32c8bca42122f830f2f10d2f6000de sh-sh4aeb--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4aeb/tarballs/sh-sh4aeb--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 08f0f9d416214e1ef6abeaebe6f5298809895bf3575f568a76a7abadfd609b22 sh-sh4aeb--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sh-sh4aeb/tarballs/sh-sh4aeb--musl--stable-2025.08-1.sha256
|
||||
sha256 85d562535d9f2e377086296df44b87c11cfa751c1112bdb09921cd2c11055457 sh-sh4aeb--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sparc64/tarballs/sparc64--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 43cf9403feec9299a0d61d6aa0a7360dedc25187b0c5383cfb69cf2ac703be5c sparc64--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sparc64/tarballs/sparc64--glibc--stable-2025.08-1.sha256
|
||||
sha256 39c2a3ec9865bcdcdc4eb77a149283d92124761bcdacda347a12dbc1d4e6eb1d sparc64--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sparcv8/tarballs/sparcv8--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 0bf2103e45611de427294b51beda4ac6a404cda34622f7670534dcbc80f98d37 sparcv8--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/sparcv8/tarballs/sparcv8--uclibc--stable-2025.08-1.sha256
|
||||
sha256 5d099c4ecdac8e030e04e5b5139e635a9a1faa64bb77f452b33ef469f93b6e46 sparcv8--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 dc986211c6a8701868277d52e8f5061ea13d119ce0d9f23b61f1b0373984479b x86-64--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--glibc--stable-2025.08-1.sha256
|
||||
sha256 760acd5c3159448b618e237b61935335baada74fe0cdc0d7611826cb49b41c8c x86-64--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 830644a5f9c921fd8df2d40ab80dd81f03a662e5a7ad3cee20dbe2fde0de272e x86-64--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--musl--stable-2025.08-1.sha256
|
||||
sha256 09fca3aa89540f1b01b5f4210d488cbeb00f522044c53e9989b1dd8a38076912 x86-64--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 8afb195a0aaa5c83d539d28bb4efcd6f5a3442d02e0e48318df7f495d0749140 x86-64--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--uclibc--stable-2025.08-1.sha256
|
||||
sha256 39499bcca6c50e39ed61c2afbf0b4005fc676df72b9b68fff75347439061eb2c x86-64--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v2/tarballs/x86-64-v2--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 9461ecd9f2b2f99d3ac7c52d49d9491b35d732f6c8fc60c8f226e34541ed9e3d x86-64-v2--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v2/tarballs/x86-64-v2--glibc--stable-2025.08-1.sha256
|
||||
sha256 fcbf8a7ce1c1c5dbd8d322a54f0fa8d5e18dec7511df66032d553a0a8639a076 x86-64-v2--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v2/tarballs/x86-64-v2--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 edaef4802e3891f44a466a1c3cfbe84215815996fd606494fbffa9c7fdfe01fc x86-64-v2--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v2/tarballs/x86-64-v2--musl--stable-2025.08-1.sha256
|
||||
sha256 d1ee83f905eaf2c4853d8102f408be0c3bf627531e71ab8fd796d94684077316 x86-64-v2--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v2/tarballs/x86-64-v2--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 dbd93aa8318e1b04aa6678aea8791c781bff06cee98a9f4a300e88ebb170ce40 x86-64-v2--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v2/tarballs/x86-64-v2--uclibc--stable-2025.08-1.sha256
|
||||
sha256 d6422faad1384b3b58177149b257b814528058bba210a3fd2e70ebbc4272bfe4 x86-64-v2--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v3/tarballs/x86-64-v3--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 f055e7c1c5725dd4fbb7cf5d929b3c3d363a4c25c29070fc25041ba56086b2ac x86-64-v3--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v3/tarballs/x86-64-v3--glibc--stable-2025.08-1.sha256
|
||||
sha256 fd63f95fa5eb52ef891da434bd3deada493d78fc11e42144f02d8806d7b47504 x86-64-v3--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v3/tarballs/x86-64-v3--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 3f352161c60f7a0ae1784bf429b849a70862f00d5154758d48f384bfda561234 x86-64-v3--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v3/tarballs/x86-64-v3--musl--stable-2025.08-1.sha256
|
||||
sha256 57324b3e06559a0e03ecb0a64faf7d4996c6f8e60d82f9222c479877ff5717cb x86-64-v3--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v3/tarballs/x86-64-v3--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 99da8fd247b96495e02405879b2bed096deae97e7d426c3ef79144cd66aa52d0 x86-64-v3--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v3/tarballs/x86-64-v3--uclibc--stable-2025.08-1.sha256
|
||||
sha256 08b0b8cff1aea69bda3e88917a3c8deb3e05ec71c55c31079dc7780126f2bfb5 x86-64-v3--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v4/tarballs/x86-64-v4--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 de960c26eda01fd0e68c30f3041ffe1a68deb3a9d9dde57e1a7c17b3954135a0 x86-64-v4--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v4/tarballs/x86-64-v4--glibc--stable-2025.08-1.sha256
|
||||
sha256 8f1a5623cb0a0b7814d7b87495685f5e98338f78062ea749c31648554a58ddc2 x86-64-v4--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v4/tarballs/x86-64-v4--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 35b38a6281f1f22c1fe5a2bdfae94dd999ad32c4e61e12c34d5ca1cd6c2b9436 x86-64-v4--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v4/tarballs/x86-64-v4--musl--stable-2025.08-1.sha256
|
||||
sha256 e259c0a51b4fc3c43c254a2e7446abafe38f01f00cf5d7f8f46183dd768eb223 x86-64-v4--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v4/tarballs/x86-64-v4--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 ffbeb7be63eccc921d51561cfaf105b7939c0a5b71a141baf953d4ae64bfce6c x86-64-v4--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-v4/tarballs/x86-64-v4--uclibc--stable-2025.08-1.sha256
|
||||
sha256 7df276b2409c57175586b132bb058babbd724a06dddf0b3dad548ff82aa7a1f2 x86-64-v4--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 3777ad89e6d60bc8fafb83b6b74284b6c56aee20ea00e51dfa466800e98dcdb9 x86-64-core-i7--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--glibc--stable-2025.08-1.sha256
|
||||
sha256 f40b098d0435485a76307347e36e8f11727d25c8f5ba09a1c048d5e9e1edb2f0 x86-64-core-i7--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 a7d861e2a1575d427d9572a78e7f01ba83cc11e544255c5fac54d4a4421b4d1e x86-64-core-i7--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--musl--stable-2025.08-1.sha256
|
||||
sha256 780df995a9f389541f15abff72672c9b68ea86793c34b1dba16c0271a8e392d8 x86-64-core-i7--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 ac4cc4f555b04a44bb9ff6f8358720d40df50d6b894bceb49ce733ab3283faa4 x86-64-core-i7--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--uclibc--stable-2025.08-1.sha256
|
||||
sha256 46166ced0ec5e8c7a5fc85ac2c732f2b26c465c00a5d4c9967ebb22eb4e0a08e x86-64-core-i7--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-core2/tarballs/x86-core2--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 517a90df28fadcaf95c10f062d7860439c2485fa68cb40a8d56c00835d7b8a39 x86-core2--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-core2/tarballs/x86-core2--glibc--stable-2025.08-1.sha256
|
||||
sha256 69eb5c2dfc9e1dc594feda5e5f61d60d60de830ab4390751b4f2c07b084e939f x86-core2--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-core2/tarballs/x86-core2--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 e70163fa62426347762c3a36e8cf8343086c7e4ca36e2a159b91828e3b096a69 x86-core2--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-core2/tarballs/x86-core2--musl--stable-2025.08-1.sha256
|
||||
sha256 c3225387d2e30e4612066ad15d7303f352a0f55c981b8f8b32fd3bc7102be409 x86-core2--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-core2/tarballs/x86-core2--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 f65287b7c609c5fd92c10f69a1f0a088df9c15fd7aa8c6f2c9ad375f5dbaa5a0 x86-core2--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-core2/tarballs/x86-core2--uclibc--stable-2025.08-1.sha256
|
||||
sha256 25b4d942afbdb4c4f943f93ce87de494f0308f9cfce540e650a02ff70ab0439f x86-core2--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-i686/tarballs/x86-i686--glibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 db558ce3aeb76d0e3f8c177f8ddd9efaeeacacfb02f1ce7491d537697eb1939e x86-i686--glibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-i686/tarballs/x86-i686--glibc--stable-2025.08-1.sha256
|
||||
sha256 f9b365d7fd8f8860dfb1845ff731013550f071ca4a8de0e5074abc995296b26c x86-i686--glibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-i686/tarballs/x86-i686--musl--bleeding-edge-2025.08-1.sha256
|
||||
sha256 5f8a7a097d33c33bab851b8fd43ef352a3184feb2a322584fb80a0a84cf9793f x86-i686--musl--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-i686/tarballs/x86-i686--musl--stable-2025.08-1.sha256
|
||||
sha256 3a340ebc386a057f5ddb24d8f4bbde07d2c013c99cebc02ac38565e2849bfda0 x86-i686--musl--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-i686/tarballs/x86-i686--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 dbc61fc1b20b83fb11e872276eeab42988bc01d07b063297ce7a8dcf6a965381 x86-i686--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/x86-i686/tarballs/x86-i686--uclibc--stable-2025.08-1.sha256
|
||||
sha256 42ae08d2440d73a9d25442b1499c0f5e3a10fd278f79439c849dbc3a0f16eb42 x86-i686--uclibc--stable-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/xtensa-lx60/tarballs/xtensa-lx60--uclibc--bleeding-edge-2025.08-1.sha256
|
||||
sha256 83c13b7ea8ae433da2fe3f3fd7f723bcb692ec168e9e284534ac1999ef553197 xtensa-lx60--uclibc--bleeding-edge-2025.08-1.tar.xz
|
||||
# From https://toolchains.bootlin.com/downloads/releases/toolchains/xtensa-lx60/tarballs/xtensa-lx60--uclibc--stable-2025.08-1.sha256
|
||||
sha256 a77b21ea3ef1b8d14a78103a645f23b5290b6ed1e8a9f95fd5eee669ffe258d2 xtensa-lx60--uclibc--stable-2025.08-1.tar.xz
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
config BR2_TOOLCHAIN_EXTERNAL_CUSTOM
|
||||
bool "Custom toolchain"
|
||||
help
|
||||
Use this option to use a custom toolchain pre-installed on
|
||||
your system.
|
||||
@@ -0,0 +1,667 @@
|
||||
if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
||||
default BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
|
||||
default "toolchain-external-custom"
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_URL
|
||||
string "Toolchain URL"
|
||||
depends on BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
|
||||
help
|
||||
URL of the custom toolchain tarball to download and install.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH
|
||||
string "Toolchain relative binary path"
|
||||
default "bin"
|
||||
depends on BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
|
||||
help
|
||||
Path to where the binaries (e.g. the compiler) can be found,
|
||||
relative to the downloaded toolchain root directory. The
|
||||
default is "bin" and is correct for most toolchains.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX
|
||||
string "Toolchain prefix"
|
||||
default "$(ARCH)-linux"
|
||||
help
|
||||
Component name prefix used by your external toolchain.
|
||||
|
||||
Typically, this is the target tuple, e.g. something that
|
||||
looks like: $(ARCH)-unknown-linux-gnu.
|
||||
|
||||
If unsure, look at the "bin" directory of your toolchain and
|
||||
note the part of component name before the last dash, i.e. if
|
||||
you call the toolchain's gcc as $(ARCH)-unknown-linux-gnu-gcc,
|
||||
the prefix is $(ARCH)-unknown-linux-gnu.
|
||||
|
||||
Note that Buildroot toolchains have shorter aliases that look
|
||||
like $(ARCH)-linux, as symlinks to the full-tuple components,
|
||||
so you can leave this option at default value if you use them
|
||||
as external toolchain.
|
||||
|
||||
choice
|
||||
bool "External toolchain gcc version"
|
||||
help
|
||||
Set to the gcc version that is used by your external
|
||||
toolchain.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_16
|
||||
bool "16.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_17
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_16
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_15
|
||||
bool "15.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_16
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_15
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_14
|
||||
bool "14.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_15
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_14
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_13
|
||||
bool "13.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_14
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_13
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_12
|
||||
bool "12.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_13
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_12
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_11
|
||||
bool "11.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_11
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_10
|
||||
bool "10.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_11
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_10
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_9
|
||||
bool "9.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_10
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_9
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_8
|
||||
bool "8.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_9
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_8
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_7
|
||||
bool "7.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_8
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_6
|
||||
bool "6.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_7
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_6
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_5
|
||||
bool "5.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_6
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_4_9
|
||||
bool "4.9.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_5
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_4_8
|
||||
bool "4.8.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_4_9
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_4_7
|
||||
bool "4.7.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_4_6
|
||||
bool "4.6.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_4_5
|
||||
bool "4.5.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_4_4
|
||||
bool "4.4.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_4_3
|
||||
bool "4.3.x"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_GCC_OLD
|
||||
bool "older"
|
||||
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
|
||||
help
|
||||
Use this option if your GCC version is older than any of the
|
||||
above.
|
||||
|
||||
Note that the Buildroot community doesn't do any testing with
|
||||
such old toolchains. Some packages may fail to build in
|
||||
surprising ways, or the generated root filesystem may not
|
||||
work at all. Use such old toolchains at your own risk.
|
||||
|
||||
endchoice
|
||||
|
||||
comment "GCC older than 4.8 is not tested by Buildroot. Use at your own risk."
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
|
||||
choice
|
||||
bool "External toolchain kernel headers series"
|
||||
default BR2_TOOLCHAIN_EXTERNAL_HEADERS_REALLY_OLD
|
||||
help
|
||||
Set to the kernel headers version that were used to build
|
||||
this external toolchain.
|
||||
|
||||
This is used to hide/show some packages that have strict
|
||||
requirements on the version of kernel headers.
|
||||
|
||||
If unsure what version your toolchain is using, you can look
|
||||
at the value of LINUX_VERSION_CODE in linux/version.h in your
|
||||
toolchain. The Linux version is M.m.p, with:
|
||||
M = ( LINUX_VERSION_CODE >> 16 ) & 0xFF
|
||||
m = ( LINUX_VERSION_CODE >> 8 ) & 0xFF
|
||||
p = ( LINUX_VERSION_CODE >> 0 ) & 0xFF
|
||||
|
||||
If your toolchain uses headers newer than the latest version
|
||||
in the choice, then select the latest version.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_7_1
|
||||
bool "7.1.x or later"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_7_1
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_7_0
|
||||
bool "7.0.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_7_0
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_19
|
||||
bool "6.19.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_19
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_18
|
||||
bool "6.18.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_18
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_17
|
||||
bool "6.17.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_17
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_16
|
||||
bool "6.16.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_16
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_15
|
||||
bool "6.15.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_15
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_14
|
||||
bool "6.14.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_14
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_13
|
||||
bool "6.13.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_13
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_12
|
||||
bool "6.12.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_12
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_11
|
||||
bool "6.11.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_11
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_10
|
||||
bool "6.10.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_10
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_9
|
||||
bool "6.9.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_9
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_8
|
||||
bool "6.8.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_8
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_7
|
||||
bool "6.7.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_7
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_6
|
||||
bool "6.6.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_5
|
||||
bool "6.5.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_5
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_4
|
||||
bool "6.4.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_4
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_3
|
||||
bool "6.3.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_3
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_2
|
||||
bool "6.2.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_2
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_1
|
||||
bool "6.1.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_1
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_0
|
||||
bool "6.0.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_0
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_19
|
||||
bool "5.19.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_18
|
||||
bool "5.18.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_18
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_17
|
||||
bool "5.17.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_17
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_16
|
||||
bool "5.16.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_15
|
||||
bool "5.15.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_14
|
||||
bool "5.14.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_13
|
||||
bool "5.13.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_12
|
||||
bool "5.12.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_11
|
||||
bool "5.11"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_10
|
||||
bool "5.10.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_9
|
||||
bool "5.9.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_8
|
||||
bool "5.8.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_7
|
||||
bool "5.7.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_6
|
||||
bool "5.6.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_5
|
||||
bool "5.5.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_4
|
||||
bool "5.4.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_3
|
||||
bool "5.3.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_2
|
||||
bool "5.2.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_1
|
||||
bool "5.1.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_0
|
||||
bool "5.0.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_20
|
||||
bool "4.20.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_19
|
||||
bool "4.19.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_18
|
||||
bool "4.18.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_17
|
||||
bool "4.17.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_16
|
||||
bool "4.16.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_15
|
||||
bool "4.15.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_14
|
||||
bool "4.14.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_13
|
||||
bool "4.13.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_12
|
||||
bool "4.12.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_11
|
||||
bool "4.11.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10
|
||||
bool "4.10.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9
|
||||
bool "4.9.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_8
|
||||
bool "4.8.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_7
|
||||
bool "4.7.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_6
|
||||
bool "4.6.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_5
|
||||
bool "4.5.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_4
|
||||
bool "4.4.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_3
|
||||
bool "4.3.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_2
|
||||
bool "4.2.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_1
|
||||
bool "4.1.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_0
|
||||
bool "4.0.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_19
|
||||
bool "3.19.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_18
|
||||
bool "3.18.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_17
|
||||
bool "3.17.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_16
|
||||
bool "3.16.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_15
|
||||
bool "3.15.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_14
|
||||
bool "3.14.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_13
|
||||
bool "3.13.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_12
|
||||
bool "3.12.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_11
|
||||
bool "3.11.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10
|
||||
bool "3.10.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_9
|
||||
bool "3.9.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_8
|
||||
bool "3.8.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_7
|
||||
bool "3.7.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_6
|
||||
bool "3.6.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_5
|
||||
bool "3.5.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_4
|
||||
bool "3.4.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_3
|
||||
bool "3.3.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_2
|
||||
bool "3.2.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_1
|
||||
bool "3.1.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_0
|
||||
bool "3.0.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_REALLY_OLD
|
||||
bool "2.6.x"
|
||||
|
||||
endchoice
|
||||
|
||||
comment "Kernel headers older than 3.13 is not tested by Buildroot. Use at your own risk."
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
|
||||
|
||||
choice
|
||||
prompt "External toolchain C library"
|
||||
default BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC
|
||||
bool "uClibc/uClibc-ng"
|
||||
select BR2_TOOLCHAIN_EXTERNAL_UCLIBC
|
||||
help
|
||||
Select this option if your external toolchain uses the
|
||||
uClibc (available from http://www.uclibc.org/)
|
||||
or uClibc-ng (available from http://www.uclibc-ng.org)
|
||||
C library.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC
|
||||
bool "glibc"
|
||||
select BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
help
|
||||
Select this option if your external toolchain uses the GNU C
|
||||
library (available from https://www.gnu.org/software/libc/).
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL
|
||||
bool "musl (experimental)"
|
||||
select BR2_TOOLCHAIN_EXTERNAL_MUSL
|
||||
help
|
||||
Select this option if your external toolchain uses the
|
||||
'musl' C library, available from http://www.musl-libc.org/.
|
||||
|
||||
endchoice
|
||||
|
||||
if BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_WCHAR
|
||||
bool "Toolchain has WCHAR support?"
|
||||
select BR2_USE_WCHAR
|
||||
help
|
||||
Select this option if your external toolchain supports
|
||||
WCHAR. If you don't know, leave the default value, Buildroot
|
||||
will tell you if it's correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_LOCALE
|
||||
bool "Toolchain has locale support?"
|
||||
select BR2_TOOLCHAIN_EXTERNAL_WCHAR
|
||||
select BR2_ENABLE_LOCALE
|
||||
help
|
||||
Select this option if your external toolchain has locale
|
||||
support. If you don't know, leave the default value,
|
||||
Buildroot will tell you if it's correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS
|
||||
bool "Toolchain has threads support?"
|
||||
default y
|
||||
select BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
Select this option if your external toolchain has thread
|
||||
support. If you don't know, leave the default value,
|
||||
Buildroot will tell you if it's correct or not.
|
||||
|
||||
if BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG
|
||||
bool "Toolchain has threads debugging support?"
|
||||
default y
|
||||
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
|
||||
help
|
||||
Select this option if your external toolchain has thread
|
||||
debugging support. If you don't know, leave the default
|
||||
value, Buildroot will tell you if it's correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_NPTL
|
||||
bool "Toolchain has NPTL threads support?"
|
||||
default y
|
||||
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
help
|
||||
Select this option if your external toolchain uses the NPTL
|
||||
(Native Posix Thread Library) implementation of Posix
|
||||
threads. If you don't know, leave the default value,
|
||||
Buildroot will tell you if it's correct or not.
|
||||
|
||||
endif # BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS
|
||||
|
||||
endif # BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HAS_SSP
|
||||
bool "Toolchain has SSP support?"
|
||||
default y if BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
default y if BR2_TOOLCHAIN_EXTERNAL_MUSL
|
||||
select BR2_TOOLCHAIN_HAS_SSP
|
||||
help
|
||||
Select this option if your external toolchain has Stack
|
||||
Smashing Protection support enabled. If you don't know,
|
||||
leave the default value, Buildroot will tell you if it's
|
||||
correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_HAS_SSP_STRONG
|
||||
bool "Toolchain has SSP strong support?"
|
||||
default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 && BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 && BR2_TOOLCHAIN_EXTERNAL_MUSL
|
||||
depends on BR2_TOOLCHAIN_EXTERNAL_HAS_SSP
|
||||
select BR2_TOOLCHAIN_HAS_SSP_STRONG
|
||||
help
|
||||
Select this option if your external toolchain has strong
|
||||
Stack Smashing Protection support enabled. If you don't
|
||||
know, leave the default value, Buildroot will tell you if
|
||||
it's correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_INET_RPC
|
||||
bool "Toolchain has RPC support?"
|
||||
default y if BR2_TOOLCHAIN_EXTERNAL_GLIBC
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_MUSL
|
||||
select BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
||||
help
|
||||
Select this option if your external toolchain supports
|
||||
RPC. If you don't know, leave the default value, Buildroot
|
||||
will tell you if it's correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_CXX
|
||||
bool "Toolchain has C++ support?"
|
||||
select BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
Select this option if your external toolchain has C++
|
||||
support. If you don't know, leave the default value,
|
||||
Buildroot will tell you if it's correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_DLANG
|
||||
bool "Toolchain has D support?"
|
||||
select BR2_TOOLCHAIN_HAS_DLANG
|
||||
help
|
||||
Select this option if your external toolchain has D
|
||||
support.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_FORTRAN
|
||||
bool "Toolchain has Fortran support?"
|
||||
select BR2_TOOLCHAIN_HAS_FORTRAN
|
||||
help
|
||||
Select this option if your external toolchain has Fortran
|
||||
support. If you don't know, leave the default value,
|
||||
Buildroot will tell you if it's correct or not.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_OPENMP
|
||||
bool "Toolchain has OpenMP support?"
|
||||
select BR2_TOOLCHAIN_HAS_OPENMP
|
||||
help
|
||||
Select this option if your external toolchain has OpenMP
|
||||
support. If you don't know, leave the default value,
|
||||
Buildroot will tell you if it's correct or not.
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-external-custom
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TOOLCHAIN_EXTERNAL_CUSTOM_SITE = $(patsubst %/,%,$(dir $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_URL))))
|
||||
TOOLCHAIN_EXTERNAL_CUSTOM_SOURCE = $(notdir $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_URL)))
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CUSTOM),y)
|
||||
# We can't check hashes for custom downloaded toolchains
|
||||
BR_NO_CHECK_HASH_FOR += $(TOOLCHAIN_EXTERNAL_SOURCE)
|
||||
ifeq ($(BR_BUILDING)$(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),yy)
|
||||
ifeq ($(TOOLCHAIN_EXTERNAL_CUSTOM_SOURCE),)
|
||||
$(error No external toolchain url set, check your BR2_TOOLCHAIN_EXTERNAL_URL setting)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
$(eval $(toolchain-external-package))
|
||||
28
toolchain/toolchain-external/toolchain-external.mk
Normal file
28
toolchain/toolchain-external/toolchain-external.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-external
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TOOLCHAIN_EXTERNAL_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
|
||||
# musl does not provide an implementation for sys/queue.h or sys/cdefs.h.
|
||||
# So, add the musl-compat-headers package that will install those files,
|
||||
# into the staging directory:
|
||||
# sys/queue.h: header from NetBSD
|
||||
# sys/cdefs.h: minimalist header bundled in Buildroot
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
TOOLCHAIN_EXTERNAL_DEPENDENCIES += musl-compat-headers
|
||||
endif
|
||||
|
||||
$(eval $(virtual-package))
|
||||
|
||||
# Ensure the external-toolchain package has a prefix defined.
|
||||
# This comes after the virtual-package definition, which checks the provider.
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
||||
ifeq ($(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX)),)
|
||||
$(error No prefix selected for external toolchain package $(BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL). Configuration error)
|
||||
endif
|
||||
endif
|
||||
|
||||
include $(sort $(wildcard toolchain/toolchain-external/*/*.mk))
|
||||
554
toolchain/toolchain-wrapper.c
Normal file
554
toolchain/toolchain-wrapper.c
Normal file
@@ -0,0 +1,554 @@
|
||||
/**
|
||||
* Buildroot wrapper for toolchains. This simply executes the real toolchain
|
||||
* with a number of arguments (sysroot/arch/..) hardcoded, to ensure the
|
||||
* toolchain uses the correct configuration.
|
||||
* The hardcoded path arguments are defined relative to the actual location
|
||||
* of the binary.
|
||||
*
|
||||
* (C) 2011 Peter Korsgaard <jacmet@sunsite.dk>
|
||||
* (C) 2011 Daniel Nyström <daniel.nystrom@timeterminal.se>
|
||||
* (C) 2012 Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
* (C) 2013 Spenser Gilliland <spenser@gillilanding.com>
|
||||
*
|
||||
* This file is licensed under the terms of the GNU General Public License
|
||||
* version 2. This program is licensed "as is" without any warranty of any
|
||||
* kind, whether express or implied.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef BR_CCACHE
|
||||
static char ccache_path[PATH_MAX];
|
||||
#endif
|
||||
static char path[PATH_MAX];
|
||||
static char sysroot[PATH_MAX];
|
||||
/* As would be defined by gcc:
|
||||
* https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html
|
||||
* sizeof() on string literals includes the terminating \0. */
|
||||
static char _time_[sizeof("-D__TIME__=\"HH:MM:SS\"")];
|
||||
static char _date_[sizeof("-D__DATE__=\"MMM DD YYYY\"")];
|
||||
|
||||
/* Maximum amount of arguments to reserve space for by default.
|
||||
Must be > predef_args */
|
||||
#define DEFAULT_MAX_ARGS 1024
|
||||
|
||||
static char *predef_args[] = {
|
||||
#ifdef BR_CCACHE
|
||||
ccache_path,
|
||||
#endif
|
||||
path,
|
||||
"--sysroot", sysroot,
|
||||
#ifdef BR_CLANG_CONFIG_FILE
|
||||
BR_CLANG_CONFIG_FILE,
|
||||
#endif
|
||||
#ifdef BR_ABI
|
||||
"-mabi=" BR_ABI,
|
||||
#endif
|
||||
#ifdef BR_NAN
|
||||
"-mnan=" BR_NAN,
|
||||
#endif
|
||||
#ifdef BR_FPU
|
||||
"-mfpu=" BR_FPU,
|
||||
#endif
|
||||
#ifdef BR_SOFTFLOAT
|
||||
"-msoft-float",
|
||||
#endif /* BR_SOFTFLOAT */
|
||||
#ifdef BR_SIMD
|
||||
"-msimd=" BR_SIMD,
|
||||
#endif
|
||||
#ifdef BR_MODE
|
||||
"-m" BR_MODE,
|
||||
#endif
|
||||
#ifdef BR_64
|
||||
"-m64",
|
||||
#endif
|
||||
#ifdef BR_OMIT_LOCK_PREFIX
|
||||
"-Wa,-momit-lock-prefix=yes",
|
||||
#endif
|
||||
#ifdef BR_NO_FUSED_MADD
|
||||
"-mno-fused-madd",
|
||||
#endif
|
||||
#ifdef BR_FP_CONTRACT_OFF
|
||||
"-ffp-contract=off",
|
||||
#endif
|
||||
#ifdef BR_BINFMT_FLAT
|
||||
"-Wl,-elf2flt",
|
||||
#endif
|
||||
#ifdef BR_MIPS_TARGET_LITTLE_ENDIAN
|
||||
"-EL",
|
||||
#endif
|
||||
#if defined(BR_MIPS_TARGET_BIG_ENDIAN) || defined(BR_ARC_TARGET_BIG_ENDIAN)
|
||||
"-EB",
|
||||
#endif
|
||||
#ifdef BR_ADDITIONAL_CFLAGS
|
||||
BR_ADDITIONAL_CFLAGS
|
||||
#endif
|
||||
};
|
||||
|
||||
/* A {string,length} tuple, to avoid computing strlen() on constants.
|
||||
* - str must be a \0-terminated string
|
||||
* - len does not account for the terminating '\0'
|
||||
*/
|
||||
struct str_len_s {
|
||||
const char *str;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
/* Define a {string,length} tuple. Takes an unquoted constant string as
|
||||
* parameter. sizeof() on a string literal includes the terminating \0,
|
||||
* but we don't want to count it.
|
||||
*/
|
||||
#define STR_LEN(s) { #s, sizeof(#s)-1 }
|
||||
|
||||
/* List of paths considered unsafe for cross-compilation.
|
||||
*
|
||||
* An unsafe path is one that points to a directory with libraries or
|
||||
* headers for the build machine, which are not suitable for the target.
|
||||
*/
|
||||
static const struct str_len_s unsafe_paths[] = {
|
||||
STR_LEN(/lib),
|
||||
STR_LEN(/usr/include),
|
||||
STR_LEN(/usr/lib),
|
||||
STR_LEN(/usr/local/include),
|
||||
STR_LEN(/usr/local/lib),
|
||||
STR_LEN(/usr/X11R6/include),
|
||||
STR_LEN(/usr/X11R6/lib),
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
/* Unsafe options are options that specify a potentially unsafe path,
|
||||
* that will be checked by check_unsafe_path(), below.
|
||||
*/
|
||||
static const struct str_len_s unsafe_opts[] = {
|
||||
STR_LEN(-I),
|
||||
STR_LEN(-idirafter),
|
||||
STR_LEN(-iquote),
|
||||
STR_LEN(-isystem),
|
||||
STR_LEN(-L),
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
/* Check if path is unsafe for cross-compilation. Unsafe paths are those
|
||||
* pointing to the standard native include or library paths.
|
||||
*
|
||||
* We print the arguments leading to the failure. For some options, gcc
|
||||
* accepts the path to be concatenated to the argument (e.g. -I/foo/bar)
|
||||
* or separated (e.g. -I /foo/bar). In the first case, we need only print
|
||||
* the argument as it already contains the path (arg_has_path), while in
|
||||
* the second case we need to print both (!arg_has_path).
|
||||
*/
|
||||
static void check_unsafe_path(const char *arg,
|
||||
const char *path,
|
||||
int arg_has_path)
|
||||
{
|
||||
const struct str_len_s *p;
|
||||
|
||||
for (p=unsafe_paths; p->str; p++) {
|
||||
if (strncmp(path, p->str, p->len))
|
||||
continue;
|
||||
fprintf(stderr,
|
||||
"%s: ERROR: unsafe header/library path used in cross-compilation: '%s%s%s'\n",
|
||||
program_invocation_short_name,
|
||||
arg,
|
||||
arg_has_path ? "" : "' '", /* close single-quote, space, open single-quote */
|
||||
arg_has_path ? "" : path); /* so that arg and path are properly quoted. */
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BR_NEED_SOURCE_DATE_EPOCH
|
||||
/* Returns false if SOURCE_DATE_EPOCH was not defined in the environment.
|
||||
*
|
||||
* Returns true if SOURCE_DATE_EPOCH is in the environment and represent
|
||||
* a valid timestamp, in which case the timestamp is formatted into the
|
||||
* global variables _date_ and _time_.
|
||||
*
|
||||
* Aborts if SOURCE_DATE_EPOCH was set in the environment but did not
|
||||
* contain a valid timestamp.
|
||||
*
|
||||
* Valid values are defined in the spec:
|
||||
* https://reproducible-builds.org/specs/source-date-epoch/
|
||||
* but we further restrict them to be positive or null.
|
||||
*/
|
||||
bool parse_source_date_epoch_from_env(void)
|
||||
{
|
||||
char *epoch_env, *endptr;
|
||||
time_t epoch;
|
||||
struct tm epoch_tm;
|
||||
|
||||
if ((epoch_env = getenv("SOURCE_DATE_EPOCH")) == NULL)
|
||||
return false;
|
||||
errno = 0;
|
||||
epoch = (time_t) strtoll(epoch_env, &endptr, 10);
|
||||
/* We just need to test if it is incorrect, but we do not
|
||||
* care why it is incorrect.
|
||||
*/
|
||||
if ((errno != 0) || !*epoch_env || *endptr || (epoch < 0)) {
|
||||
fprintf(stderr, "%s: invalid SOURCE_DATE_EPOCH='%s'\n",
|
||||
program_invocation_short_name,
|
||||
epoch_env);
|
||||
exit(1);
|
||||
}
|
||||
tzset(); /* For localtime_r(), below. */
|
||||
if (localtime_r(&epoch, &epoch_tm) == NULL) {
|
||||
fprintf(stderr, "%s: cannot parse SOURCE_DATE_EPOCH=%s\n",
|
||||
program_invocation_short_name,
|
||||
getenv("SOURCE_DATE_EPOCH"));
|
||||
exit(1);
|
||||
}
|
||||
if (!strftime(_time_, sizeof(_time_), "-D__TIME__=\"%T\"", &epoch_tm)) {
|
||||
fprintf(stderr, "%s: cannot set time from SOURCE_DATE_EPOCH=%s\n",
|
||||
program_invocation_short_name,
|
||||
getenv("SOURCE_DATE_EPOCH"));
|
||||
exit(1);
|
||||
}
|
||||
if (!strftime(_date_, sizeof(_date_), "-D__DATE__=\"%b %e %Y\"", &epoch_tm)) {
|
||||
fprintf(stderr, "%s: cannot set date from SOURCE_DATE_EPOCH=%s\n",
|
||||
program_invocation_short_name,
|
||||
getenv("SOURCE_DATE_EPOCH"));
|
||||
exit(1);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool parse_source_date_epoch_from_env(void)
|
||||
{
|
||||
/* The compiler is recent enough to handle SOURCE_DATE_EPOCH itself
|
||||
* so we do not need to do anything here.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char **args, **cur, **exec_args;
|
||||
char *relbasedir, *absbasedir;
|
||||
char *progpath = argv[0];
|
||||
char *basename;
|
||||
char *env_debug;
|
||||
int ret, i, count = 0, debug = 0, found_shared = 0, found_nonoption = 0;
|
||||
size_t n_args;
|
||||
|
||||
/* Debug the wrapper to see arguments it was called with.
|
||||
* If environment variable BR2_DEBUG_WRAPPER is:
|
||||
* unset, empty, or 0: do not trace
|
||||
* set to 1 : trace all arguments on a single line
|
||||
* set to 2 : trace one argument per line
|
||||
*/
|
||||
if ((env_debug = getenv("BR2_DEBUG_WRAPPER"))) {
|
||||
debug = atoi(env_debug);
|
||||
}
|
||||
if (debug > 0) {
|
||||
fprintf(stderr, "Toolchain wrapper was called with:");
|
||||
for (i = 0; i < argc; i++)
|
||||
fprintf(stderr, "%s'%s'",
|
||||
(debug == 2) ? "\n " : " ", argv[i]);
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
/* Calculate the relative paths */
|
||||
basename = strrchr(progpath, '/');
|
||||
if (basename) {
|
||||
*basename = '\0';
|
||||
basename++;
|
||||
relbasedir = malloc(strlen(progpath) + 7);
|
||||
if (relbasedir == NULL) {
|
||||
perror(__FILE__ ": malloc");
|
||||
return 2;
|
||||
}
|
||||
sprintf(relbasedir, "%s/..", argv[0]);
|
||||
absbasedir = realpath(relbasedir, NULL);
|
||||
} else {
|
||||
basename = progpath;
|
||||
absbasedir = malloc(PATH_MAX + 1);
|
||||
ret = readlink("/proc/self/exe", absbasedir, PATH_MAX);
|
||||
if (ret < 0) {
|
||||
perror(__FILE__ ": readlink");
|
||||
return 2;
|
||||
}
|
||||
absbasedir[ret] = '\0';
|
||||
for (i = ret; i > 0; i--) {
|
||||
if (absbasedir[i] == '/') {
|
||||
absbasedir[i] = '\0';
|
||||
if (++count == 2)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (absbasedir == NULL) {
|
||||
perror(__FILE__ ": realpath");
|
||||
return 2;
|
||||
}
|
||||
|
||||
/* Fill in the relative paths */
|
||||
#ifdef BR_CROSS_PATH_REL
|
||||
ret = snprintf(path, sizeof(path), "%s/" BR_CROSS_PATH_REL "/%s" BR_CROSS_PATH_SUFFIX, absbasedir, basename);
|
||||
#elif defined(BR_CROSS_PATH_ABS)
|
||||
ret = snprintf(path, sizeof(path), BR_CROSS_PATH_ABS "/%s" BR_CROSS_PATH_SUFFIX, basename);
|
||||
#else
|
||||
ret = snprintf(path, sizeof(path), "%s/bin/%s" BR_CROSS_PATH_SUFFIX, absbasedir, basename);
|
||||
#endif
|
||||
if (ret >= sizeof(path)) {
|
||||
perror(__FILE__ ": overflow");
|
||||
return 3;
|
||||
}
|
||||
|
||||
/* any non-option (E.G. source / object files) arguments passed? */
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (argv[i][0] != '-') {
|
||||
found_nonoption = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for unsafe library and header paths */
|
||||
for (i = 1; i < argc; i++) {
|
||||
const struct str_len_s *opt;
|
||||
for (opt=unsafe_opts; opt->str; opt++ ) {
|
||||
/* Skip any non-unsafe option. */
|
||||
if (strncmp(argv[i], opt->str, opt->len))
|
||||
continue;
|
||||
|
||||
/* Handle both cases:
|
||||
* - path is a separate argument,
|
||||
* - path is concatenated with option.
|
||||
*/
|
||||
if (argv[i][opt->len] == '\0') {
|
||||
i++;
|
||||
if (i == argc)
|
||||
break;
|
||||
check_unsafe_path(argv[i-1], argv[i], 0);
|
||||
} else
|
||||
check_unsafe_path(argv[i], argv[i] + opt->len, 1);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BR_CCACHE
|
||||
ret = snprintf(ccache_path, sizeof(ccache_path), "%s/bin/ccache", absbasedir);
|
||||
if (ret >= sizeof(ccache_path)) {
|
||||
perror(__FILE__ ": overflow");
|
||||
return 3;
|
||||
}
|
||||
#endif
|
||||
ret = snprintf(sysroot, sizeof(sysroot), "%s/" BR_SYSROOT, absbasedir);
|
||||
if (ret >= sizeof(sysroot)) {
|
||||
perror(__FILE__ ": overflow");
|
||||
return 3;
|
||||
}
|
||||
|
||||
cur = args = malloc(DEFAULT_MAX_ARGS * sizeof(char *));
|
||||
if (args == NULL) {
|
||||
perror(__FILE__ ": malloc");
|
||||
return 2;
|
||||
}
|
||||
|
||||
/* start with predefined args */
|
||||
for (i = 0; i < sizeof(predef_args) / sizeof(predef_args[0]); i++) {
|
||||
/* skip linker flags when we know we are not linking */
|
||||
if (found_nonoption || strncmp(predef_args[i], "-Wl,", strlen("-Wl,")))
|
||||
*cur++ = predef_args[i];
|
||||
}
|
||||
|
||||
#ifdef BR_FLOAT_ABI
|
||||
/* add float abi if not overridden in args */
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strncmp(argv[i], "-mfloat-abi=", strlen("-mfloat-abi=")) ||
|
||||
!strcmp(argv[i], "-msoft-float") ||
|
||||
!strcmp(argv[i], "-mhard-float"))
|
||||
break;
|
||||
}
|
||||
|
||||
if (i == argc)
|
||||
*cur++ = "-mfloat-abi=" BR_FLOAT_ABI;
|
||||
#endif
|
||||
|
||||
#ifdef BR_FP32_MODE
|
||||
/* add fp32 mode if soft-float is not args or hard-float overrides soft-float */
|
||||
int add_fp32_mode = 1;
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strcmp(argv[i], "-msoft-float"))
|
||||
add_fp32_mode = 0;
|
||||
else if (!strcmp(argv[i], "-mhard-float"))
|
||||
add_fp32_mode = 1;
|
||||
}
|
||||
|
||||
if (add_fp32_mode == 1)
|
||||
*cur++ = "-mfp" BR_FP32_MODE;
|
||||
#endif
|
||||
|
||||
#if defined(BR_ARCH) || \
|
||||
defined(BR_CPU)
|
||||
/* Add our -march/cpu flags, but only if none of
|
||||
* -march/mtune/mcpu are already specified on the commandline
|
||||
*/
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strncmp(argv[i], "-march=", strlen("-march=")) ||
|
||||
!strncmp(argv[i], "-mtune=", strlen("-mtune=")) ||
|
||||
!strncmp(argv[i], "-mcpu=", strlen("-mcpu=" )))
|
||||
break;
|
||||
}
|
||||
if (i == argc) {
|
||||
#ifdef BR_ARCH
|
||||
*cur++ = "-march=" BR_ARCH;
|
||||
#endif
|
||||
#ifdef BR_CPU
|
||||
*cur++ = "-mcpu=" BR_CPU;
|
||||
#endif
|
||||
}
|
||||
#endif /* ARCH || CPU */
|
||||
|
||||
if (parse_source_date_epoch_from_env()) {
|
||||
*cur++ = _time_;
|
||||
*cur++ = _date_;
|
||||
/* This has existed since gcc-4.4.0. */
|
||||
*cur++ = "-Wno-builtin-macro-redefined";
|
||||
}
|
||||
|
||||
#ifdef BR2_PIC_PIE
|
||||
/* Patterned after Fedora/Gentoo hardening approaches.
|
||||
* https://fedoraproject.org/wiki/Changes/Harden_All_Packages
|
||||
* https://wiki.gentoo.org/wiki/Hardened/Toolchain#Position_Independent_Executables_.28PIEs.29
|
||||
*
|
||||
* A few checks are added to allow disabling of PIE
|
||||
* 1) -fno-pie and -no-pie are used by other distros to disable PIE in
|
||||
* cases where the compiler enables it by default. The logic below
|
||||
* maintains that behavior.
|
||||
* Ref: https://wiki.ubuntu.com/SecurityTeam/PIE
|
||||
* 2) A check for -fno-PIE has been used in older Linux Kernel builds
|
||||
* in a similar way to -fno-pie or -no-pie.
|
||||
* 3) A check is added for Kernel and U-boot defines
|
||||
* (-D__KERNEL__ and -D__UBOOT__).
|
||||
*/
|
||||
for (i = 1; i < argc; i++) {
|
||||
/* Apply all incompatible link flag and disable checks first */
|
||||
if (!strcmp(argv[i], "-r") ||
|
||||
!strcmp(argv[i], "-Wl,-r") ||
|
||||
!strcmp(argv[i], "-static") ||
|
||||
!strcmp(argv[i], "-D__KERNEL__") ||
|
||||
!strcmp(argv[i], "-D__UBOOT__") ||
|
||||
!strcmp(argv[i], "-fno-pie") ||
|
||||
!strcmp(argv[i], "-fno-PIE") ||
|
||||
!strcmp(argv[i], "-no-pie"))
|
||||
break;
|
||||
/* Record that shared was present which disables -pie but don't
|
||||
* break out of loop as a check needs to occur that possibly
|
||||
* still allows -fPIE to be set
|
||||
*/
|
||||
if (!strcmp(argv[i], "-shared"))
|
||||
found_shared = 1;
|
||||
}
|
||||
|
||||
if (i == argc) {
|
||||
/* Compile and link condition checking have been kept split
|
||||
* between these two loops, as there maybe already are valid
|
||||
* compile flags set for position independence. In that case
|
||||
* the wrapper just adds the -pie for link.
|
||||
*/
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strcmp(argv[i], "-fpie") ||
|
||||
!strcmp(argv[i], "-fPIE") ||
|
||||
!strcmp(argv[i], "-fpic") ||
|
||||
!strcmp(argv[i], "-fPIC"))
|
||||
break;
|
||||
}
|
||||
/* Both args below can be set at compile/link time
|
||||
* and are ignored correctly when not used
|
||||
*/
|
||||
if (i == argc)
|
||||
*cur++ = "-fPIE";
|
||||
|
||||
if (!found_shared)
|
||||
*cur++ = "-pie";
|
||||
}
|
||||
#endif
|
||||
/* Are we building the Linux Kernel or U-Boot? */
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strcmp(argv[i], "-D__KERNEL__") ||
|
||||
!strcmp(argv[i], "-D__UBOOT__"))
|
||||
break;
|
||||
}
|
||||
if (i == argc && found_nonoption) {
|
||||
/* https://wiki.gentoo.org/wiki/Hardened/Toolchain#Mark_Read-Only_Appropriate_Sections */
|
||||
#ifdef BR2_RELRO_PARTIAL
|
||||
*cur++ = "-Wl,-z,relro";
|
||||
#endif
|
||||
#ifdef BR2_RELRO_FULL
|
||||
*cur++ = "-Wl,-z,now";
|
||||
*cur++ = "-Wl,-z,relro";
|
||||
#endif
|
||||
}
|
||||
|
||||
n_args = (cur - args);
|
||||
if ((n_args + argc) > DEFAULT_MAX_ARGS) {
|
||||
args = realloc(args, (n_args + argc) * sizeof(char *));
|
||||
if (args == NULL) {
|
||||
perror(__FILE__ ": realloc");
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
/* append forward args and terminating NULL */
|
||||
memcpy(&args[n_args], &argv[1], sizeof(char *) * argc);
|
||||
|
||||
exec_args = args;
|
||||
#ifdef BR_CCACHE
|
||||
/* If BR2_USE_CCACHE is set and its value is 1, enable ccache
|
||||
* usage */
|
||||
char *br_use_ccache = getenv("BR2_USE_CCACHE");
|
||||
bool ccache_enabled = br_use_ccache && !strncmp(br_use_ccache, "1", strlen("1"));
|
||||
|
||||
if (ccache_enabled) {
|
||||
#ifdef BR_CCACHE_HASH
|
||||
/* Allow compilercheck to be overridden through the environment */
|
||||
if (setenv("CCACHE_COMPILERCHECK", "string:" BR_CCACHE_HASH, 0)) {
|
||||
perror(__FILE__ ": Failed to set CCACHE_COMPILERCHECK");
|
||||
return 3;
|
||||
}
|
||||
#endif
|
||||
#ifdef BR_CCACHE_BASEDIR
|
||||
/* Allow basedir to be overridden through the environment */
|
||||
if (setenv("CCACHE_BASEDIR", BR_CCACHE_BASEDIR, 0)) {
|
||||
perror(__FILE__ ": Failed to set CCACHE_BASEDIR");
|
||||
return 3;
|
||||
}
|
||||
#endif
|
||||
} else
|
||||
/* ccache is disabled, skip it */
|
||||
exec_args++;
|
||||
#endif
|
||||
|
||||
/* Debug the wrapper to see final arguments passed to the real compiler. */
|
||||
if (debug > 0) {
|
||||
fprintf(stderr, "Toolchain wrapper executing:");
|
||||
#ifdef BR_CCACHE_HASH
|
||||
if (ccache_enabled)
|
||||
fprintf(stderr, "%sCCACHE_COMPILERCHECK='string:" BR_CCACHE_HASH "'",
|
||||
(debug == 2) ? "\n " : " ");
|
||||
#endif
|
||||
#ifdef BR_CCACHE_BASEDIR
|
||||
if (ccache_enabled)
|
||||
fprintf(stderr, "%sCCACHE_BASEDIR='" BR_CCACHE_BASEDIR "'",
|
||||
(debug == 2) ? "\n " : " ");
|
||||
#endif
|
||||
for (i = 0; exec_args[i]; i++)
|
||||
fprintf(stderr, "%s'%s'",
|
||||
(debug == 2) ? "\n " : " ", exec_args[i]);
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
if (execv(exec_args[0], exec_args))
|
||||
perror(path);
|
||||
|
||||
free(args);
|
||||
|
||||
return 2;
|
||||
}
|
||||
96
toolchain/toolchain-wrapper.mk
Normal file
96
toolchain/toolchain-wrapper.mk
Normal file
@@ -0,0 +1,96 @@
|
||||
################################################################################
|
||||
#
|
||||
# definition of the toolchain wrapper build commands
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# We use --hash-style=both to increase the compatibility of the generated
|
||||
# binary with older platforms, except for MIPS, where the only acceptable
|
||||
# hash style is 'sysv'
|
||||
ifeq ($(findstring mips,$(HOSTARCH)),mips)
|
||||
TOOLCHAIN_WRAPPER_HASH_STYLE = sysv
|
||||
else
|
||||
TOOLCHAIN_WRAPPER_HASH_STYLE = both
|
||||
endif
|
||||
|
||||
TOOLCHAIN_WRAPPER_ARGS = $($(PKG)_TOOLCHAIN_WRAPPER_ARGS)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR_SYSROOT='"$(STAGING_SUBDIR)"'
|
||||
|
||||
TOOLCHAIN_WRAPPER_OPTS = \
|
||||
$(ARCH_TOOLCHAIN_WRAPPER_OPTS) \
|
||||
$(call qstrip,$(BR2_SSP_OPTION)) \
|
||||
$(call qstrip,$(BR2_TARGET_OPTIMIZATION))
|
||||
|
||||
ifeq ($(BR2_REPRODUCIBLE),y)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -Wl,--build-id=none
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -ffile-prefix-map=$(BASE_DIR)=buildroot
|
||||
else
|
||||
TOOLCHAIN_WRAPPER_OPTS += -fdebug-prefix-map=$(BASE_DIR)=buildroot
|
||||
TOOLCHAIN_WRAPPER_OPTS += -D__FILE__=\"\" -D__BASE_FILE__=\"\" -Wno-builtin-macro-redefined
|
||||
endif
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_7),)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -DBR_NEED_SOURCE_DATE_EPOCH
|
||||
endif
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_6),)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -gno-record-gcc-switches
|
||||
endif
|
||||
endif
|
||||
|
||||
# Disable -ftree-loop-distribute-patterns on microblaze to
|
||||
# workaround a compiler bug with gcc 10 and -O2, -Os or -O3.
|
||||
# https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5879ab5fafedc8f6f9bfe95a4cf8501b0df90edd
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_10)$(BR2_microblaze),yy)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -fno-tree-loop-distribute-patterns
|
||||
endif
|
||||
|
||||
# We create a list like '"-mfoo", "-mbar", "-mbarfoo"' so that each flag is a
|
||||
# separate argument when used in execv() by the toolchain wrapper.
|
||||
TOOLCHAIN_WRAPPER_ARGS += \
|
||||
-DBR_ADDITIONAL_CFLAGS='$(foreach f,$(TOOLCHAIN_WRAPPER_OPTS),"$(f)"$(comma))'
|
||||
|
||||
ifeq ($(BR2_CCACHE),y)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR_CCACHE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_x86_x1000),y)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR_OMIT_LOCK_PREFIX
|
||||
endif
|
||||
|
||||
# Avoid FPU bug on XBurst CPUs
|
||||
ifeq ($(BR2_mips_xburst),y)
|
||||
# Before gcc 4.6, -mno-fused-madd was needed, after -ffp-contract is
|
||||
# needed
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_6),y)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR_FP_CONTRACT_OFF
|
||||
else
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR_NO_FUSED_MADD
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_CCACHE_USE_BASEDIR),y)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR_CCACHE_BASEDIR='"$(BASE_DIR)"'
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PIC_PIE),y)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR2_PIC_PIE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_RELRO_PARTIAL),y)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR2_RELRO_PARTIAL
|
||||
else ifeq ($(BR2_RELRO_FULL),y)
|
||||
TOOLCHAIN_WRAPPER_ARGS += -DBR2_RELRO_FULL
|
||||
endif
|
||||
|
||||
define TOOLCHAIN_WRAPPER_BUILD
|
||||
$(HOSTCC) $(HOST_CFLAGS) $(TOOLCHAIN_WRAPPER_ARGS) \
|
||||
-s -Wl,--hash-style=$(TOOLCHAIN_WRAPPER_HASH_STYLE) \
|
||||
toolchain/toolchain-wrapper.c \
|
||||
-o $(@D)/toolchain-wrapper
|
||||
endef
|
||||
|
||||
define TOOLCHAIN_WRAPPER_INSTALL
|
||||
$(INSTALL) -D -m 0755 $(@D)/toolchain-wrapper \
|
||||
$(HOST_DIR)/bin/toolchain-wrapper
|
||||
endef
|
||||
55
toolchain/toolchain.mk
Normal file
55
toolchain/toolchain.mk
Normal file
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain-related customisation of the content of the target/ directory
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# Those customisations are added to the TARGET_FINALIZE_HOOKS, to be applied
|
||||
# just after all packages have been built.
|
||||
|
||||
# Install the gconv modules
|
||||
ifeq ($(BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY),y)
|
||||
TOOLCHAIN_GLIBC_GCONV_LIBS = $(call qstrip,$(BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST))
|
||||
define TOOLCHAIN_GLIBC_COPY_GCONV_LIBS
|
||||
$(Q)found_gconv=no; \
|
||||
for d in $(TOOLCHAIN_EXTERNAL_PREFIX) ''; do \
|
||||
[ -d "$(STAGING_DIR)/usr/lib/$${d}/gconv" ] || continue; \
|
||||
found_gconv=yes; \
|
||||
break; \
|
||||
done; \
|
||||
if [ "$${found_gconv}" = "no" ]; then \
|
||||
printf "Unable to find gconv modules\n" >&2; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
if [ -z "$(TOOLCHAIN_GLIBC_GCONV_LIBS)" ]; then \
|
||||
$(INSTALL) -m 0644 -D $(STAGING_DIR)/usr/lib/$${d}/gconv/gconv-modules \
|
||||
$(TARGET_DIR)/usr/lib/gconv/gconv-modules && \
|
||||
$(INSTALL) -m 0644 $(STAGING_DIR)/usr/lib/$${d}/gconv/*.so \
|
||||
$(TARGET_DIR)/usr/lib/gconv \
|
||||
|| exit 1; \
|
||||
if [ -d $(STAGING_DIR)/usr/lib/$${d}/gconv/gconv-modules.d ]; then \
|
||||
cp -a $(STAGING_DIR)/usr/lib/$${d}/gconv/gconv-modules.d \
|
||||
$(TARGET_DIR)/usr/lib/gconv/ || exit 1; \
|
||||
fi; \
|
||||
else \
|
||||
for l in $(TOOLCHAIN_GLIBC_GCONV_LIBS); do \
|
||||
$(INSTALL) -m 0644 -D $(STAGING_DIR)/usr/lib/$${d}/gconv/$${l}.so \
|
||||
$(TARGET_DIR)/usr/lib/gconv/$${l}.so \
|
||||
|| exit 1; \
|
||||
$(TARGET_READELF) -d $(STAGING_DIR)/usr/lib/$${d}/gconv/$${l}.so |\
|
||||
sort -u |\
|
||||
sed -e '/.*(NEEDED).*\[\(.*\.so\)\]$$/!d; s//\1/;' |\
|
||||
while read lib; do \
|
||||
$(INSTALL) -m 0644 -D $(STAGING_DIR)/usr/lib/$${d}/gconv/$${lib} \
|
||||
$(TARGET_DIR)/usr/lib/gconv/$${lib} \
|
||||
|| exit 1; \
|
||||
done; \
|
||||
done; \
|
||||
./support/scripts/expunge-gconv-modules \
|
||||
$(STAGING_DIR)/usr/lib/$${d}/gconv \
|
||||
"$(TOOLCHAIN_GLIBC_GCONV_LIBS)" \
|
||||
>$(TARGET_DIR)/usr/lib/gconv/gconv-modules; \
|
||||
fi
|
||||
endef
|
||||
TOOLCHAIN_TARGET_FINALIZE_HOOKS += TOOLCHAIN_GLIBC_COPY_GCONV_LIBS
|
||||
endif
|
||||
53
toolchain/toolchain/toolchain.mk
Normal file
53
toolchain/toolchain/toolchain.mk
Normal file
@@ -0,0 +1,53 @@
|
||||
################################################################################
|
||||
#
|
||||
# toolchain
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||
TOOLCHAIN_DEPENDENCIES += toolchain-buildroot
|
||||
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
||||
TOOLCHAIN_DEPENDENCIES += toolchain-external
|
||||
endif
|
||||
|
||||
TOOLCHAIN_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
TOOLCHAIN_INSTALL_STAGING = YES
|
||||
|
||||
# Apply a hack that Rick Felker suggested[1] to avoid conflicts between libc
|
||||
# headers and kernel headers. This is needed for kernel headers older than
|
||||
# 4.15. Kernel headers 4.15 and newer don't require __GLIBC__ to be defined.
|
||||
#
|
||||
# Augment the original suggestion with __USE_MISC since recent kernels
|
||||
# (older than 4.15) require this glibc internal macro. Also, as musl defines
|
||||
# IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO, add another macro to suppress
|
||||
# them in the kernel header, and avoid macro/enum conflict.
|
||||
#
|
||||
# Kernel version 3.12 introduced the libc-compat.h header.
|
||||
#
|
||||
# [1] http://www.openwall.com/lists/musl/2015/10/08/2
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12):$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15),yy:)
|
||||
define TOOLCHAIN_MUSL_KERNEL_HEADERS_COMPATIBILITY_HACK
|
||||
$(SED) 's/^#if defined(__GLIBC__)$$/#if 1/' \
|
||||
$(STAGING_DIR)/usr/include/linux/libc-compat.h
|
||||
$(SED) '1s/^/#define __USE_MISC\n/' \
|
||||
$(STAGING_DIR)/usr/include/linux/libc-compat.h
|
||||
$(SED) '1s/^/#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0\n/' \
|
||||
$(STAGING_DIR)/usr/include/linux/libc-compat.h
|
||||
endef
|
||||
TOOLCHAIN_POST_INSTALL_STAGING_HOOKS += TOOLCHAIN_MUSL_KERNEL_HEADERS_COMPATIBILITY_HACK
|
||||
endif
|
||||
|
||||
# Install default nsswitch.conf file if the skeleton doesn't provide it
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
|
||||
define TOOLCHAIN_GLIBC_COPY_NSSWITCH_FILE
|
||||
@if [ ! -f "$(TARGET_DIR)/etc/nsswitch.conf" ]; then \
|
||||
$(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf ; \
|
||||
fi
|
||||
endef
|
||||
TOOLCHAIN_POST_INSTALL_TARGET_HOOKS += TOOLCHAIN_GLIBC_COPY_NSSWITCH_FILE
|
||||
endif
|
||||
|
||||
# Not really a virtual package, but we use the virtual package infra here so
|
||||
# both the build log and build directory look nicer (toolchain-virtual instead
|
||||
# of toolchain-undefined)
|
||||
$(eval $(virtual-package))
|
||||
Reference in New Issue
Block a user