summaryrefslogtreecommitdiff
path: root/zephyr/projects/skyrim/BUILD.py
blob: 3d43b3676b8e814b44c8e80288debfbfa8d7cc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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.

"""Define zmake projects for skyrim."""


def register_variant(project_name):
    """Register a variant of skyrim."""
    register_npcx_project(
        project_name=project_name,
        zephyr_board="npcx9m3f",
        dts_overlays=[
            # Common to all projects.
            here / "adc.dts",
            here / "battery.dts",
            here / "fan.dts",
            here / "gpio.dts",
            here / "i2c.dts",
            here / "interrupts.dts",
            here / "keyboard.dts",
            here / "led_pins_skyrim.dts",
            here / "led_policy_skyrim.dts",
            here / "motionsense.dts",
            here / "usbc.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")