7f7b3cd652
Convert rust to not use the shared source setup and instead use its own extracted directory. Include the version info in the bitbake file so that in the future we can support multiple versions via a PREFERRED_VERSIONS variable.
30 lines
1.4 KiB
BlitzBasic
30 lines
1.4 KiB
BlitzBasic
inherit rust-installer
|
|
require rust.inc
|
|
|
|
SRC_URI += " \
|
|
file://rust/0001-Add-config-for-musl-based-arm-builds.patch \
|
|
file://rust/0002-Target-add-default-target.json-path-libdir-rust-targ.patch \
|
|
file://rust/0003-mk-for-stage0-use-RUSTFLAGS-to-override-target-libs-.patch \
|
|
file://rust/0004-mk-add-missing-CFG_LIBDIR_RELATIVE.patch \
|
|
file://rust/0005-configure-support-bindir-and-extend-libdir-to-non-bl.patch \
|
|
file://rust/0006-std-thread_local-workaround-for-NULL-__dso_handle.patch \
|
|
file://rust/0007-mk-install-use-disable-rewrite-paths.patch \
|
|
file://rust/0008-Allow-overriding-crate_hash-with-C-crate_hash.patch \
|
|
file://rust/0009-mk-platform.mk-pass-C-crate_hash-to-builds.patch \
|
|
file://rust/0010-mk-allow-changing-the-platform-configuration-source-.patch \
|
|
file://rust/0011-Get-rid-of-the-.note-interpretation-of-rustc-dylib-m.patch \
|
|
file://rust-installer/0001-add-option-to-disable-rewriting-of-install-paths.patch;patchdir=src/rust-installer \
|
|
"
|
|
|
|
SRC_URI[rust.md5sum] = "a48fef30353fc9daa70b484b690ce5db"
|
|
SRC_URI[rust.sha256sum] = "a4015aacf4f6d8a8239253c4da46e7abaa8584f8214d1828d2ff0a8f56176869"
|
|
|
|
DEPENDS += "rust-llvm"
|
|
|
|
# Otherwise we'll depend on what we provide
|
|
INHIBIT_DEFAULT_RUST_DEPS_class-native = "1"
|
|
# We don't need to depend on gcc-native because yocto assumes it exists
|
|
PROVIDES_class-native = "virtual/${TARGET_PREFIX}rust"
|
|
|
|
BBCLASSEXTEND = "native"
|