From d30bffae49cdabc777d62e87b56ddbcbc79acf06 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 26 Aug 2018 12:32:52 -0700 Subject: compiler-rt: Create lib/linux only if there is content to move to it Fixes builds where there are no files inside ${D}${libdir}/linux but the empty dir is still created Signed-off-by: Khem Raj --- recipes-devtools/clang/compiler-rt_git.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index bac47d7..3c98d34 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb @@ -65,17 +65,18 @@ do_install() { do_install_append () { - install -d ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux if [ -d ${D}${libdir}/linux ]; then for f in `find ${D}${libdir}/linux -maxdepth 1 -type f` do - mv $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux + install -D -m 0644 $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/`basename $f` + rm $f done rmdir ${D}${libdir}/linux fi for f in `find ${D}${exec_prefix} -maxdepth 1 -name '*.txt' -type f` do - mv $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER} + install -D -m 0644 $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/`basename $f` + rm $f done } -- cgit v1.2.3-54-g00ecf