diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-10 14:04:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-11 15:24:22 +0100 |
commit | e27f339a048c70a01642357ffb8bb79ed697eb00 (patch) | |
tree | 338c942cb5fb1b5c4b09af754d149a57df18c8c5 /meta/conf/distro/include/tcmode-default.inc | |
parent | 5a606efa34f494df8184da886bdd5f7e0dfcd639 (diff) | |
download | poky-e27f339a048c70a01642357ffb8bb79ed697eb00.tar.gz |
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>
Diffstat (limited to 'meta/conf/distro/include/tcmode-default.inc')
-rw-r--r-- | meta/conf/distro/include/tcmode-default.inc | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc new file mode 100644 index 0000000000..909d802f89 --- /dev/null +++ b/meta/conf/distro/include/tcmode-default.inc | |||
@@ -0,0 +1,54 @@ | |||
1 | # | ||
2 | # Default toolchain configuration | ||
3 | # | ||
4 | |||
5 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${TCLIBC}" | ||
6 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross" | ||
7 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial" | ||
8 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate" | ||
9 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross" | ||
10 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross" | ||
11 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime" | ||
12 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${TCLIBC}-initial" | ||
13 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${TCLIBC}-nativesdk" | ||
14 | |||
15 | PREFERRED_PROVIDER_virtual/gettext ??= "gettext" | ||
16 | |||
17 | GCCVERSION ?= "4.5.1" | ||
18 | SDKGCCVERSION ?= "4.5.1" | ||
19 | BINUVERSION ?= "2.21" | ||
20 | GLIBCVERSION ?= "2.10.1" | ||
21 | LINUXLIBCVERSION ?= "2.6.37.2" | ||
22 | |||
23 | # Temporary preferred version overrides for PPC | ||
24 | PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= "2009.08" | ||
25 | |||
26 | PREFERRED_VERSION_gcc ?= "${GCCVERSION}" | ||
27 | PREFERRED_VERSION_gcc-cross ?= "${GCCVERSION}" | ||
28 | PREFERRED_VERSION_gcc-cross-initial ?= "${GCCVERSION}" | ||
29 | PREFERRED_VERSION_gcc-cross-intermediate ?= "${GCCVERSION}" | ||
30 | PREFERRED_VERSION_gcc-crosssdk ?= "${SDKGCCVERSION}" | ||
31 | PREFERRED_VERSION_gcc-crosssdk-initial ?= "${SDKGCCVERSION}" | ||
32 | PREFERRED_VERSION_gcc-crosssdk-intermediate ?= "${SDKGCCVERSION}" | ||
33 | PREFERRED_VERSION_gcc-cross-canadian ?= "${GCCVERSION}" | ||
34 | PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}" | ||
35 | PREFERRED_VERSION_gcc-runtime-nativesdk ?= "${SDKGCCVERSION}" | ||
36 | PREFERRED_VERSION_binutils ?= "${BINUVERSION}" | ||
37 | PREFERRED_VERSION_binutils-cross ?= "${BINUVERSION}" | ||
38 | PREFERRED_VERSION_binutils-crosssdk ?= "${BINUVERSION}" | ||
39 | PREFERRED_VERSION_binutils-cross-canadian ?= "${BINUVERSION}" | ||
40 | PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" | ||
41 | PREFERRED_VERSION_linux-libc-headers-nativesdk ?= "${LINUXLIBCVERSION}" | ||
42 | PREFERRED_VERSION_glibc ?= "${GLIBCVERSION}" | ||
43 | PREFERRED_VERSION_glibc-nativesdk ?= "${GLIBCVERSION}" | ||
44 | PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}" | ||
45 | PREFERRED_VERSION_glibc-initial-nativesdk ?= "${GLIBCVERSION}" | ||
46 | PREFERRED_VERSION_elfutils ?= "0.148" | ||
47 | # don't use version earlier than 1.4 for gzip-native, as it's necessary for | ||
48 | # some packages using an archive format incompatible with earlier gzip | ||
49 | PREFERRED_VERSION_gzip-native ?= "1.4" | ||
50 | |||
51 | # Setup suitable toolchain flags | ||
52 | require conf/distro/include/as-needed.inc | ||
53 | TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH', d, True) in ['mips', 'mipsel', 'mips64', 'mips64el']]}" | ||
54 | |||