summaryrefslogtreecommitdiff
path: root/zephyr/cmake/toolchain/coreboot-sdk/generic.cmake
blob: 7f5f6d3df5597630bb42d147cac44aadbd04fbc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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")