commit | cec8033cd401f103b8b35f9903402a6612fc0e5a | [log] [tgz] |
---|---|---|
author | Michael Spang <spang@google.com> | Wed Nov 15 21:35:54 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 15 21:35:54 2023 +0000 |
tree | 219968aea7a2f9031afb5cbd37b8de9de68a4e9f | |
parent | 4c617fd25a8796bfe5fa61a4365d2dd1cadb5b7c [diff] |
pw_env_setup: Make pigweed_environment.gni content gni-relative This is useful for Matter which tries to reuse a single environment between multiple GN roots. The path is ambiguous if specified relative to GN root, but is unambiguous if specified relative to the gni file. The paths are turned back into "source absolute paths" via get_path_info, so the variables actually have the same value as before whenever the gni file is loaded from //build_overrides/. However, if the gni file is imported indirectly from e.g. //third_party/connectedhomeip/build_overrides, as the Matter sample projects do, then the environment will be at //third_party/connectedhomeip/.environment, which is the correct location. (Contrary to what it may seem, get_path_info(path, "abspath") outputs a path relative to the GN --root, i.e. exactly what was in this file before. So the change should be safe for pigweed & its other users). Change-Id: I48f85d81ca1cedd05d0a2711420f5e4c9a1e7a37 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/180991 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Michael Spang <spang@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.