summaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-26 12:32:52 -0700
committerKhem Raj <raj.khem@gmail.com>2018-09-09 07:59:31 -0700
commit09f0594990d70570faab941f75b59bc8cbd30508 (patch)
tree502a04cbeb882b872b82d52b89336fbf2a3c510b /recipes-devtools
parent42597ed9330435778e451d788b9019dabea5b0aa (diff)
downloadmeta-clang-09f0594990d70570faab941f75b59bc8cbd30508.tar.gz
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 <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/clang/compiler-rt_git.bb7
1 files 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() {
65 65
66 66
67do_install_append () { 67do_install_append () {
68 install -d ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux
69 if [ -d ${D}${libdir}/linux ]; then 68 if [ -d ${D}${libdir}/linux ]; then
70 for f in `find ${D}${libdir}/linux -maxdepth 1 -type f` 69 for f in `find ${D}${libdir}/linux -maxdepth 1 -type f`
71 do 70 do
72 mv $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux 71 install -D -m 0644 $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/`basename $f`
72 rm $f
73 done 73 done
74 rmdir ${D}${libdir}/linux 74 rmdir ${D}${libdir}/linux
75 fi 75 fi
76 for f in `find ${D}${exec_prefix} -maxdepth 1 -name '*.txt' -type f` 76 for f in `find ${D}${exec_prefix} -maxdepth 1 -name '*.txt' -type f`
77 do 77 do
78 mv $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER} 78 install -D -m 0644 $f ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/`basename $f`
79 rm $f
79 done 80 done
80} 81}
81 82