summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2017-01-27 14:29:10 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:19 +0000
commit2d1b0452bacb3c51adbf4c525daf36e719630b10 (patch)
tree1897c5cb1a7acf9a662493f1ab18badbb3c9de30 /meta/recipes-core
parent93633edcf84dbf5d97a43cb8d1ebff790a6ab334 (diff)
downloadpoky-2d1b0452bacb3c51adbf4c525daf36e719630b10.tar.gz
bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
USE_LDCONFIG could previously be set to 0 by distros which do not require ldconfig or ld.so.conf on the target. Since more and more recipes may need to respect that option, replace the ad-hoc variable with a distro feature. Distros which previously set: USE_LDCONFIG = "0" Should now instead use: DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " ldconfig" (From OE-Core rev: a905df2dd8f43a2febffa64a39b6e508510326a0) 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/recipes-core')
-rw-r--r--meta/recipes-core/glibc/glibc-package.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index f0fc9c1cc4..a674c23799 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
@@ -14,9 +14,6 @@ python __anonymous () {
14 d.getVar('TARGET_OS')) 14 d.getVar('TARGET_OS'))
15} 15}
16 16
17# Set this to zero if you don't want ldconfig in the output package
18USE_LDCONFIG ?= "1"
19
20INHIBIT_SYSROOT_STRIP = "1" 17INHIBIT_SYSROOT_STRIP = "1"
21 18
22PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode ${PN}-utils glibc-thread-db ${PN}-pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc" 19PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode ${PN}-utils glibc-thread-db ${PN}-pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"
@@ -37,7 +34,7 @@ libc_baselibs = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so ${ba
37libc_baselibs_append_aarch64 = " /lib/ld-linux-aarch64*.so.1" 34libc_baselibs_append_aarch64 = " /lib/ld-linux-aarch64*.so.1"
38INSANE_SKIP_${PN}_append_aarch64 = " libdir" 35INSANE_SKIP_${PN}_append_aarch64 = " libdir"
39 36
40FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig ${sysconfdir}/ld.so.conf', '', d)}" 37FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${base_sbindir}/ldconfig ${sysconfdir}/ld.so.conf"
41FILES_ldd = "${bindir}/ldd" 38FILES_ldd = "${bindir}/ldd"
42FILES_libsegfault = "${base_libdir}/libSegFault*" 39FILES_libsegfault = "${base_libdir}/libSegFault*"
43FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*" 40FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*"
@@ -96,8 +93,8 @@ do_install_append () {
96 rm -f ${D}${infodir}/dir 93 rm -f ${D}${infodir}/dir
97 fi 94 fi
98 95
99 if [ "${USE_LDCONFIG}" != "1" ]; then 96 if ! ${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', 'true', 'false', d)}; then
100 # We won't ship these files (see FILES above) so let's not install them 97 # The distro doesn't want these files so let's not install them
101 rm -f ${D}${sysconfdir}/ld.so.conf 98 rm -f ${D}${sysconfdir}/ld.so.conf
102 rm -f ${D}${base_sbindir}/ldconfig 99 rm -f ${D}${base_sbindir}/ldconfig
103 # This directory will be empty now so remove it too. 100 # This directory will be empty now so remove it too.