1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-13 16:43:52 +01:00

doc/guides: fix build in docker CFLAGS commands

This commit is contained in:
Lasse Rosenow 2025-09-22 11:48:12 +02:00
parent 2b8dd5e1f6
commit cfb7af9361
No known key found for this signature in database

View File

@ -116,14 +116,13 @@ e.g: if wanting to override STRING_WITH_SPACES
#### Normal Build
```shell
CFLAGS=-DSTRING_WITH_SPACES='\"with space\" make
CFLAGS='-DSTRING_WITH_SPACES="\"with space\""' make
```
#### In Docker
```shell
DOCKER_ENVIRONMENT_CMDLINE='-e CFLAGS=-DSTRING_WITH_SPACES=\'\\\"with\ space\\\"\'' \
BUILD_IN_DOCKER=1 make
DOCKER_ENVIRONMENT_CMDLINE="-e CFLAGS='-DSTRING_WITH_SPACES=\\\"with\ space\\\"'" BUILD_IN_DOCKER=1 make
```
Alternatively, it is often easier to define the CFLAGS in the Makefile which gets