diff options
author | Wai-Hong Tam <waihong@google.com> | 2022-02-25 09:54:38 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-25 23:13:39 +0000 |
commit | 3d7353e99d86a13e2c2aade847ef44a2ad5f3776 (patch) | |
tree | 91c9f10f25ea01fd0ade915377d2fc2bdd6e46ad | |
parent | 8047a4185b4b6176069782b27a1051a5252e5ac0 (diff) | |
download | chrome-ec-3d7353e99d86a13e2c2aade847ef44a2ad5f3776.tar.gz |
villager: Create initial Villager EC image
Fork the Villager build from the Herobrine's. These 2 images are
the same so far except the runtime Herobrine-specific component
swap, which depends on the CONFIG_BOARD_HEROBRINE. The villager
image doesn't care about the BOARD ID and just uses the static
configs.
More changes will be added later.
BRANCH=None
BUG=b:221444985
TEST=Built the villager EC image.
Change-Id: I0c8d71c4b664d6c8b80e94debab0cccf79030778
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489825
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/projects/herobrine/BUILD.py | 6 | ||||
-rw-r--r-- | zephyr/projects/herobrine/CMakeLists.txt | 2 | ||||
-rw-r--r-- | zephyr/projects/herobrine/Kconfig | 6 | ||||
-rw-r--r-- | zephyr/projects/herobrine/prj_villager.conf | 6 |
4 files changed, 20 insertions, 0 deletions
diff --git a/zephyr/projects/herobrine/BUILD.py b/zephyr/projects/herobrine/BUILD.py index 4fb0cebb40..04d632230b 100644 --- a/zephyr/projects/herobrine/BUILD.py +++ b/zephyr/projects/herobrine/BUILD.py @@ -42,3 +42,9 @@ register_variant( project_name="hoglin", extra_kconfig_files=[here / "prj_hoglin.conf"], ) + + +register_variant( + project_name="villager", + extra_kconfig_files=[here / "prj_villager.conf"], +) diff --git a/zephyr/projects/herobrine/CMakeLists.txt b/zephyr/projects/herobrine/CMakeLists.txt index 42752bcb50..64102e951c 100644 --- a/zephyr/projects/herobrine/CMakeLists.txt +++ b/zephyr/projects/herobrine/CMakeLists.txt @@ -23,4 +23,6 @@ if(DEFINED CONFIG_BOARD_HEROBRINE) "src/herobrine/alt_dev_replacement.c") elseif(DEFINED CONFIG_BOARD_HOGLIN) project(hoglin) +elseif(DEFINED CONFIG_BOARD_VILLAGER) + project(villager) endif() diff --git a/zephyr/projects/herobrine/Kconfig b/zephyr/projects/herobrine/Kconfig index 36916a01b8..902e81a49a 100644 --- a/zephyr/projects/herobrine/Kconfig +++ b/zephyr/projects/herobrine/Kconfig @@ -14,4 +14,10 @@ config BOARD_HOGLIN Build Qualcomm Hoglin reference board. The board uses Nuvoton NPCX9 chip as the EC. +config BOARD_VILLAGER + bool "Villager Board" + help + Build the Villager board. The board is based on the Herobrine + reference design. + source "Kconfig.zephyr" diff --git a/zephyr/projects/herobrine/prj_villager.conf b/zephyr/projects/herobrine/prj_villager.conf new file mode 100644 index 0000000000..ceb2969891 --- /dev/null +++ b/zephyr/projects/herobrine/prj_villager.conf @@ -0,0 +1,6 @@ +# Copyright 2022 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. + +# Villager board-specific Kconfig settings. +CONFIG_BOARD_VILLAGER=y |