summaryrefslogtreecommitdiff
path: root/zephyr/projects/skyrim/BUILD.py
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/skyrim/BUILD.py')
-rw-r--r--zephyr/projects/skyrim/BUILD.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/zephyr/projects/skyrim/BUILD.py b/zephyr/projects/skyrim/BUILD.py
new file mode 100644
index 0000000000..03bade7c2f
--- /dev/null
+++ b/zephyr/projects/skyrim/BUILD.py
@@ -0,0 +1,30 @@
+# 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.
+
+
+def register_variant(project_name):
+ register_npcx_project(
+ project_name=project_name,
+ zephyr_board="npcx9",
+ dts_overlays=[
+ # Common to all projects.
+ here / "adc.dts",
+ here / "battery.dts",
+ here / "fan.dts",
+ here / "gpio.dts",
+ here / "i2c.dts",
+ here / "pwm.dts",
+ # Project-specific DTS customizations.
+ here / f"{project_name}.dts",
+ ],
+ kconfig_files=[
+ here / f"prj_{project_name}.conf",
+ ],
+ )
+
+
+register_variant(project_name="skyrim")
+
+# TODO: Deprecate guybrush build after skyrim hardware is readily available.
+register_variant(project_name="guybrush")