build-system: use better default for DLCACHE_DIR#22398
Conversation
|
Wait that's weird... the DLCACHE is supposed to be at home at I guess the way it works is that the RIOT/dist/tools/dlcache/dlcache.sh Lines 6 to 8 in fa7ffa1 |
|
Okay fascinating... in a Docker container, the local folder is used and without the Docker container, the folder in HOME is used. That's not ideal I think 🤔 |
|
The I'd argue that both But given that we do actually have |
|
What would a The point of having I'm not aware of any documentation to setup a |
I agree on that. But the problem at hand is that while most caches in RIOT do use The creation of that |
We already have `$(BUILD_DIR)` for RIOT cache's and is used for caching package source and STM32 vendor header files. To follow suit, this sets the default to `$(BUILD_DIR)/dlcache`. In addition, this allows building on a read-only source directories.
Contribution description
We already have
$(BUILD_DIR)for RIOT cache's and is used for caching package source and STM32 vendor header files. To follow suit, this sets the default to$(BUILD_DIR)/dlcache.In addition, this allows building on a read-only source directories.
Testing procedure
With
masterand RIOT mounted read-only into/data/ext/RIOT, not settingDLCACHE_DIRby hand, and havingBUILD_DIRmounted read-write into the container:Same situation with this PR:
Issues/PRs references
None
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: