Skip to content

Commit 8ae1508

Browse files
committed
Fix west-opt command line position
1 parent d09c35e commit 8ae1508

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

pkg/maker/west.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ set(ENV_VARS
8989
9090
# Compilation database
9191
add_custom_target(database
92-
COMMAND cmake -E env ${ENV_VARS} west build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto --cmake-only` + westOptionsRef + ` "${WEST_APP}"` + westDefsRef + `
92+
COMMAND cmake -E env ${ENV_VARS} west` + westOptionsRef + ` build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto --cmake-only "${WEST_APP}"` + westDefsRef + `
9393
USES_TERMINAL
9494
)
9595
9696
# West build
9797
add_custom_target(west
98-
COMMAND cmake -E env ${ENV_VARS} west build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto` + westOptionsRef + ` "${WEST_APP}"` + westDefsRef + `
98+
COMMAND cmake -E env ${ENV_VARS} west` + westOptionsRef + ` build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto "${WEST_APP}"` + westDefsRef + `
9999
USES_TERMINAL
100100
)
101101
`

test/data/solutions/west/out/core1/CM0/Debug/core1.Debug+CM0.cbuild.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ build:
3939
- CONFIG_BUILD_OUTPUT_HEX: y
4040
- TARGET-DEF: on
4141
- CONFIG-DEBUG: y
42+
west-opt:
43+
- --verbose

test/data/solutions/west/ref/core1.Debug+CM0/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ include("toolchain.cmake")
1515
# Setup project
1616
project(${CONTEXT} LANGUAGES NONE)
1717

18+
set(WEST_OPTIONS
19+
--verbose
20+
)
1821
set(WEST_DEFS
1922
-DCORE=1
2023
-DCONFIG_BUILD_OUTPUT_HEX=y
@@ -32,12 +35,12 @@ set(ENV_VARS
3235

3336
# Compilation database
3437
add_custom_target(database
35-
COMMAND cmake -E env ${ENV_VARS} west build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto --cmake-only "${WEST_APP}" -- ${WEST_DEFS}
38+
COMMAND cmake -E env ${ENV_VARS} west ${WEST_OPTIONS} build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto --cmake-only "${WEST_APP}" -- ${WEST_DEFS}
3639
USES_TERMINAL
3740
)
3841

3942
# West build
4043
add_custom_target(west
41-
COMMAND cmake -E env ${ENV_VARS} west build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto "${WEST_APP}" -- ${WEST_DEFS}
44+
COMMAND cmake -E env ${ENV_VARS} west ${WEST_OPTIONS} build -b ${WEST_BOARD} -d "${OUT_DIR}" -p auto "${WEST_APP}" -- ${WEST_DEFS}
4245
USES_TERMINAL
4346
)

test/data/solutions/west/solution.csolution.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ solution:
3636
device: :cm0_core1
3737
west-defs:
3838
- CORE: 1
39+
west-opt:
40+
- --verbose

0 commit comments

Comments
 (0)