python3-setuptools-rust: fix RDEPENDS and allow target build

Cargo and rustc can now be built for the target architecture. There's no
reason to limit the setuptools rust extensions to native build only so
make the RDEPENDS global. Also: add the missing ones.

(From OE-Core rev: aa8001e9bff9f9dd92a4a1ce435f1ae452e104c9)

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Bartosz Golaszewski
2023-05-17 10:06:32 +02:00
committed by Richard Purdie
parent dddaef591f
commit d7d56550ac

View File

@@ -18,13 +18,16 @@ inherit cargo pypi python_setuptools_build_meta
DEPENDS += "python3-setuptools-scm-native python3-wheel-native"
RDEPENDS:${PN}:class-native += " \
python3-semantic-version-native \
python3-setuptools-native \
python3-setuptools-scm-native \
python3-toml-native \
python3-typing-extensions-native \
python3-wheel-native \
RDEPENDS:${PN} += " \
python3-distutils \
python3-json \
python3-semantic-version \
python3-setuptools \
python3-setuptools-scm \
python3-shell \
python3-toml \
python3-typing-extensions \
python3-wheel \
"
BBCLASSEXTEND = "native"