summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc.inc
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-07-03 11:23:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-17 12:28:51 +0100
commit97899bc908a421295d814801ff86edeb9304d2fd (patch)
tree59e867bc29a5896cbf498f0923c5415d8daf84a6 /meta/recipes-core/eglibc/eglibc.inc
parentd418bedca5ec8b897d0309c6ff7d56b3fd071822 (diff)
downloadpoky-97899bc908a421295d814801ff86edeb9304d2fd.tar.gz
eglibc: check for required distro features
If users accidently override the DISTRO_FEATURES in local.conf, then build failures occur for lack of libc functions. All features in DISTRO_FEATURES_LIBC should be in DISTRO_FEATURES. That's why this patch let the recipe inherit distro_features_check class and set REQUIRED_DISTRO_FEATURES to "${DISTRO_FEATURES_LIBC}". [YOCTO #6381] (From OE-Core rev: 82d9d12a3364914a5c1f354671adac1f0a71eea3) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc
index 68128e9755..af7f6adefc 100644
--- a/meta/recipes-core/eglibc/eglibc.inc
+++ b/meta/recipes-core/eglibc/eglibc.inc
@@ -38,9 +38,14 @@ DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial libgcc-initial linux-libc-headers
38#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}" 38#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
39PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" 39PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
40PROVIDES += "virtual/libintl virtual/libiconv" 40PROVIDES += "virtual/libintl virtual/libiconv"
41inherit autotools texinfo 41inherit autotools texinfo distro_features_check
42require eglibc-options.inc 42require eglibc-options.inc
43 43
44# The main purpose of setting this variable is to prevent users from accidently
45# overriding DISTRO_FEATRUES, causing obscure build failures because of lack
46# of libc functions.
47REQUIRED_DISTRO_FEATURES = "${DISTRO_FEATURES_LIBC}"
48
44LEAD_SONAME = "libc.so" 49LEAD_SONAME = "libc.so"
45 50
46CACHED_CONFIGUREVARS += " \ 51CACHED_CONFIGUREVARS += " \