From 1f46aa758e3bee111cb6274eebbbf70bdbf00838 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Wed, 23 Sep 2020 08:47:51 -0600 Subject: zephyr: add base files for Zephyr module This adds the minimum files necessary for platform/ec to be considered a Zephyr module, as well as some of the discussed CMakeLists files from go/zephyr-shim. BUG=b:167590251 BRANCH=none TEST=Append platform/ec dir to ZEPHYR_MODULES, build for posix-ec To replicate: $ export ZEPHYR_TOOLCHAIN_VARIANT=llvm $ export ZEPHYR_BASE=... $ ZEPHYR_CHROME=... $ PLATFORM_EC=... $ cmake -S ${ZEPHYR_CHROME}/projects/experimental/posix-ec \ -B /tmp/zephyr-build \ -D ZEPHYR_MODULES="${ZEPHYR_CHROME};${PLATFORM_EC}" $ ninja -C /tmp/zephyr-build $ /tmp/zephyr-build/zephyr/zephyr.elf Signed-off-by: Jack Rosenthal Change-Id: Id5eb4e4d3b761a9499e876dfe2178be7f7961e93 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2427089 Reviewed-by: Jett Rink --- zephyr/shim/src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 zephyr/shim/src/CMakeLists.txt (limited to 'zephyr/shim') diff --git a/zephyr/shim/src/CMakeLists.txt b/zephyr/shim/src/CMakeLists.txt new file mode 100644 index 0000000000..d3db874f71 --- /dev/null +++ b/zephyr/shim/src/CMakeLists.txt @@ -0,0 +1,5 @@ +# 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. + +# Nothing here yet. -- cgit v1.2.1