From ddd87efb3b9e9535dc02b26571f5625eada7889a Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Mon, 3 Aug 2020 20:27:17 +0500 Subject: [PATCH] libgcc-external: avoid blowing up for a non-external tcmode Signed-off-by: Christopher Larson --- recipes-external/gcc/libgcc-external.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-external/gcc/libgcc-external.bb b/recipes-external/gcc/libgcc-external.bb index bdbe62d..23959cb 100644 --- a/recipes-external/gcc/libgcc-external.bb +++ b/recipes-external/gcc/libgcc-external.bb @@ -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()