aboutsummaryrefslogtreecommitdiff
path: root/pw_presubmit
diff options
context:
space:
mode:
authorArmando Montanez <amontanez@google.com>2022-02-15 12:33:38 -0800
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-02-15 21:44:00 +0000
commitcf117ea1eb0bba85d451272aee44c265636f8780 (patch)
treeca018e3b2bc0f6a313decf29500101a029a1fa13 /pw_presubmit
parent309e6ed81c189863deee841be095f92c8e28736a (diff)
downloadpigweed-cf117ea1eb0bba85d451272aee44c265636f8780.tar.gz
pw_presubmit: Add step for pw_system_demo
Adds a presubmit step for pw_system_demo. Change-Id: I7041691fec5d97ff302c1cf0f14034ce9ab0e0e9 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/84582 Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com> Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'pw_presubmit')
-rwxr-xr-xpw_presubmit/py/pw_presubmit/pigweed_presubmit.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
index 57d3c1c0c..51c8db4f5 100755
--- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
+++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
@@ -242,6 +242,23 @@ def gn_software_update_build(ctx: PresubmitContext):
@filter_paths(endswith=_BUILD_EXTENSIONS)
+def gn_pw_system_demo_build(ctx: PresubmitContext):
+ build.install_package(ctx.package_root, 'freertos')
+ build.install_package(ctx.package_root, 'nanopb')
+ build.install_package(ctx.package_root, 'stm32cube_f4')
+ build.gn_gen(
+ ctx.root,
+ ctx.output_dir,
+ dir_pw_third_party_freertos='"{}"'.format(ctx.package_root /
+ 'freertos'),
+ dir_pw_third_party_nanopb='"{}"'.format(ctx.package_root / 'nanopb'),
+ dir_pw_third_party_stm32cube_f4='"{}"'.format(ctx.package_root /
+ 'stm32cube_f4'),
+ )
+ build.ninja(ctx.output_dir, 'pw_system_demo')
+
+
+@filter_paths(endswith=_BUILD_EXTENSIONS)
def gn_qemu_build(ctx: PresubmitContext):
build.gn_gen(ctx.root, ctx.output_dir)
build.ninja(ctx.output_dir, *_at_all_optimization_levels('qemu_gcc'))
@@ -767,6 +784,7 @@ OTHER_CHECKS = (
gn_full_qemu_check,
gn_clang_build,
gn_gcc_build,
+ gn_pw_system_demo_build,
renode_check,
stm32f429i,
)