[Buildroot] [git commit] package/pkg-cargo: convert to uppercase RUSTC_TARGET_NAME
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Sun Jan 9 18:08:25 UTC 2022
commit: https://git.buildroot.net/buildroot/commit/?id=ac573c55aac3cbb4257f5388c91321c81095c654
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
RUSTC_TARGET_NAME's dashes are substituted with underscores, but this is
not enough to fix building, we also need to make it UPPERCASE. So let make
it like that by using UPPERCASE macro.
Fixes:
http://autobuild.buildroot.net/results/498/498b96224c8bcff91542ca3731dfd66891f4ec23/
Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
[Arnout: remove subst, implied by UPPERCASE]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
package/pkg-cargo.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/pkg-cargo.mk b/package/pkg-cargo.mk
index 067c45a920..614d46ad64 100644
--- a/package/pkg-cargo.mk
+++ b/package/pkg-cargo.mk
@@ -44,7 +44,7 @@ PKG_CARGO_ENV = \
CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true" \
CARGO_TARGET_APPLIES_TO_HOST="false" \
CARGO_BUILD_TARGET="$(RUSTC_TARGET_NAME)" \
- CARGO_TARGET_$(subst -,_,$(RUSTC_TARGET_NAME))_LINKER=$(notdir $(TARGET_CROSS))gcc
+ CARGO_TARGET_$(call UPPERCASE,$(RUSTC_TARGET_NAME))_LINKER=$(notdir $(TARGET_CROSS))gcc
HOST_PKG_CARGO_ENV = \
$(PKG_COMMON_CARGO_ENV)
More information about the buildroot
mailing list