mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-06-21 08:52:27 +02:00
glibc-external-version.inc: skip version for non-external builds
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
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]
|
||||
if (d.getVar('TCMODE', True).startswith('external') and
|
||||
d.getVar('EXTERNAL_TOOLCHAIN', True)):
|
||||
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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user