summaryrefslogtreecommitdiff
path: root/zephyr/cmake/bintools/llvm/target.cmake
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2020-12-14 14:35:31 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-15 03:55:58 +0000
commitdfc24d03d58e0c4b015898f605228f12c9c4015e (patch)
tree294a14d33e5b360a9c5304e2a479e83eed0c155a /zephyr/cmake/bintools/llvm/target.cmake
parent1a697dfdc386066b8d2c8d0224679ed82741580a (diff)
downloadchrome-ec-dfc24d03d58e0c4b015898f605228f12c9c4015e.tar.gz
toolchain: provide definition for chroot host-based LLVM toolchain
This provides a definition for an LLVM toolchain, which acts as a chroot host-based toolchain. This is for compiling unit tests and the posix-ec project, not for real devices. We need this to enable unit tests and posix-ec build in the commit queue, since Zephyr SDK is not available in the chroot. BUG=b:175248887 TEST=zmake configure -b -B $BUILD -t llvm projects/experimental/posix-ec $BUILD/build-singleimage/zephyr/zephyr.elf works Change-Id: Ie71f53cf53503f9279aab654170c7bc2b7a80d20 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2590992 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630160
Diffstat (limited to 'zephyr/cmake/bintools/llvm/target.cmake')
-rw-r--r--zephyr/cmake/bintools/llvm/target.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/cmake/bintools/llvm/target.cmake b/zephyr/cmake/bintools/llvm/target.cmake
new file mode 100644
index 0000000000..a77d459288
--- /dev/null
+++ b/zephyr/cmake/bintools/llvm/target.cmake
@@ -0,0 +1,9 @@
+# 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.
+
+# Use generic bintools.
+include("${TOOLCHAIN_ROOT}/cmake/bintools/llvm/generic.cmake")
+
+# Include the GNU bintools properties as a base.
+include("${ZEPHYR_BASE}/cmake/bintools/gnu/target_bintools.cmake")