diff options
-rw-r--r-- | meta-yocto/conf/distro/poky.conf | 33 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 4 | ||||
-rw-r--r-- | meta/conf/distro/defaultsetup.conf | 23 | ||||
-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 | ||
7 | MAINTAINER = "Poky <poky@yoctoproject.org>" | 7 | MAINTAINER = "Poky <poky@yoctoproject.org>" |
8 | 8 | ||
9 | USER_CLASSES ?= "" | 9 | TARGET_VENDOR = "-poky" |
10 | |||
11 | PACKAGE_CLASSES ?= "package_ipk" | ||
12 | INHERIT_INSANE ?= "insane" | ||
13 | INHERIT += "${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 | ||
18 | TARGET_OS = "linux" | ||
19 | TARGET_FPU_arm ?= "soft" | ||
20 | TARGET_FPU_armeb ?= "soft" | ||
21 | TARGET_FPU_nokia800 = "hard" | ||
22 | |||
23 | TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH', d, True) in ['mips', 'mipsel', 'mips64', 'mips64el']]}" | ||
24 | 10 | ||
25 | QA_LOGFILE = "${TMPDIR}/qa.log" | 11 | QA_LOGFILE = "${TMPDIR}/qa.log" |
26 | 12 | ||
@@ -31,28 +17,13 @@ LOCALCONF_VERSION = "1" | |||
31 | OEINCLUDELOGS = "yes" | 17 | OEINCLUDELOGS = "yes" |
32 | KERNEL_CONSOLE = "ttyS0" | 18 | KERNEL_CONSOLE = "ttyS0" |
33 | 19 | ||
34 | # Default to TARGETOS values for EABI on arm | 20 | SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${TARGET_ARCH}" |
35 | GLIBCTARGETOS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb']]}" | ||
36 | UCLIBCTARGETOS = "linux${@['-uclibc','-uclibceabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb']]}" | ||
37 | |||
38 | POKYMODE ?= "default" | ||
39 | require conf/distro/include/poky-${POKYMODE}.inc | ||
40 | |||
41 | POKYLIBC ?= "eglibc" | ||
42 | require conf/distro/include/poky-${POKYLIBC}.inc | ||
43 | |||
44 | SDK_NAME = "${DISTRO}-${POKYLIBC}-${SDK_ARCH}-${TARGET_ARCH}" | ||
45 | SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}" | 21 | SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}" |
46 | 22 | ||
47 | CACHE = "${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 | |||
50 | require conf/distro/include/preferred-xorg-versions.inc | 23 | require conf/distro/include/preferred-xorg-versions.inc |
51 | 24 | ||
52 | PCMCIA_MANAGER ?= "pcmciautils" | 25 | PCMCIA_MANAGER ?= "pcmciautils" |
53 | 26 | ||
54 | #IMAGE_LINGUAS ?= "en-gb en-us" | ||
55 | #LIMIT_BUILT_LOCALES ?= "en_GB en_US" | ||
56 | IMAGE_LINGUAS ?= "en-us en-gb" | 27 | IMAGE_LINGUAS ?= "en-us en-gb" |
57 | LIMIT_BUILT_LOCALES ?= "POSIX en_US en_GB" | 28 | LIMIT_BUILT_LOCALES ?= "POSIX en_US en_GB" |
58 | ENABLE_BINARY_LOCALE_GENERATION ?= "1" | 29 | ENABLE_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 | |||
627 | include conf/target/${TARGET_SYS}.conf | 627 | include conf/target/${TARGET_SYS}.conf |
628 | include conf/machine/${MACHINE}.conf | 628 | include conf/machine/${MACHINE}.conf |
629 | include conf/machine-sdk/${SDKMACHINE}.conf | 629 | include conf/machine-sdk/${SDKMACHINE}.conf |
630 | include conf/distro/include/default-providers.inc | ||
631 | include conf/distro/include/default-versions.inc | ||
632 | include conf/distro/include/world-broken.inc | ||
633 | include conf/distro/${DISTRO}.conf | 630 | include conf/distro/${DISTRO}.conf |
631 | include conf/distro/defaultsetup.conf | ||
634 | include conf/documentation.conf | 632 | include conf/documentation.conf |
635 | require conf/sanity.conf | 633 | require conf/sanity.conf |
636 | require conf/abi_version.conf | 634 | require 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 @@ | |||
1 | include conf/distro/include/default-providers.inc | ||
2 | include conf/distro/include/default-versions.inc | ||
3 | include conf/distro/include/world-broken.inc | ||
4 | |||
5 | TARGET_VENDOR ?= "-oecore" | ||
6 | |||
7 | TARGET_FPU_arm ?= "soft" | ||
8 | TARGET_FPU_armeb ?= "soft" | ||
9 | |||
10 | TCMODE ?= "default" | ||
11 | require conf/distro/include/tcmode-${TCMODE}.inc | ||
12 | |||
13 | TCLIBC ?= "eglibc" | ||
14 | require conf/distro/include/tclibc-${TCLIBC}.inc | ||
15 | |||
16 | CACHE = "${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 | |||
18 | USER_CLASSES ?= "" | ||
19 | PACKAGE_CLASSES ?= "package_ipk" | ||
20 | INHERIT_INSANE ?= "insane" | ||
21 | INHERIT_DISTRO ?= "debian devshell sstate license" | ||
22 | INHERIT += "${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 | ||
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 | ||