summaryrefslogtreecommitdiff
path: root/zephyr/projects/herobrine/BUILD.py
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/herobrine/BUILD.py')
-rw-r--r--zephyr/projects/herobrine/BUILD.py43
1 files changed, 38 insertions, 5 deletions
diff --git a/zephyr/projects/herobrine/BUILD.py b/zephyr/projects/herobrine/BUILD.py
index 2a15441c55..b8bbdb0ce7 100644
--- a/zephyr/projects/herobrine/BUILD.py
+++ b/zephyr/projects/herobrine/BUILD.py
@@ -1,11 +1,13 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Define zmake projects for herobrine."""
-def register_variant(project_name, extra_dts_overlays=(), extra_kconfig_files=()):
+def register_variant(
+ project_name, extra_dts_overlays=(), extra_kconfig_files=()
+):
"""Register a variant of herobrine."""
register_npcx_project(
project_name=project_name,
@@ -14,7 +16,6 @@ def register_variant(project_name, extra_dts_overlays=(), extra_kconfig_files=()
# Common to all projects.
here / "adc.dts",
here / "common.dts",
- here / "i2c.dts",
here / "interrupts.dts",
here / "keyboard.dts",
here / "default_gpio_pinctrl.dts",
@@ -31,11 +32,28 @@ def register_variant(project_name, extra_dts_overlays=(), extra_kconfig_files=()
register_variant(
+ project_name="evoker",
+ extra_dts_overlays=[
+ here / "display.dts",
+ here / "battery_evoker.dts",
+ here / "gpio_evoker.dts",
+ here / "i2c_evoker.dts",
+ here / "led_pins_evoker.dts",
+ here / "led_policy_evoker.dts",
+ here / "motionsense_evoker.dts",
+ here / "switchcap.dts",
+ here / "usbc_evoker.dts",
+ ],
+ extra_kconfig_files=[here / "prj_evoker.conf"],
+)
+
+register_variant(
project_name="herobrine",
extra_dts_overlays=[
here / "display.dts",
here / "battery_herobrine.dts",
here / "gpio.dts",
+ here / "i2c_herobrine.dts",
here / "led_pins_herobrine.dts",
here / "led_policy_herobrine.dts",
here / "motionsense.dts",
@@ -45,12 +63,12 @@ register_variant(
extra_kconfig_files=[here / "prj_herobrine.conf"],
)
-
register_variant(
project_name="hoglin",
extra_dts_overlays=[
here / "battery_hoglin.dts",
here / "gpio_hoglin.dts",
+ here / "i2c_hoglin.dts",
here / "led_pins_hoglin.dts",
here / "led_policy_hoglin.dts",
here / "motionsense_hoglin.dts",
@@ -60,12 +78,12 @@ register_variant(
extra_kconfig_files=[here / "prj_hoglin.conf"],
)
-
register_variant(
project_name="villager",
extra_dts_overlays=[
here / "battery_villager.dts",
here / "gpio_villager.dts",
+ here / "i2c_villager.dts",
here / "led_pins_villager.dts",
here / "led_policy_villager.dts",
here / "motionsense_villager.dts",
@@ -74,3 +92,18 @@ register_variant(
],
extra_kconfig_files=[here / "prj_villager.conf"],
)
+
+register_variant(
+ project_name="zoglin",
+ extra_dts_overlays=[
+ here / "battery_hoglin.dts",
+ here / "gpio_hoglin.dts",
+ here / "i2c_hoglin.dts",
+ here / "led_pins_hoglin.dts",
+ here / "led_policy_hoglin.dts",
+ here / "motionsense_hoglin.dts",
+ here / "switchcap_hoglin.dts",
+ here / "usbc_hoglin.dts",
+ ],
+ extra_kconfig_files=[here / "prj_zoglin.conf"],
+)