libgcc-external: avoid blowing up for a non-external tcmode

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2020-08-03 20:27:17 +05:00
parent 01653f3c09
commit ddd87efb3b

View File

@@ -31,11 +31,17 @@ FILES_${PN}-dbg += "${base_libdir}/.debug/libgcc_s.so.*.debug"
# Follow any symlinks in the libroot (multilib build) to the main
# libroot and include any symlinks there that link to our libroot.
python add_ml_symlink () {
pass
}
python add_ml_symlink_tcmode-external () {
import pathlib
def get_links(p):
return (c for c in p.iterdir() if c.is_symlink())
if not d.getVar('EXTERNAL_TOOLCHAIN'):
return
libroot = d.getVar('EXTERNAL_TOOLCHAIN_LIBROOT')
if libroot != 'UNKNOWN':
sysroot = pathlib.Path(d.getVar('EXTERNAL_TOOLCHAIN_SYSROOT')).resolve()