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)
32 lines
754 B
BlitzBasic
32 lines
754 B
BlitzBasic
SUMMARY = "Rust compiler run-time"
|
|
HOMEPAGE = "http://www.rust-lang.org"
|
|
SECTION = "devel"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://src/compiler-rt/LICENSE.TXT;md5=bf24bca27049b52e9738451aa55771d4"
|
|
|
|
require rust.inc
|
|
require rust-source-${PV}.inc
|
|
ALLOW_EMPTY_${PN} = "1"
|
|
|
|
DEPENDS += "rust-llvm-native (=${PV})"
|
|
# dev and staticdev should NOT depend on the binary package
|
|
RDEPENDS_${PN}-dev = ""
|
|
INSANE_SKIP_${PN}-dev = "staticdev"
|
|
|
|
S = "${WORKDIR}/rustc-${PV}"
|
|
|
|
DISABLE_STATIC = ""
|
|
INHIBIT_DEFAULT_RUST_DEPS = "1"
|
|
|
|
do_compile () {
|
|
oe_runmake ${TARGET_SYS}/rt/libcompiler-rt.a
|
|
}
|
|
|
|
do_install () {
|
|
mkdir -p ${D}${libdir}
|
|
cp ${TARGET_SYS}/rt/libcompiler-rt.a ${D}${libdir}/libcompiler-rt.a
|
|
}
|
|
|
|
FILES_${PN}-dev = ""
|
|
FILES_${PN}-staticdev = "${libdir}/*.a"
|