41c07421fc
Fix building a toolchain installer with bitbake
-c populate_sdk in packages compiler-rt,
compiler-rt-dev and compiler-rt-staticdev.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
(cherry picked from commit fcbebdf58f)
40 lines
880 B
BlitzBasic
40 lines
880 B
BlitzBasic
SUMMARY = "Rust compiler run-time"
|
|
HOMEPAGE = "http://www.rust-lang.org"
|
|
SECTION = "devel"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362"
|
|
|
|
SRC_URI = "\
|
|
https://static.rust-lang.org/dist/rustc-${PV}-src.tar.gz;name=rust \
|
|
"
|
|
|
|
require rust-source-${PV}.inc
|
|
|
|
ALLOW_EMPTY_${PN} = "1"
|
|
|
|
# dev and staticdev should NOT depend on the binary package
|
|
RDEPENDS_${PN}-dev = ""
|
|
INSANE_SKIP_${PN}-dev = "staticdev"
|
|
|
|
S = "${WORKDIR}/rustc-${PV}/src/compiler-rt"
|
|
|
|
do_compile () {
|
|
oe_runmake -C ${S} \
|
|
ProjSrcRoot="${S}" \
|
|
ProjObjRoot="${B}" \
|
|
CC="${CC}" \
|
|
AR="${AR}" \
|
|
RANLIB="${RANLIB}" \
|
|
CFLAGS="${CFLAGS}" \
|
|
TargetTriple=${HOST_SYS} \
|
|
triple-builtins
|
|
}
|
|
|
|
do_install () {
|
|
mkdir -p ${D}${libdir}
|
|
cp triple/builtins/libcompiler_rt.a ${D}${libdir}/libcompiler-rt.a
|
|
}
|
|
|
|
FILES_${PN}-dev = ""
|
|
FILES_${PN}-staticdev = "${libdir}/*.a"
|