06a138a4a4
We shouldn't need to patch rustc to find the target but instead pass the full path to the target spec. This should solve #138.
18 lines
476 B
BlitzBasic
18 lines
476 B
BlitzBasic
require rust.inc
|
|
require rust-source-${PV}.inc
|
|
|
|
EXTRA_OECONF = "--disable-rustbuild"
|
|
|
|
SRC_URI += " \
|
|
file://rust-${PV}/0003-std-thread_local-workaround-for-NULL-__dso_handle.patch \
|
|
"
|
|
|
|
DEPENDS += "rust-llvm (=${PV})"
|
|
|
|
# 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"
|