roll: pigweed pw_build: Add pw_copy_and_patch_file

Adds the ability to patch a file during both a bazel and GN build

Reland of https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/237056

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/237056
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/240832
Original-Revision: 7698704f57a69ff5a913f0b2d43d3cc419d10446

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: be439834757b0a..7698704f57a69f
Roller-URL: https://ci.chromium.org/b/8734620562242955873
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ie0d5d19071e4db956ccbe1e77bcf554ba098e737
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/240705
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 2aab133..92de603 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -50,8 +50,8 @@
     module_name = "pigweed",
     # ROLL: Warning: this entry is automatically updated.
     # ROLL: Last updated 2024-10-08.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8734673215974989457.
-    commit = "be439834757b0abcd0e81a77a0c8c39beca2d4db",
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8734620562242955873.
+    commit = "7698704f57a69ff5a913f0b2d43d3cc419d10446",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
 )
 
@@ -59,8 +59,8 @@
     module_name = "pw_toolchain",
     # ROLL: Warning: this entry is automatically updated.
     # ROLL: Last updated 2024-10-08.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8734673215974989457.
-    commit = "be439834757b0abcd0e81a77a0c8c39beca2d4db",
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8734620562242955873.
+    commit = "7698704f57a69ff5a913f0b2d43d3cc419d10446",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
     strip_prefix = "pw_toolchain_bazel",
 )