]> code.ossystems Code Review - openembedded-core.git/commitdiff
libgcc: Create linux-musleabihf and linux-gnueabihf symlinks
authorKhem Raj <raj.khem@gmail.com>
Thu, 4 Apr 2019 05:49:32 +0000 (22:49 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Apr 2019 06:58:02 +0000 (07:58 +0100)
When we have hard-float ABI enabled, certain tools e.g. llvm/clang
expects the hf version of tuples for crt files from libgcc, therefore
create a symlink to help the cause.

This makes clang work with hard-float defaults on target

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/libgcc.inc

index e4e0c4800768fc43540f5090aaf1e207c8821aaa..e008d14f361d60f3eeecef52404b798515c86791 100644 (file)
@@ -11,6 +11,13 @@ do_install_append_class-target () {
                esac
                ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os
        fi
+       if [ -n "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" ]; then
+               case "${TARGET_OS}" in
+                       "linux-musleabi") extra_target_os="linux-musleabihf";;
+                       "linux-gnueabi") extra_target_os="linux-gnueabihf";;
+               esac
+               ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os
+       fi
 }
 
 PACKAGES = "\