From a905df2dd8f43a2febffa64a39b6e508510326a0 Mon Sep 17 00:00:00 2001 From: Andre McCurdy Date: Fri, 27 Jan 2017 14:29:10 -0800 Subject: 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" Signed-off-by: Andre McCurdy Signed-off-by: Ross Burton --- meta/classes/package.bbclass | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'meta/classes') diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index ac2d71cfa4..d5c2d82bc8 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1618,10 +1618,7 @@ python package_do_shlibs() { else: snap_symlinks = False - if (d.getVar('USE_LDCONFIG') or "1") == "1": - use_ldconfig = True - else: - use_ldconfig = False + use_ldconfig = bb.utils.contains('DISTRO_FEATURES', 'ldconfig', True, False, d) needed = {} shlib_provider = oe.package.read_shlib_providers(d) -- cgit 1.2.3-korg