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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# 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 herobrine."""
def register_variant(
project_name, extra_dts_overlays=(), extra_kconfig_files=()
):
"""Register a variant of herobrine."""
register_npcx_project(
project_name=project_name,
zephyr_board="npcx9m3f",
dts_overlays=[
# Common to all projects.
here / "adc.dts",
here / "common.dts",
here / "interrupts.dts",
here / "keyboard.dts",
here / "default_gpio_pinctrl.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="evoker",
extra_dts_overlays=[
here / "display.dts",
here / "battery_evoker.dts",
here / "gpio_evoker.dts",
here / "i2c_evoker.dts",
here / "led_pins_evoker.dts",
here / "led_policy_evoker.dts",
here / "motionsense_evoker.dts",
here / "switchcap.dts",
here / "usbc_evoker.dts",
],
extra_kconfig_files=[here / "prj_evoker.conf"],
)
register_variant(
project_name="herobrine",
extra_dts_overlays=[
here / "display.dts",
here / "battery_herobrine.dts",
here / "gpio.dts",
here / "i2c_herobrine.dts",
here / "led_pins_herobrine.dts",
here / "led_policy_herobrine.dts",
here / "motionsense.dts",
here / "switchcap.dts",
here / "usbc_herobrine.dts",
],
extra_kconfig_files=[here / "prj_herobrine.conf"],
)
register_variant(
project_name="hoglin",
extra_dts_overlays=[
here / "battery_hoglin.dts",
here / "gpio_hoglin.dts",
here / "i2c_hoglin.dts",
here / "led_pins_hoglin.dts",
here / "led_policy_hoglin.dts",
here / "motionsense_hoglin.dts",
here / "switchcap_hoglin.dts",
here / "usbc_hoglin.dts",
],
extra_kconfig_files=[here / "prj_hoglin.conf"],
)
register_variant(
project_name="villager",
extra_dts_overlays=[
here / "battery_villager.dts",
here / "gpio_villager.dts",
here / "i2c_villager.dts",
here / "led_pins_villager.dts",
here / "led_policy_villager.dts",
here / "motionsense_villager.dts",
here / "switchcap.dts",
here / "usbc_villager.dts",
],
extra_kconfig_files=[here / "prj_villager.conf"],
)
register_variant(
project_name="zoglin",
extra_dts_overlays=[
here / "battery_hoglin.dts",
here / "gpio_hoglin.dts",
here / "i2c_hoglin.dts",
here / "led_pins_hoglin.dts",
here / "led_policy_hoglin.dts",
here / "motionsense_hoglin.dts",
here / "switchcap_hoglin.dts",
here / "usbc_hoglin.dts",
],
extra_kconfig_files=[here / "prj_zoglin.conf"],
)
register_variant(
project_name="zombie",
extra_dts_overlays=[
here / "battery_zombie.dts",
here / "gpio_zombie.dts",
here / "i2c_zombie.dts",
here / "led_pins_zombie.dts",
here / "led_policy_zombie.dts",
here / "motionsense_zombie.dts",
here / "switchcap.dts",
here / "usbc_zombie.dts",
],
extra_kconfig_files=[here / "prj_zombie.conf"],
)
|