roll: pigweed pw_build: Add pw_copy_and_patch_file

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

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/237056
Original-Revision: 4f8b0a26fdc1f709e8c9cb3367735767aa67b1e9

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: 2ef99131bbb73e..4f8b0a26fdc1f7
Roller-URL: https://ci.chromium.org/b/8735324962756568881
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I30c92155c06079d2270fb91beacdb60b7ad3791a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/238860
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index a6f7fa0..fb9b633 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -48,18 +48,18 @@
 git_override(
     module_name = "pigweed",
     # ROLL: Warning: this entry is automatically updated.
-    # ROLL: Last updated 2024-09-30.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8735330371933260785.
-    commit = "2ef99131bbb73e475f64281b6515eedba4a8cb79",
+    # ROLL: Last updated 2024-10-01.
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8735324962756568881.
+    commit = "4f8b0a26fdc1f709e8c9cb3367735767aa67b1e9",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
 )
 
 git_override(
     module_name = "pw_toolchain",
     # ROLL: Warning: this entry is automatically updated.
-    # ROLL: Last updated 2024-09-30.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8735330371933260785.
-    commit = "2ef99131bbb73e475f64281b6515eedba4a8cb79",
+    # ROLL: Last updated 2024-10-01.
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8735324962756568881.
+    commit = "4f8b0a26fdc1f709e8c9cb3367735767aa67b1e9",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
     strip_prefix = "pw_toolchain_bazel",
 )