mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-10 15:01:50 +02:00
config: fix cross-compiled cmake build
The upstream cmake eclass has started properly building cmake in cross-compiler mode so it doesn't attempt to run native code. Without those checks the test results need to be defined statically.
This commit is contained in:
parent
66b2a6b33b
commit
594933247d
4
sdk_container/src/third_party/coreos-overlay/coreos/config/cross_compile_config.cmake
vendored
Normal file
4
sdk_container/src/third_party/coreos-overlay/coreos/config/cross_compile_config.cmake
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Fix up cross compiling CMake
|
||||||
|
|
||||||
|
SET(KWSYS_LFS_WORKS "1" CACHE STRING "" FORCE)
|
||||||
|
SET(KWSYS_CHAR_IS_SIGNED "1" CACHE STRING "" FORCE)
|
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-util/cmake
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-util/cmake
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if [[ $(cros_target) != "cros_host" ]] ; then
|
||||||
|
CMAKE_EXTRA_CACHE_FILE="${CROS_ADDONS_TREE}/config/cross_compile_config.cmake"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user