summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro/include/tcmode-default.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-10 14:04:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-11 15:24:22 +0100
commite27f339a048c70a01642357ffb8bb79ed697eb00 (patch)
tree338c942cb5fb1b5c4b09af754d149a57df18c8c5 /meta/conf/distro/include/tcmode-default.inc
parent5a606efa34f494df8184da886bdd5f7e0dfcd639 (diff)
downloadpoky-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.inc54
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
5PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${TCLIBC}"
6PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
7PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial"
8PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate"
9PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross"
10PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross"
11PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime"
12PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${TCLIBC}-initial"
13PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${TCLIBC}-nativesdk"
14
15PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
16
17GCCVERSION ?= "4.5.1"
18SDKGCCVERSION ?= "4.5.1"
19BINUVERSION ?= "2.21"
20GLIBCVERSION ?= "2.10.1"
21LINUXLIBCVERSION ?= "2.6.37.2"
22
23# Temporary preferred version overrides for PPC
24PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= "2009.08"
25
26PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
27PREFERRED_VERSION_gcc-cross ?= "${GCCVERSION}"
28PREFERRED_VERSION_gcc-cross-initial ?= "${GCCVERSION}"
29PREFERRED_VERSION_gcc-cross-intermediate ?= "${GCCVERSION}"
30PREFERRED_VERSION_gcc-crosssdk ?= "${SDKGCCVERSION}"
31PREFERRED_VERSION_gcc-crosssdk-initial ?= "${SDKGCCVERSION}"
32PREFERRED_VERSION_gcc-crosssdk-intermediate ?= "${SDKGCCVERSION}"
33PREFERRED_VERSION_gcc-cross-canadian ?= "${GCCVERSION}"
34PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}"
35PREFERRED_VERSION_gcc-runtime-nativesdk ?= "${SDKGCCVERSION}"
36PREFERRED_VERSION_binutils ?= "${BINUVERSION}"
37PREFERRED_VERSION_binutils-cross ?= "${BINUVERSION}"
38PREFERRED_VERSION_binutils-crosssdk ?= "${BINUVERSION}"
39PREFERRED_VERSION_binutils-cross-canadian ?= "${BINUVERSION}"
40PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}"
41PREFERRED_VERSION_linux-libc-headers-nativesdk ?= "${LINUXLIBCVERSION}"
42PREFERRED_VERSION_glibc ?= "${GLIBCVERSION}"
43PREFERRED_VERSION_glibc-nativesdk ?= "${GLIBCVERSION}"
44PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}"
45PREFERRED_VERSION_glibc-initial-nativesdk ?= "${GLIBCVERSION}"
46PREFERRED_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
49PREFERRED_VERSION_gzip-native ?= "1.4"
50
51# Setup suitable toolchain flags
52require conf/distro/include/as-needed.inc
53TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH', d, True) in ['mips', 'mipsel', 'mips64', 'mips64el']]}"
54