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 | |
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')
-rw-r--r-- | meta/conf/distro/include/tclibc-eglibc.inc (renamed from meta/conf/distro/include/poky-eglibc.inc) | 6 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-glibc.inc (renamed from meta/conf/distro/include/poky-glibc.inc) | 6 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-uclibc.inc (renamed from meta/conf/distro/include/poky-uclibc.inc) | 4 | ||||
-rw-r--r-- | meta/conf/distro/include/tcmode-default.inc (renamed from meta/conf/distro/include/poky-default.inc) | 13 |
4 files changed, 18 insertions, 11 deletions
diff --git a/meta/conf/distro/include/poky-eglibc.inc b/meta/conf/distro/include/tclibc-eglibc.inc index 3d2c362baf..16625e3bf0 100644 --- a/meta/conf/distro/include/poky-eglibc.inc +++ b/meta/conf/distro/include/tclibc-eglibc.inc | |||
@@ -2,6 +2,10 @@ | |||
2 | # eglibc specific configuration | 2 | # eglibc specific configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | TARGET_OS = "linux" | ||
6 | TARGET_OS_arm = "linux-gnueabi" | ||
7 | TARGET_OS_armeb = "linux-gnueabi" | ||
8 | |||
5 | # Add glibc overrides to the overrides for eglibc. | 9 | # Add glibc overrides to the overrides for eglibc. |
6 | OVERRIDES .= ":libc-glibc" | 10 | OVERRIDES .= ":libc-glibc" |
7 | 11 | ||
@@ -17,8 +21,6 @@ PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "eglibc-nativesdk" | |||
17 | PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "eglibc-nativesdk" | 21 | PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "eglibc-nativesdk" |
18 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initial-nativesdk" | 22 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initial-nativesdk" |
19 | 23 | ||
20 | TARGET_OS = "${GLIBCTARGETOS}" | ||
21 | |||
22 | CXXFLAGS += "-fvisibility-inlines-hidden" | 24 | CXXFLAGS += "-fvisibility-inlines-hidden" |
23 | 25 | ||
24 | LIBC_DEPENDENCIES = "libsegfault \ | 26 | LIBC_DEPENDENCIES = "libsegfault \ |
diff --git a/meta/conf/distro/include/poky-glibc.inc b/meta/conf/distro/include/tclibc-glibc.inc index 4be712271a..79da9860e8 100644 --- a/meta/conf/distro/include/poky-glibc.inc +++ b/meta/conf/distro/include/tclibc-glibc.inc | |||
@@ -2,6 +2,10 @@ | |||
2 | # glibc specific configuration | 2 | # glibc specific configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | TARGET_OS = "linux" | ||
6 | TARGET_OS_arm = "linux-gnueabi" | ||
7 | TARGET_OS_armeb = "linux-gnueabi" | ||
8 | |||
5 | # Add glibc to the overrides. | 9 | # Add glibc to the overrides. |
6 | OVERRIDES =. "libc-glibc:" | 10 | OVERRIDES =. "libc-glibc:" |
7 | 11 | ||
@@ -16,8 +20,6 @@ PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "glibc-nativesdk" | |||
16 | PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "glibc-nativesdk" | 20 | PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "glibc-nativesdk" |
17 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial-nativesdk" | 21 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial-nativesdk" |
18 | 22 | ||
19 | TARGET_OS = "${GLIBCTARGETOS}" | ||
20 | |||
21 | CXXFLAGS += "-fvisibility-inlines-hidden" | 23 | CXXFLAGS += "-fvisibility-inlines-hidden" |
22 | 24 | ||
23 | LIBC_DEPENDENCIES = "\ | 25 | LIBC_DEPENDENCIES = "\ |
diff --git a/meta/conf/distro/include/poky-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc index def9dfe447..18748fa3a3 100644 --- a/meta/conf/distro/include/poky-uclibc.inc +++ b/meta/conf/distro/include/tclibc-uclibc.inc | |||
@@ -2,6 +2,10 @@ | |||
2 | # uclibc specific configuration | 2 | # uclibc specific configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | TARGET_OS = "linux-uclibc" | ||
6 | TARGET_OS_arm = "linux-uclibceabi" | ||
7 | TARGET_OS_armeb = "linux-uclibceabi" | ||
8 | |||
5 | # Add uclibc overrides to the overrides. | 9 | # Add uclibc overrides to the overrides. |
6 | OVERRIDES =. "libc-uclibc:" | 10 | OVERRIDES =. "libc-uclibc:" |
7 | 11 | ||
diff --git a/meta/conf/distro/include/poky-default.inc b/meta/conf/distro/include/tcmode-default.inc index 91985b3afc..909d802f89 100644 --- a/meta/conf/distro/include/poky-default.inc +++ b/meta/conf/distro/include/tcmode-default.inc | |||
@@ -1,18 +1,16 @@ | |||
1 | # | 1 | # |
2 | # Poky's default configuration | 2 | # Default toolchain configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | TARGET_VENDOR = "-poky" | 5 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${TCLIBC}" |
6 | |||
7 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${POKYLIBC}" | ||
8 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross" | 6 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross" |
9 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial" | 7 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial" |
10 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate" | 8 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate" |
11 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross" | 9 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross" |
12 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross" | 10 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross" |
13 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime" | 11 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime" |
14 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${POKYLIBC}-initial" | 12 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${TCLIBC}-initial" |
15 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${POKYLIBC}-nativesdk" | 13 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${TCLIBC}-nativesdk" |
16 | 14 | ||
17 | PREFERRED_PROVIDER_virtual/gettext ??= "gettext" | 15 | PREFERRED_PROVIDER_virtual/gettext ??= "gettext" |
18 | 16 | ||
@@ -50,6 +48,7 @@ PREFERRED_VERSION_elfutils ?= "0.148" | |||
50 | # some packages using an archive format incompatible with earlier gzip | 48 | # some packages using an archive format incompatible with earlier gzip |
51 | PREFERRED_VERSION_gzip-native ?= "1.4" | 49 | PREFERRED_VERSION_gzip-native ?= "1.4" |
52 | 50 | ||
51 | # Setup suitable toolchain flags | ||
53 | require conf/distro/include/as-needed.inc | 52 | require conf/distro/include/as-needed.inc |
54 | 53 | TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH', d, True) in ['mips', 'mipsel', 'mips64', 'mips64el']]}" | |
55 | 54 | ||