diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2018-05-09 20:14:55 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-22 13:13:33 +0100 |
commit | 2811907b1aefa50cb44c1509996ca8e80c6a84f4 (patch) | |
tree | 5b146fa80f658feaa397a33186cb10d8225a894f /meta | |
parent | 7ccd4a201c13a94f3af1bbf8d48ccb311e86b03b (diff) | |
download | poky-2811907b1aefa50cb44c1509996ca8e80c6a84f4.tar.gz |
bitbake.conf: make libc over-ride lower priority than _forcevariable
Fix long standing quirk, _forcevariable is documented as being the
highest priority over-ride.
(From OE-Core rev: b3598b8f1ed1cdc7849e1e4f30d618e87e1bf582)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/bitbake.conf | 3 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-baremetal.inc | 2 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-glibc.inc | 2 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-musl.inc | 2 |
4 files changed, 2 insertions, 7 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index a21b7282fb..a772cabdcf 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -735,7 +735,8 @@ DISTRO_NAME ??= "OpenEmbedded" | |||
735 | # | 735 | # |
736 | # This works for functions as well, they are really just environment variables. | 736 | # This works for functions as well, they are really just environment variables. |
737 | # Default OVERRIDES to make compilation fail fast in case of build system misconfiguration. | 737 | # Default OVERRIDES to make compilation fail fast in case of build system misconfiguration. |
738 | OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable" | 738 | OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable" |
739 | LIBCOVERRIDE ?= "" | ||
739 | CLASSOVERRIDE ?= "class-target" | 740 | CLASSOVERRIDE ?= "class-target" |
740 | DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" | 741 | DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" |
741 | MACHINEOVERRIDES ?= "${MACHINE}" | 742 | MACHINEOVERRIDES ?= "${MACHINE}" |
diff --git a/meta/conf/distro/include/tclibc-baremetal.inc b/meta/conf/distro/include/tclibc-baremetal.inc index 8d570f03f1..1bf44c8591 100644 --- a/meta/conf/distro/include/tclibc-baremetal.inc +++ b/meta/conf/distro/include/tclibc-baremetal.inc | |||
@@ -4,9 +4,7 @@ | |||
4 | 4 | ||
5 | LIBCEXTENSION = "" | 5 | LIBCEXTENSION = "" |
6 | 6 | ||
7 | # Add baremetal libc overrides to the overrides. | ||
8 | LIBCOVERRIDE = ":libc-baremetal" | 7 | LIBCOVERRIDE = ":libc-baremetal" |
9 | OVERRIDES .= "${LIBCOVERRIDE}" | ||
10 | 8 | ||
11 | ASSUME_PROVIDED += "virtual/libc virtual/libiconv virtual/crypt" | 9 | ASSUME_PROVIDED += "virtual/libc virtual/libiconv virtual/crypt" |
12 | 10 | ||
diff --git a/meta/conf/distro/include/tclibc-glibc.inc b/meta/conf/distro/include/tclibc-glibc.inc index ad8000f5de..8d1076440f 100644 --- a/meta/conf/distro/include/tclibc-glibc.inc +++ b/meta/conf/distro/include/tclibc-glibc.inc | |||
@@ -4,9 +4,7 @@ | |||
4 | 4 | ||
5 | LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION') or '') != '']}" | 5 | LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION') or '') != '']}" |
6 | 6 | ||
7 | # Add glibc overrides to the overrides for glibc. | ||
8 | LIBCOVERRIDE = ":libc-glibc" | 7 | LIBCOVERRIDE = ":libc-glibc" |
9 | OVERRIDES .= "${LIBCOVERRIDE}" | ||
10 | 8 | ||
11 | PREFERRED_PROVIDER_virtual/libiconv ?= "glibc" | 9 | PREFERRED_PROVIDER_virtual/libiconv ?= "glibc" |
12 | PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc" | 10 | PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc" |
diff --git a/meta/conf/distro/include/tclibc-musl.inc b/meta/conf/distro/include/tclibc-musl.inc index 54e1acf1df..052ae0e23b 100644 --- a/meta/conf/distro/include/tclibc-musl.inc +++ b/meta/conf/distro/include/tclibc-musl.inc | |||
@@ -4,9 +4,7 @@ | |||
4 | 4 | ||
5 | LIBCEXTENSION = "-musl" | 5 | LIBCEXTENSION = "-musl" |
6 | 6 | ||
7 | # Add musl libc overrides to the overrides. | ||
8 | LIBCOVERRIDE = ":libc-musl" | 7 | LIBCOVERRIDE = ":libc-musl" |
9 | OVERRIDES .= "${LIBCOVERRIDE}" | ||
10 | 8 | ||
11 | PREFERRED_PROVIDER_virtual/libc ?= "musl" | 9 | PREFERRED_PROVIDER_virtual/libc ?= "musl" |
12 | PREFERRED_PROVIDER_virtual/libiconv ?= "musl" | 10 | PREFERRED_PROVIDER_virtual/libiconv ?= "musl" |