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/8734620553384477473
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I86b6c1f05099bd659c181d3c9cfb5b40035b578f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/240642
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index d19e1d2..a93bad9 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -49,8 +49,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/8734673210173497585.
-    commit = "be439834757b0abcd0e81a77a0c8c39beca2d4db",
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8734620553384477473.
+    commit = "7698704f57a69ff5a913f0b2d43d3cc419d10446",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
 )
 
@@ -58,8 +58,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/8734673210173497585.
-    commit = "be439834757b0abcd0e81a77a0c8c39beca2d4db",
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8734620553384477473.
+    commit = "7698704f57a69ff5a913f0b2d43d3cc419d10446",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
     strip_prefix = "pw_toolchain_bazel",
 )