summaryrefslogtreecommitdiff
path: root/zephyr/projects/brya/BUILD.py
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/brya/BUILD.py')
-rw-r--r--zephyr/projects/brya/BUILD.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/zephyr/projects/brya/BUILD.py b/zephyr/projects/brya/BUILD.py
new file mode 100644
index 0000000000..9991335ca7
--- /dev/null
+++ b/zephyr/projects/brya/BUILD.py
@@ -0,0 +1,43 @@
+# 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 brya."""
+
+
+def register_npcx9_variant(
+ project_name, extra_dts_overlays=(), extra_kconfig_files=()
+):
+ """Register a variant of a brya, even though this is not named as such."""
+ return register_npcx_project(
+ project_name=project_name,
+ zephyr_board="npcx9m3f",
+ dts_overlays=[
+ "adc.dts",
+ "battery.dts",
+ "fan.dts",
+ "gpio.dts",
+ "i2c.dts",
+ "interrupts.dts",
+ "keyboard.dts",
+ "motionsense.dts",
+ "pwm_leds.dts",
+ "temp_sensors.dts",
+ "usbc.dts",
+ # Project-specific DTS customization.
+ *extra_dts_overlays,
+ ],
+ kconfig_files=[
+ # Common to all projects.
+ here / "prj.conf",
+ # Project-specific KConfig customization.
+ *extra_kconfig_files,
+ ],
+ )
+
+
+brya = register_npcx9_variant(
+ project_name="brya",
+ extra_dts_overlays=[here / "brya.dts"],
+ extra_kconfig_files=[here / "prj_brya.conf"],
+)