Skip to content

Commit 5521bea

Browse files
marc-hblrgirdwo
authored andcommitted
zephyr/cmake: BUILD_ALWAYS for smex and sof-logger
Discovered the hard way that the Zephyr build assumes sof-logger is always up to date when present. It's not clear from cmake's ExternalProject documentation why that is the case. In any case BUILD_ALWAYS fixes the issue and takes very little time because it does not rebuild sof-logger from scratch. BUILD_ALWAYS is already used for XTOS. Fixes commit f6c71c2 ("zephyr/CMakeLists.txt: build smex and sof-logger") Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 2f2a691 commit 5521bea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

zephyr/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ ExternalProject_Add(smex_ep
6767
# The default paths are very "deep"
6868
PREFIX "${PROJECT_BINARY_DIR}/smex_ep"
6969
BINARY_DIR "${PROJECT_BINARY_DIR}/smex_ep/build"
70+
BUILD_ALWAYS 1
7071
INSTALL_COMMAND "" # need smex only at build time
7172
)
7273

@@ -76,6 +77,7 @@ ExternalProject_Add(sof_logger_ep
7677
PREFIX "${PROJECT_BINARY_DIR}/sof-logger_ep"
7778
BINARY_DIR "${PROJECT_BINARY_DIR}/sof-logger_ep/build"
7879
BUILD_COMMAND cmake --build . --target sof-logger
80+
BUILD_ALWAYS 1
7981
INSTALL_COMMAND ""
8082
)
8183

0 commit comments

Comments
 (0)