diff options
author | Keith Short <keithshort@chromium.org> | 2022-10-20 11:35:45 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-04 22:51:13 +0000 |
commit | 13c68a3e7a85119367ddbcd130518163e4dcd619 (patch) | |
tree | 08736bb29c15afc4ca68f1958f6c34ec248640f3 /zephyr/program/skyrim/BUILD.py | |
parent | fba4956a5c7c7df15822a721310bc46b93ded47c (diff) | |
download | chrome-ec-13c68a3e7a85119367ddbcd130518163e4dcd619.tar.gz |
zephyr: rename projects folder to program
Renme the projects folder to program for consistency with the name
scheme used by the boxster configuration.
BUG=b:254097139
BRANCH=none
TEST=zmake compare-builds -a
TEST=twister
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ib56a57f1e5942e6dd0460e3be81722896eed72af
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3968444
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/program/skyrim/BUILD.py')
-rw-r--r-- | zephyr/program/skyrim/BUILD.py | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/zephyr/program/skyrim/BUILD.py b/zephyr/program/skyrim/BUILD.py new file mode 100644 index 0000000000..3807150af9 --- /dev/null +++ b/zephyr/program/skyrim/BUILD.py @@ -0,0 +1,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", + ], +) |