rust: Consolidate cargo environment variables
authorJeffery To <jeffery.to@gmail.com>
Mon, 25 Sep 2023 03:58:12 +0000 (11:58 +0800)
committerJeffery To <jeffery.to@gmail.com>
Thu, 12 Oct 2023 06:00:30 +0000 (14:00 +0800)
commit185f27789c09dc6e47720b3cc33eb0c1f8b0f79c
tree3d1483633b9621a78f052d61b5299817e154c475
parent9762480e092ea02d1738677bc5e18f0bc0148f0d
rust: Consolidate cargo environment variables

This consolidates all environment variables for cargo into:

* CARGO_HOST_CONFIG_VARS / CARGO_PKG_CONFIG_VARS

  These contain all cargo-specific environment variables, i.e. without
  "common" variables like CC.

* CARGO_HOST_VARS / CARGO_PKG_VARS (renamed from CARGO_VARS)

  These contain all environment variables to be passed to cargo.

This also:

* Set the CARGO_BUILD_TARGET environment variable instead of using the
  --target command-line option

* Update Python include files to use CARGO_HOST_CONFIG_VARS /
  CARGO_PKG_CONFIG_VARS

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 9db7284d589dc8490f8c7dbe56af731fce953eda)
lang/python/python3-host.mk
lang/python/python3-package.mk
lang/rust/rust-host-build.mk
lang/rust/rust-package.mk
lang/rust/rust-values.mk
net/netavark/Makefile