summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--meta-yocto/conf/distro/poky.conf33
-rw-r--r--meta/conf/bitbake.conf4
-rw-r--r--meta/conf/distro/defaultsetup.conf23
-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
7 files changed, 44 insertions, 45 deletions
diff --git a/meta-yocto/conf/distro/poky.conf b/meta-yocto/conf/distro/poky.conf
index 9680746e64..f13a67f393 100644
--- a/meta-yocto/conf/distro/poky.conf
+++ b/meta-yocto/conf/distro/poky.conf
@@ -6,21 +6,7 @@ SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
6 6
7MAINTAINER = "Poky <poky@yoctoproject.org>" 7MAINTAINER = "Poky <poky@yoctoproject.org>"
8 8
9USER_CLASSES ?= "" 9TARGET_VENDOR = "-poky"
10
11PACKAGE_CLASSES ?= "package_ipk"
12INHERIT_INSANE ?= "insane"
13INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} debian devshell ${INHERIT_INSANE} sstate license"
14# For some reason, this doesn't work
15# TARGET_OS ?= "linux"
16# TARGET_VENDOR ?= "-poky"
17# Set by POKYMODE instead
18TARGET_OS = "linux"
19TARGET_FPU_arm ?= "soft"
20TARGET_FPU_armeb ?= "soft"
21TARGET_FPU_nokia800 = "hard"
22
23TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH', d, True) in ['mips', 'mipsel', 'mips64', 'mips64el']]}"
24 10
25QA_LOGFILE = "${TMPDIR}/qa.log" 11QA_LOGFILE = "${TMPDIR}/qa.log"
26 12
@@ -31,28 +17,13 @@ LOCALCONF_VERSION = "1"
31OEINCLUDELOGS = "yes" 17OEINCLUDELOGS = "yes"
32KERNEL_CONSOLE = "ttyS0" 18KERNEL_CONSOLE = "ttyS0"
33 19
34# Default to TARGETOS values for EABI on arm 20SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${TARGET_ARCH}"
35GLIBCTARGETOS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb']]}"
36UCLIBCTARGETOS = "linux${@['-uclibc','-uclibceabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb']]}"
37
38POKYMODE ?= "default"
39require conf/distro/include/poky-${POKYMODE}.inc
40
41POKYLIBC ?= "eglibc"
42require conf/distro/include/poky-${POKYLIBC}.inc
43
44SDK_NAME = "${DISTRO}-${POKYLIBC}-${SDK_ARCH}-${TARGET_ARCH}"
45SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}" 21SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
46 22
47CACHE = "${TMPDIR}/cache/${POKYMODE}-${POKYLIBC}${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}${@['', '/' + str(bb.data.getVar('SDKMACHINE', d, 1))][bool(bb.data.getVar('SDKMACHINE', d, 1))]}"
48
49
50require conf/distro/include/preferred-xorg-versions.inc 23require conf/distro/include/preferred-xorg-versions.inc
51 24
52PCMCIA_MANAGER ?= "pcmciautils" 25PCMCIA_MANAGER ?= "pcmciautils"
53 26
54#IMAGE_LINGUAS ?= "en-gb en-us"
55#LIMIT_BUILT_LOCALES ?= "en_GB en_US"
56IMAGE_LINGUAS ?= "en-us en-gb" 27IMAGE_LINGUAS ?= "en-us en-gb"
57LIMIT_BUILT_LOCALES ?= "POSIX en_US en_GB" 28LIMIT_BUILT_LOCALES ?= "POSIX en_US en_GB"
58ENABLE_BINARY_LOCALE_GENERATION ?= "1" 29ENABLE_BINARY_LOCALE_GENERATION ?= "1"
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index d843e705fd..d7c430a1e4 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -627,10 +627,8 @@ include conf/build/${BUILD_SYS}.conf
627include conf/target/${TARGET_SYS}.conf 627include conf/target/${TARGET_SYS}.conf
628include conf/machine/${MACHINE}.conf 628include conf/machine/${MACHINE}.conf
629include conf/machine-sdk/${SDKMACHINE}.conf 629include conf/machine-sdk/${SDKMACHINE}.conf
630include conf/distro/include/default-providers.inc
631include conf/distro/include/default-versions.inc
632include conf/distro/include/world-broken.inc
633include conf/distro/${DISTRO}.conf 630include conf/distro/${DISTRO}.conf
631include conf/distro/defaultsetup.conf
634include conf/documentation.conf 632include conf/documentation.conf
635require conf/sanity.conf 633require conf/sanity.conf
636require conf/abi_version.conf 634require conf/abi_version.conf
diff --git a/meta/conf/distro/defaultsetup.conf b/meta/conf/distro/defaultsetup.conf
new file mode 100644
index 0000000000..af5ef7b5a0
--- /dev/null
+++ b/meta/conf/distro/defaultsetup.conf
@@ -0,0 +1,23 @@
1include conf/distro/include/default-providers.inc
2include conf/distro/include/default-versions.inc
3include conf/distro/include/world-broken.inc
4
5TARGET_VENDOR ?= "-oecore"
6
7TARGET_FPU_arm ?= "soft"
8TARGET_FPU_armeb ?= "soft"
9
10TCMODE ?= "default"
11require conf/distro/include/tcmode-${TCMODE}.inc
12
13TCLIBC ?= "eglibc"
14require conf/distro/include/tclibc-${TCLIBC}.inc
15
16CACHE = "${TMPDIR}/cache/${TCMODE}-${TCLIBC}${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}${@['', '/' + str(bb.data.getVar('SDKMACHINE', d, 1))][bool(bb.data.getVar('SDKMACHINE', d, 1))]}"
17
18USER_CLASSES ?= ""
19PACKAGE_CLASSES ?= "package_ipk"
20INHERIT_INSANE ?= "insane"
21INHERIT_DISTRO ?= "debian devshell sstate license"
22INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_INSANE} ${INHERIT_DISTRO}"
23
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
5TARGET_OS = "linux"
6TARGET_OS_arm = "linux-gnueabi"
7TARGET_OS_armeb = "linux-gnueabi"
8
5# Add glibc overrides to the overrides for eglibc. 9# Add glibc overrides to the overrides for eglibc.
6OVERRIDES .= ":libc-glibc" 10OVERRIDES .= ":libc-glibc"
7 11
@@ -17,8 +21,6 @@ PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "eglibc-nativesdk"
17PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "eglibc-nativesdk" 21PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "eglibc-nativesdk"
18PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initial-nativesdk" 22PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initial-nativesdk"
19 23
20TARGET_OS = "${GLIBCTARGETOS}"
21
22CXXFLAGS += "-fvisibility-inlines-hidden" 24CXXFLAGS += "-fvisibility-inlines-hidden"
23 25
24LIBC_DEPENDENCIES = "libsegfault \ 26LIBC_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
5TARGET_OS = "linux"
6TARGET_OS_arm = "linux-gnueabi"
7TARGET_OS_armeb = "linux-gnueabi"
8
5# Add glibc to the overrides. 9# Add glibc to the overrides.
6OVERRIDES =. "libc-glibc:" 10OVERRIDES =. "libc-glibc:"
7 11
@@ -16,8 +20,6 @@ PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "glibc-nativesdk"
16PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "glibc-nativesdk" 20PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "glibc-nativesdk"
17PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial-nativesdk" 21PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial-nativesdk"
18 22
19TARGET_OS = "${GLIBCTARGETOS}"
20
21CXXFLAGS += "-fvisibility-inlines-hidden" 23CXXFLAGS += "-fvisibility-inlines-hidden"
22 24
23LIBC_DEPENDENCIES = "\ 25LIBC_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
5TARGET_OS = "linux-uclibc"
6TARGET_OS_arm = "linux-uclibceabi"
7TARGET_OS_armeb = "linux-uclibceabi"
8
5# Add uclibc overrides to the overrides. 9# Add uclibc overrides to the overrides.
6OVERRIDES =. "libc-uclibc:" 10OVERRIDES =. "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
5TARGET_VENDOR = "-poky" 5PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${TCLIBC}"
6
7PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "${POKYLIBC}"
8PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross" 6PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
9PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial" 7PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial"
10PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate" 8PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate"
11PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross" 9PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross"
12PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross" 10PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross"
13PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime" 11PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime"
14PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${POKYLIBC}-initial" 12PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${TCLIBC}-initial"
15PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${POKYLIBC}-nativesdk" 13PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${TCLIBC}-nativesdk"
16 14
17PREFERRED_PROVIDER_virtual/gettext ??= "gettext" 15PREFERRED_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
51PREFERRED_VERSION_gzip-native ?= "1.4" 49PREFERRED_VERSION_gzip-native ?= "1.4"
52 50
51# Setup suitable toolchain flags
53require conf/distro/include/as-needed.inc 52require conf/distro/include/as-needed.inc
54 53TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH', d, True) in ['mips', 'mipsel', 'mips64', 'mips64el']]}"
55 54