summaryrefslogtreecommitdiff
path: root/zephyr/projects/corsola/BUILD.py
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/corsola/BUILD.py')
-rw-r--r--zephyr/projects/corsola/BUILD.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/zephyr/projects/corsola/BUILD.py b/zephyr/projects/corsola/BUILD.py
new file mode 100644
index 0000000000..1254b01003
--- /dev/null
+++ b/zephyr/projects/corsola/BUILD.py
@@ -0,0 +1,50 @@
+# Copyright 2021 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.
+
+# Default chip is it8xxx2, some variants will use NPCX9X.
+
+
+def register_corsola_project(
+ project_name,
+ chip="it8xxx2",
+ extra_dts_overlays=(),
+ extra_kconfig_files=(),
+):
+ register_func = register_binman_project
+ if chip.startswith("npcx9"):
+ register_func = register_npcx_project
+
+ register_func(
+ project_name=project_name,
+ zephyr_board=chip,
+ dts_overlays=[here / "power_signal.dts", *extra_dts_overlays],
+ kconfig_files=[here / "prj.conf", *extra_kconfig_files],
+ )
+
+
+register_corsola_project(
+ "krabby",
+ extra_dts_overlays=[
+ here / "adc_krabby.dts",
+ here / "battery_krabby.dts",
+ here / "gpio_krabby.dts",
+ here / "i2c_krabby.dts",
+ here / "motionsense_krabby.dts",
+ here / "pwm_krabby.dts",
+ ],
+ extra_kconfig_files=[here / "prj_krabby.conf"],
+)
+
+register_corsola_project(
+ project_name="kingler",
+ chip="npcx9",
+ extra_dts_overlays=[
+ here / "adc_kingler.dts",
+ here / "battery_kingler.dts",
+ here / "i2c_kingler.dts",
+ here / "cbi_eeprom_kingler.dts",
+ here / "gpio_kingler.dts",
+ ],
+ extra_kconfig_files=[here / "prj_kingler.conf"],
+)