Files
meta-external-toolchain/recipes-external/glibc/glibc-external-version.inc
Christopher Larson 7ea84d1f97 glibc-{mtrace,scripts,locale}: align PV with glibc-external
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-07-29 13:10:53 -07:00

13 lines
394 B
PHP

def get_external_libc_version(d):
sopattern = os.path.join(d.getVar('base_libdir', True), 'libc-*.so')
found_paths = oe.external.find_sysroot_files([sopattern], d)
if found_paths:
so_paths = found_paths[0]
if so_paths:
soname = os.path.basename(so_paths[0])
return soname[5:-3]
return 'UNKNOWN'
PV := "${@get_external_libc_version(d)}"