summaryrefslogtreecommitdiff
path: root/zephyr/projects/skyrim/BUILD.py
blob: 3807150af943afd2de6a373b8bb69ca6615f8c20 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# 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 skyrim."""


def register_skyrim_project(
    project_name,
    extra_dts_overlays=(),
    extra_kconfig_files=(),
):
    """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 / "fan.dts",
            here / "gpio.dts",
            here / "interrupts.dts",
            here / "keyboard.dts",
            here / "motionsense.dts",
            here / "usbc.dts",
            # Project-specific DTS customizations.
            *extra_dts_overlays,
        ],
        kconfig_files=[here / "prj.conf", *extra_kconfig_files],
    )


register_skyrim_project(
    project_name="morthal",
    extra_dts_overlays=[
        here / "morthal.dts",
        here / "battery_morthal.dts",
        here / "led_pins_morthal.dts",
        here / "led_policy_morthal.dts",
    ],
    extra_kconfig_files=[
        here / "prj_morthal.conf",
    ],
)


register_skyrim_project(
    project_name="skyrim",
    extra_dts_overlays=[
        here / "skyrim.dts",
        here / "battery_skyrim.dts",
        here / "led_pins_skyrim.dts",
        here / "led_policy_skyrim.dts",
    ],
    extra_kconfig_files=[
        here / "prj_skyrim.conf",
    ],
)


register_skyrim_project(
    project_name="winterhold",
    extra_dts_overlays=[
        here / "winterhold.dts",
        here / "battery_winterhold.dts",
        here / "led_pins_winterhold.dts",
        here / "led_policy_winterhold.dts",
    ],
    extra_kconfig_files=[
        here / "prj_winterhold.conf",
    ],
)


register_skyrim_project(
    project_name="frostflow",
    extra_dts_overlays=[
        here / "frostflow.dts",
        here / "battery_frostflow.dts",
        here / "led_pins_frostflow.dts",
        here / "led_policy_frostflow.dts",
    ],
    extra_kconfig_files=[
        here / "prj_frostflow.conf",
    ],
)