Commit 12da774
authored
CLI improvements (#224)
* Remove incorrect variable check for UROS_VERBOSE_BUILD
This is not really needed as the variable is always set in
build_firmware.sh. It was also implemented incorrectly, as the -z check
does not work for unset variables (the correct way would be to use [ -z
${UROS_VERBOSE_BUILD+x} ]).
Signed-off-by: Robert Wilbrandt <robert@stamm-wilbrandt.de>
* Made zephyr configuration file selection more consistent
This will output a line for the configuration file in every build and
also prevent the double-output in case of PLATFORM=host with no
transport-specific config.
Signed-off-by: Robert Wilbrandt <robert@stamm-wilbrandt.de>
* Use getopts for build_firmware.sh argument parsing
This is a much more robust solution for custom argument parsing and
allows for providing a useful help message.
Signed-off-by: Robert Wilbrandt <robert@stamm-wilbrandt.de>
* Add option to pass through build arguments to west
There are some use cases where this feature is useful, e.g.:
- It is quite common to use -DCMAKE_EXPORT_COMPILE_COMMANDS for better
IDE support
- In zephyr specifically, you might want to pass
-DZEPHYR_EXTRA_MODULES=[...] so you can use e.g. out-of-tree device
drivers
The syntax used here is consistent with the way west can forward
arguments directly to cmake.
Signed-off-by: Robert Wilbrandt <robert@stamm-wilbrandt.de>
* Add verbose build output to zephyr build
Signed-off-by: Robert Wilbrandt <robert@stamm-wilbrandt.de>1 parent ccd22a8 commit 12da774
2 files changed
Lines changed: 61 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | | - | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
67 | | - | |
68 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
69 | 84 | | |
70 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
71 | 98 | | |
72 | 99 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 100 | + | |
| 101 | + | |
77 | 102 | | |
78 | | - | |
79 | | - | |
80 | 103 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
| 45 | + | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
| |||
0 commit comments