Disable gcc-rs hack, fixup rust-native deps
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
inherit native
|
||||
PN = "rust-native"
|
||||
|
||||
# Otherwise we'll depend on what we provide
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
# We don't need to depend on gcc-native because yocto assumes it exists
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}rust"
|
||||
|
||||
USE_LOCAL_NATIVE_RUST ??= "0"
|
||||
USE_LOCAL_RUST = "${@base_conditional('USE_LOCAL_NATIVE_RUST', '0', '0', '1', d)}"
|
||||
|
||||
@@ -10,6 +10,8 @@ def rust_base_dep(d):
|
||||
if not d.getVar('INHIBIT_DEFAULT_DEPS'):
|
||||
if (d.getVar('HOST_SYS', True) != d.getVar('BUILD_SYS', True)):
|
||||
deps += " virtual/${TARGET_PREFIX}rust"
|
||||
else:
|
||||
deps += " rust-native"
|
||||
return deps
|
||||
|
||||
BASEDEPENDS_append = " ${@rust_base_dep(d)}"
|
||||
|
||||
Reference in New Issue
Block a user