diff options
Diffstat (limited to 'zephyr/cmake/toolchain/coreboot-sdk/generic.cmake')
-rw-r--r-- | zephyr/cmake/toolchain/coreboot-sdk/generic.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zephyr/cmake/toolchain/coreboot-sdk/generic.cmake b/zephyr/cmake/toolchain/coreboot-sdk/generic.cmake new file mode 100644 index 0000000000..7f5f6d3df5 --- /dev/null +++ b/zephyr/cmake/toolchain/coreboot-sdk/generic.cmake @@ -0,0 +1,17 @@ +# Copyright 2020 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# generic.cmake is used for host-side compilation and preprocessing +# (e.g., for device-tree). Thus, we should use LLVM for this +# actually, as that's what's currently supported compiler-wise in the +# chroot right now. + +set(CMAKE_C_COMPILER "/usr/bin/x86_64-pc-linux-gnu-clang") + +set(CMAKE_AR "/usr/bin/llvm-ar") +set(CMAKE_NM "/usr/bin/llvm-nm") +set(CMAKE_OBJCOPY "/usr/bin/llvm-objcopy") +set(CMAKE_OBJDUMP "/usr/bin/llvm-objdump") +set(CMAKE_RANLIB "/usr/bin/llvm-ar") +set(CMAKE_READELF "/usr/bin/llvm-readelf") |