From 3d7353e99d86a13e2c2aade847ef44a2ad5f3776 Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Fri, 25 Feb 2022 09:54:38 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489825 Reviewed-by: Keith Short Commit-Queue: Keith Short --- zephyr/projects/herobrine/BUILD.py | 6 ++++++ zephyr/projects/herobrine/CMakeLists.txt | 2 ++ zephyr/projects/herobrine/Kconfig | 6 ++++++ zephyr/projects/herobrine/prj_villager.conf | 6 ++++++ 4 files changed, 20 insertions(+) create mode 100644 zephyr/projects/herobrine/prj_villager.conf 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 -- cgit v1.2.1