rust-llvm: combine do_install_append()

There were two different do_install_append()'s and they didn't check for
errors so this improves that situation.
This commit is contained in:
Doug Goldstein
2016-04-04 16:28:50 -05:00
parent e77fbb7f08
commit 6db046c19d
2 changed files with 5 additions and 11 deletions

View File

@@ -33,11 +33,11 @@ do_install_append () {
# Remove the debug info (>2 GB) as part of normal operation
rm -rf ${D}${bindir}/.debug
cd ${D}${bindir}
ln -s *-llc llc
for i in *-llvm-*; do
link=$(echo $i | sed -e 's/.*-llvm-\(.*\)/\1/')
ln -sf $i llvm-$link
cd ${D}${bindir} || bbfatal "failed to cd ${D}${bindir}"
for i in *-llvm-* *-llc *-lli *-FileCheck; do
link=$(echo $i | sed -e "s/${TARGET_SYS}-\(.*\)/\1/")
[ -e "${i}" ] || bbfatal "no such file to symlink to ${i}"
ln -sf "$i" "${link}" || bbfatal "failed to symlink ${link} to ${i}"
done
}

View File

@@ -2,9 +2,3 @@ require rust-llvm.inc
SRC_URI[rust.md5sum] = "a48fef30353fc9daa70b484b690ce5db"
SRC_URI[rust.sha256sum] = "a4015aacf4f6d8a8239253c4da46e7abaa8584f8214d1828d2ff0a8f56176869"
do_install_append () {
cd "${B}"
install -d "${D}${bindir}"
install -m755 "Release/bin/FileCheck" "${D}${bindir}"
}