1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

build system: create cargo folders more robustly

On some systems, `$(shell mkdir -p ~/.cargo/registry)` ended up not
replacing `~` with the home directory, but rather created a directory
named `~`.

The new approach should be a bit more robust.
This commit is contained in:
Marian Buschsieweke 2025-03-31 21:32:58 +02:00
parent 7a1a8d1aef
commit 5feacf284d
No known key found for this signature in database
GPG Key ID: 758BD52517F79C41

View File

@ -95,7 +95,7 @@ $(APPLICATION_RUST_MODULE).module: $(CARGO_LIB) FORCE
# This prevents cargo inside docker from creating them with root permissions
# (should they not exist), and also from re-building everything every time
# because the .cargo inside is as ephemeral as the build container.
$(shell mkdir -p ~/.cargo/git ~/.cargo/registry)
$(shell mkdir -p $(HOME)/.cargo/git $(HOME)/.cargo/registry)
FORCE:
.phony: FORCE