diff --git a/recipes-devtools/rust/rust-target.inc b/recipes-devtools/rust/rust-target.inc new file mode 100644 index 0000000..0a5b127 --- /dev/null +++ b/recipes-devtools/rust/rust-target.inc @@ -0,0 +1,10 @@ +require rust.inc + +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" diff --git a/recipes-devtools/rust/rust_1.34.2.bb b/recipes-devtools/rust/rust_1.34.2.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.34.2.bb +++ b/recipes-devtools/rust/rust_1.34.2.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.36.0.bb b/recipes-devtools/rust/rust_1.36.0.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.36.0.bb +++ b/recipes-devtools/rust/rust_1.36.0.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.37.0.bb b/recipes-devtools/rust/rust_1.37.0.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.37.0.bb +++ b/recipes-devtools/rust/rust_1.37.0.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.39.0.bb b/recipes-devtools/rust/rust_1.39.0.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.39.0.bb +++ b/recipes-devtools/rust/rust_1.39.0.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.40.0.bb b/recipes-devtools/rust/rust_1.40.0.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.40.0.bb +++ b/recipes-devtools/rust/rust_1.40.0.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.41.0.bb b/recipes-devtools/rust/rust_1.41.0.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.41.0.bb +++ b/recipes-devtools/rust/rust_1.41.0.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.43.0.bb b/recipes-devtools/rust/rust_1.43.0.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.43.0.bb +++ b/recipes-devtools/rust/rust_1.43.0.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.46.0.bb b/recipes-devtools/rust/rust_1.46.0.bb index c7f9f4f..fe094e4 100644 --- a/recipes-devtools/rust/rust_1.46.0.bb +++ b/recipes-devtools/rust/rust_1.46.0.bb @@ -1,12 +1,3 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc - -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" diff --git a/recipes-devtools/rust/rust_1.47.0.bb b/recipes-devtools/rust/rust_1.47.0.bb index 509f2b8..894f715 100644 --- a/recipes-devtools/rust/rust_1.47.0.bb +++ b/recipes-devtools/rust/rust_1.47.0.bb @@ -1,18 +1,9 @@ -require rust.inc +require rust-target.inc require rust-source-${PV}.inc require rust-snapshot-${PV}.inc -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" - # The default behaviour of x.py changed in 1.47+ so now we need to # explicitly ask for the stage 2 compiler to be assembled. do_compile () { rust_runx build --stage 2 src/rustc } - -BBCLASSEXTEND = "native"