glibc-external-version.inc 410 B

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