summaryrefslogtreecommitdiff
path: root/zephyr/program/rex/BUILD.py
blob: 2537f612269f5f926ee7c1da2f3e74f192e72539 (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
39
40
41
42
43
44
45
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Rex Projects."""


def register_variant(
    project_name, extra_dts_overlays=(), extra_kconfig_files=()
):
    """Register a variant of rex."""
    register_npcx_project(
        project_name=project_name,
        zephyr_board="npcx9m7f",
        dts_overlays=[
            # Common to all projects.
            here / "rex.dts",
            # Project-specific DTS customization.
            *extra_dts_overlays,
        ],
        kconfig_files=[
            # Common to all projects.
            here / "prj.conf",
            # Project-specific KConfig customization.
            *extra_kconfig_files,
        ],
    )


register_variant(
    project_name="rex",
    extra_dts_overlays=[
        here / "generated.dts",
        here / "interrupts.dts",
        here / "power_signals.dts",
        here / "battery.dts",
        here / "usbc.dts",
        here / "keyboard.dts",
        here / "led.dts",
        here / "fan.dts",
        here / "temp_sensors.dts",
        here / "motionsense.dts",
    ],
    extra_kconfig_files=[here / "prj_rex.conf"],
)