[roll pigweed] pw_presubmit: Use PresubmitContext in build module

Migrate from using these calls:

  build.gn_gen(ctx.root, ctx.output_dir)
  build.ninja(ctx.output_dir, *build_targets)

  build.cmake(ctx.root, ctx.output_dir, *args)

To these calls:

  build.gn_gen_2(ctx)
  build.ninja(ctx, *build_targets)

  build.cmake_2(ctx, *args)

After all downstream projects have been migrated the "_2" suffix will be
dropped.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/106837

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: 4e1abba54d39da0..b44894c7892290d
Roller-URL: https://ci.chromium.org/b/8805633205626679377
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Iaa53c4ae27916b35253e202f2e6ff111b2bed75a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/107031
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: 6aafaa639c99527bf245724ce6205e7343f00c7e
  1. .gitmodules
  2. test.sh