Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # Default toolchain configuration |
| 3 | # |
| 4 | |
| 5 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross-${TARGET_ARCH}" |
| 6 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial-${TARGET_ARCH}" |
| 7 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross-${TARGET_ARCH}" |
| 8 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross-${TARGET_ARCH}" |
| 9 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime" |
| 10 | PREFERRED_PROVIDER_gdb = "gdb" |
| 11 | |
| 12 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}binutils-crosssdk ?= "binutils-crosssdk-${SDK_ARCH}" |
| 13 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}gcc-initial = "gcc-crosssdk-initial-${SDK_ARCH}" |
| 14 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}gcc = "gcc-crosssdk-${SDK_ARCH}" |
| 15 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}g++ = "gcc-crosssdk-${SDK_ARCH}" |
| 16 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}compilerlibs = "nativesdk-gcc-runtime" |
| 17 | |
| 18 | # Default libc config |
| 19 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${TCLIBC}" |
| 20 | PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-for-gcc ?= "nativesdk-${TCLIBC}" |
| 21 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${TCLIBC}-initial" |
| 22 | PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-initial = "nativesdk-${TCLIBC}-initial" |
| 23 | PREFERRED_PROVIDER_virtual/gettext ??= "gettext" |
| 24 | |
| 25 | GCCVERSION ?= "5.%" |
| 26 | SDKGCCVERSION ?= "${GCCVERSION}" |
| 27 | BINUVERSION ?= "2.25%" |
| 28 | GDBVERSION ?= "7.9%" |
| 29 | GLIBCVERSION ?= "2.22" |
| 30 | UCLIBCVERSION ?= "0.9.33+git%" |
| 31 | LINUXLIBCVERSION ?= "4.1" |
| 32 | |
| 33 | PREFERRED_VERSION_gcc ?= "${GCCVERSION}" |
| 34 | PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}" |
| 35 | PREFERRED_VERSION_gcc-cross-initial-${TARGET_ARCH} ?= "${GCCVERSION}" |
| 36 | PREFERRED_VERSION_gcc-crosssdk-${SDK_ARCH} ?= "${SDKGCCVERSION}" |
| 37 | PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_ARCH} ?= "${SDKGCCVERSION}" |
| 38 | PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GCCVERSION}" |
| 39 | PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}" |
| 40 | PREFERRED_VERSION_gcc-sanitizers ?= "${GCCVERSION}" |
| 41 | PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}" |
| 42 | PREFERRED_VERSION_nativesdk-gcc-sanitizers ?= "${SDKGCCVERSION}" |
| 43 | PREFERRED_VERSION_libgcc ?= "${GCCVERSION}" |
| 44 | PREFERRED_VERSION_libgcc-initial ?= "${GCCVERSION}" |
| 45 | PREFERRED_VERSION_nativesdk-gcc ?= "${SDKGCCVERSION}" |
| 46 | PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}" |
| 47 | PREFERRED_VERSION_nativesdk-libgcc-initial ?= "${SDKGCCVERSION}" |
| 48 | PREFERRED_VERSION_binutils ?= "${BINUVERSION}" |
| 49 | PREFERRED_VERSION_binutils-native ?= "${BINUVERSION}" |
| 50 | PREFERRED_VERSION_binutils-cross-${TARGET_ARCH} ?= "${BINUVERSION}" |
| 51 | PREFERRED_VERSION_binutils-crosssdk-${SDK_ARCH} ?= "${BINUVERSION}" |
| 52 | PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${BINUVERSION}" |
| 53 | PREFERRED_VERSION_gdb ?= "${GDBVERSION}" |
| 54 | PREFERRED_VERSION_gdb-cross-${TARGET_ARCH} ?= "${GDBVERSION}" |
| 55 | PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GDBVERSION}" |
| 56 | |
| 57 | PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" |
| 58 | PREFERRED_VERSION_nativesdk-linux-libc-headers ?= "${LINUXLIBCVERSION}" |
| 59 | PREFERRED_VERSION_glibc ?= "${GLIBCVERSION}" |
| 60 | PREFERRED_VERSION_glibc-locale ?= "${GLIBCVERSION}" |
| 61 | PREFERRED_VERSION_glibc-mtrace ?= "${GLIBCVERSION}" |
| 62 | PREFERRED_VERSION_glibc-scripts ?= "${GLIBCVERSION}" |
| 63 | PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}" |
| 64 | PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}" |
| 65 | PREFERRED_VERSION_nativesdk-glibc-initial ?= "${GLIBCVERSION}" |
| 66 | PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}" |
| 67 | PREFERRED_VERSION_uclibc ?= "${UCLIBCVERSION}" |
| 68 | PREFERRED_VERSION_uclibc-initial ?= "${UCLIBCVERSION}" |
| 69 | # don't use version earlier than 1.4 for gzip-native, as it's necessary for |
| 70 | # some packages using an archive format incompatible with earlier gzip |
| 71 | PREFERRED_VERSION_gzip-native ?= "1.6" |
| 72 | |
| 73 | # Setup suitable toolchain flags |
| 74 | require conf/distro/include/as-needed.inc |
| 75 | |