glibc-external-version.inc 549 B

1234567891011121314
  1. def get_external_libc_version(d):
  2. if (d.getVar('TCMODE', True).startswith('external') and
  3. d.getVar('EXTERNAL_TOOLCHAIN', True)):
  4. sopattern = os.path.join(d.getVar('base_libdir', True), 'libc-*.so')
  5. found_paths = oe.external.find_sysroot_files([sopattern], d)
  6. if found_paths:
  7. so_paths = found_paths[0]
  8. if so_paths:
  9. soname = os.path.basename(so_paths[0])
  10. return soname[5:-3]
  11. return 'UNKNOWN'
  12. PV:tcmode-external := "${@get_external_libc_version(d)}"