Skip to content

Commit

Permalink
cmake: multi_image: Forward CROSS_COMPILE
Browse files Browse the repository at this point in the history
According to the Zephyr documentation, ZEPHYR_TOOLCHAIN_VARIANT take
the value of `cross-compile`, in which case, the additional variable
CROSS_COMPILE has to be set to a common path prefix. If this
CROSS_COMPILE is not forwarded to the build of sub images, the build
will fail.

(https://docs.zephyrproject.org/latest/develop/toolchains/other_x_compilers.html)

Signed-off-by: Torsten Robitzki <Torsten@Robitzki.de>
  • Loading branch information
TorstenRobitzki authored and nordicjm committed Aug 28, 2024
1 parent 6090e45 commit 24fc0a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/multi_image.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ function(add_child_image_from_source)
ZEPHYR_MODULES
ZEPHYR_EXTRA_MODULES
ZEPHYR_TOOLCHAIN_VARIANT
CROSS_COMPILE
GNUARMEMB_TOOLCHAIN_PATH
EXTRA_KCONFIG_TARGETS
NCS_TOOLCHAIN_VERSION
Expand Down

0 comments on commit 24fc0a9

Please sign in to comment.