mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
rust-cross: Add rust-crosssdk variant for nativesdk use
Allow nativesdk recipes to find a correct version of the rust cross compiler. (From OE-Core rev: 0f5d26772abfbbae9096fa43901d8620f76aea3c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -691,6 +691,7 @@ RECIPE_MAINTAINER:pn-ruby = "Ross Burton <ross.burton@arm.com>"
|
|||||||
RECIPE_MAINTAINER:pn-run-postinsts = "Ross Burton <ross.burton@arm.com>"
|
RECIPE_MAINTAINER:pn-run-postinsts = "Ross Burton <ross.burton@arm.com>"
|
||||||
RECIPE_MAINTAINER:pn-rust = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
RECIPE_MAINTAINER:pn-rust = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||||
RECIPE_MAINTAINER:pn-rust-cross-${TUNE_PKGARCH}-${TCLIBC} = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
RECIPE_MAINTAINER:pn-rust-cross-${TUNE_PKGARCH}-${TCLIBC} = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||||
|
RECIPE_MAINTAINER:pn-rust-crosssdk-${SDK_ARCH}-glibc = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||||
RECIPE_MAINTAINER:pn-rust-cross-canadian-${TRANSLATED_TARGET_ARCH} = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
RECIPE_MAINTAINER:pn-rust-cross-canadian-${TRANSLATED_TARGET_ARCH} = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||||
RECIPE_MAINTAINER:pn-rust-hello-world = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
RECIPE_MAINTAINER:pn-rust-hello-world = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||||
RECIPE_MAINTAINER:pn-rust-llvm = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
RECIPE_MAINTAINER:pn-rust-llvm = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
require rust.inc
|
|
||||||
inherit cross
|
|
||||||
|
|
||||||
python do_rust_gen_targets () {
|
python do_rust_gen_targets () {
|
||||||
wd = d.getVar('WORKDIR') + '/targets/'
|
wd = d.getVar('WORKDIR') + '/targets/'
|
||||||
# It is important 'TARGET' is last here so that it overrides our less
|
# It is important 'TARGET' is last here so that it overrides our less
|
||||||
@@ -30,12 +27,8 @@ INHIBIT_DEFAULT_RUST_DEPS = "1"
|
|||||||
# so it might make sense to take it's mapping. For now, though, we just mention
|
# so it might make sense to take it's mapping. For now, though, we just mention
|
||||||
# the bits we need explicitly.
|
# the bits we need explicitly.
|
||||||
DEPENDS += "rust-llvm-native"
|
DEPENDS += "rust-llvm-native"
|
||||||
DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc"
|
|
||||||
DEPENDS += "rust-native"
|
DEPENDS += "rust-native"
|
||||||
|
|
||||||
PROVIDES = "virtual/${TARGET_PREFIX}rust"
|
|
||||||
PN = "rust-cross-${TUNE_PKGARCH}-${TCLIBC}"
|
|
||||||
|
|
||||||
# In the cross compilation case, rustc doesn't seem to get the rpath quite
|
# In the cross compilation case, rustc doesn't seem to get the rpath quite
|
||||||
# right. It manages to include '../../lib/${TARGET_PREFIX}', but doesn't
|
# right. It manages to include '../../lib/${TARGET_PREFIX}', but doesn't
|
||||||
# include the '../../lib' (ie: relative path from cross_bindir to normal
|
# include the '../../lib' (ie: relative path from cross_bindir to normal
|
||||||
|
|||||||
@@ -1,2 +1,8 @@
|
|||||||
|
require rust.inc
|
||||||
|
inherit cross
|
||||||
require rust-cross.inc
|
require rust-cross.inc
|
||||||
require rust-source.inc
|
require rust-source.inc
|
||||||
|
|
||||||
|
DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc"
|
||||||
|
PROVIDES = "virtual/${TARGET_PREFIX}rust"
|
||||||
|
PN = "rust-cross-${TUNE_PKGARCH}-${TCLIBC}"
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
require rust.inc
|
||||||
|
inherit crosssdk
|
||||||
|
require rust-cross.inc
|
||||||
|
require rust-source.inc
|
||||||
|
|
||||||
|
DEPENDS += "virtual/${TARGET_PREFIX}gcc-crosssdk virtual/nativesdk-${TARGET_PREFIX}compilerlibs virtual/nativesdk-libc"
|
||||||
|
PROVIDES = "virtual/nativesdk-${TARGET_PREFIX}rust"
|
||||||
|
PN = "rust-crosssdk-${TUNE_PKGARCH}-${TCLIBC}"
|
||||||
Reference in New Issue
Block a user