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
|
# 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 nissa."""
# Nivviks and Craask, Pujjo, Xivu has NPCX993F, Nereid and Joxer, Yaviks has ITE81302
def register_nissa_project(
project_name,
chip="it81302bx",
):
"""Register a variant of nissa."""
register_func = register_binman_project
if chip.startswith("npcx"):
register_func = register_npcx_project
chip_kconfig = {"it81302bx": "it8xxx2", "npcx9m3f": "npcx"}[chip]
return register_func(
project_name=project_name,
zephyr_board=chip,
dts_overlays=[here / project_name / "project.overlay"],
kconfig_files=[
here / "program.conf",
here / f"{chip_kconfig}_program.conf",
here / project_name / "project.conf",
],
)
nivviks = register_nissa_project(
project_name="nivviks",
chip="npcx9m3f",
)
nereid = register_nissa_project(
project_name="nereid",
chip="it81302bx",
)
craask = register_nissa_project(
project_name="craask",
chip="npcx9m3f",
)
pujjo = register_nissa_project(
project_name="pujjo",
chip="npcx9m3f",
)
xivu = register_nissa_project(
project_name="xivu",
chip="npcx9m3f",
)
joxer = register_nissa_project(
project_name="joxer",
chip="it81302bx",
)
yaviks = register_nissa_project(
project_name="yaviks",
chip="it81302bx",
)
|