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:
@@ -1,9 +1,3 @@
|
|||||||
require rust-llvm.inc
|
require rust-llvm.inc
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa"
|
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa"
|
||||||
|
|
||||||
do_install_append () {
|
|
||||||
cd "${B}"
|
|
||||||
install -d "${D}${bindir}"
|
|
||||||
install -m755 "Release/bin/FileCheck" "${D}${bindir}"
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -27,11 +27,11 @@ do_install_append () {
|
|||||||
# Remove the debug info (>2 GB) as part of normal operation
|
# Remove the debug info (>2 GB) as part of normal operation
|
||||||
rm -rf ${D}${bindir}/.debug
|
rm -rf ${D}${bindir}/.debug
|
||||||
|
|
||||||
cd ${D}${bindir}
|
cd ${D}${bindir} || bbfatal "failed to cd ${D}${bindir}"
|
||||||
ln -s *-llc llc
|
ln -s *-llc llc
|
||||||
for i in *-llvm-*; do
|
for i in *-llvm-* *-llc *-lli *-FileCheck; do
|
||||||
link=$(echo $i | sed -e 's/.*-llvm-\(.*\)/\1/')
|
link=$(echo $i | sed -e "s/${TARGET_SYS}-\(.*\)/\1/")
|
||||||
ln -sf $i llvm-$link
|
ln -sf "$i" "${link}" || bbfatal "failed to symlink ${link}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user