From e75e781a480d37898e8e38dc993dd8daf0dee8b3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 23 Jul 2022 13:48:24 +0100 Subject: rust-target-config: Allow the targets generated to be configurable Remove further code duplication by allowing the main function to be configurable. (From OE-Core rev: 2d4b35a0db1220e7a7f1b6776223aa4d40a3f246) Signed-off-by: Richard Purdie --- meta/recipes-devtools/cargo/cargo-cross-canadian.inc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'meta/recipes-devtools/cargo') diff --git a/meta/recipes-devtools/cargo/cargo-cross-canadian.inc b/meta/recipes-devtools/cargo/cargo-cross-canadian.inc index e83b6a67b3..a2fac929d4 100644 --- a/meta/recipes-devtools/cargo/cargo-cross-canadian.inc +++ b/meta/recipes-devtools/cargo/cargo-cross-canadian.inc @@ -28,12 +28,7 @@ inherit cross-canadian PN = "cargo-cross-canadian-${TRANSLATED_TARGET_ARCH}" -python do_rust_gen_targets () { - wd = d.getVar('WORKDIR') + '/targets/' - - rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH')) - rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH')) -} +RUST_TARGETGENS = "BUILD HOST" do_compile:prepend () { PKG_CONFIG_PATH="${RECIPE_SYSROOT_NATIVE}/usr/lib/pkgconfig:${PKG_CONFIG_PATH}" -- cgit v1.2.3-54-g00ecf