mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
distro: Add defaultsetup.conf, a set of default configuration providing sane overrridable default for commonly used options
The intent is to allow distros to share common core config but still allow customisations. The core should work with no distro set but users can still customise in any ways needed. (From OE-Core rev: c0a148077ae27a1ef57c55ac22953c68d001af57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
54
meta/conf/distro/include/tcmode-default.inc
Normal file
54
meta/conf/distro/include/tcmode-default.inc
Normal file
@@ -0,0 +1,54 @@
|
||||
#
|
||||
# Default toolchain configuration
|
||||
#
|
||||
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${TCLIBC}"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${TCLIBC}-initial"
|
||||
PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${TCLIBC}-nativesdk"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
|
||||
|
||||
GCCVERSION ?= "4.5.1"
|
||||
SDKGCCVERSION ?= "4.5.1"
|
||||
BINUVERSION ?= "2.21"
|
||||
GLIBCVERSION ?= "2.10.1"
|
||||
LINUXLIBCVERSION ?= "2.6.37.2"
|
||||
|
||||
# Temporary preferred version overrides for PPC
|
||||
PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= "2009.08"
|
||||
|
||||
PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-cross ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-cross-initial ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-cross-intermediate ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-crosssdk ?= "${SDKGCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-crosssdk-initial ?= "${SDKGCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-crosssdk-intermediate ?= "${SDKGCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-cross-canadian ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-runtime-nativesdk ?= "${SDKGCCVERSION}"
|
||||
PREFERRED_VERSION_binutils ?= "${BINUVERSION}"
|
||||
PREFERRED_VERSION_binutils-cross ?= "${BINUVERSION}"
|
||||
PREFERRED_VERSION_binutils-crosssdk ?= "${BINUVERSION}"
|
||||
PREFERRED_VERSION_binutils-cross-canadian ?= "${BINUVERSION}"
|
||||
PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}"
|
||||
PREFERRED_VERSION_linux-libc-headers-nativesdk ?= "${LINUXLIBCVERSION}"
|
||||
PREFERRED_VERSION_glibc ?= "${GLIBCVERSION}"
|
||||
PREFERRED_VERSION_glibc-nativesdk ?= "${GLIBCVERSION}"
|
||||
PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}"
|
||||
PREFERRED_VERSION_glibc-initial-nativesdk ?= "${GLIBCVERSION}"
|
||||
PREFERRED_VERSION_elfutils ?= "0.148"
|
||||
# don't use version earlier than 1.4 for gzip-native, as it's necessary for
|
||||
# some packages using an archive format incompatible with earlier gzip
|
||||
PREFERRED_VERSION_gzip-native ?= "1.4"
|
||||
|
||||
# Setup suitable toolchain flags
|
||||
require conf/distro/include/as-needed.inc
|
||||
TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH', d, True) in ['mips', 'mipsel', 'mips64', 'mips64el']]}"
|
||||
|
||||
Reference in New Issue
Block a user