git: d59e924d2969 - main - depend-cleanup.sh: clean up after riscv64 enhanced string function patch set

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 31 Oct 2025 12:50:47 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/src/commit/?id=d59e924d2969ce2c8bec0fc4500989865fbece75

commit d59e924d2969ce2c8bec0fc4500989865fbece75
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-10-30 18:57:23 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-10-31 12:50:29 +0000

    depend-cleanup.sh: clean up after riscv64 enhanced string function patch set
    
    This ensures an incremental build succeeds after import of
    D47275, D46023, D45730, D45693, D46139, D46230, D46047, and D53248.
    
    Approved by:    markj (mentor)
    MFC after:      1 month
    MFC to:         stable/15
    Differential Revision:  https://reviews.freebsd.org/D53485
---
 tools/build/depend-cleanup.sh | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh
index aa01db6ccc37..d751118a79a2 100755
--- a/tools/build/depend-cleanup.sh
+++ b/tools/build/depend-cleanup.sh
@@ -476,3 +476,30 @@ if [ -f "$OBJTOP"/usr.sbin/moused/moused ]; then
 	echo "Removing old moused binary"
         run rm -fv "$OBJTOP"/usr.sbin/moused/moused
 fi
+
+if [ ${MACHINE} = riscv ]; then
+	# 20251031  df21a004be23  libc: scalar strrchr() in RISC-V assembly
+	clean_dep   lib/libc strrchr c
+
+	# 20251031  563efdd3bd5d  libc: scalar memchr() in RISC-V assembly
+	clean_dep   lib/libc memchr c
+
+	# 20251031  40a958d5850d  libc: scalar memset() in RISC-V assembly
+	clean_dep   lib/libc memset c
+
+	# 20251031  e09c1583eddd  libc: scalar strlen() in RISC-V assembly
+	clean_dep   lib/libc strlen c
+
+	# 20251031  25fdd86a4c92  libc: scalar memcpy() in RISC-V assembly
+	clean_dep   lib/libc memcpy c
+
+	# 20251031  5a52f0704435  libc: scalar strnlen() in RISC-V assembly
+	clean_dep   lib/libc strnlen c
+
+	# 20251031  08af0bbc9c7d  libc: scalar strchrnul() in RISC-V assembly
+	clean_dep   lib/libc strchrnul c
+
+	# 20251031  b5dbf3de5611  libc/riscv64: implement bcopy() and bzero() through memcpy() and memset()
+	clean_dep   lib/libc bcopy c "libc.string.bcopy.c"
+	clean_dep   lib/libc bzero c "libc.string.bzero.c"
+fi