Lines Matching +full:risc +full:- +full:v

4 # Our current make(1)-based approach to dependency tracking cannot cope with
7 # - removing source files
8 # - replacing generated files with files committed to the tree
9 # - changing file extensions (e.g. a C source file rewritten in C++)
10 # - moving a file from one directory to another
13 # of switching from a generic machine-independent (MI) implementation file to a
14 # machine-dependent (MD) one.
16 # We handle those cases here in an ad-hoc fashion by looking for the known-
32 # - Removing a source file (including changing a file's extension). The path,
41 # - Moving a file from one directory to another. Note that a regex is passed to
50 # - Replacing generated files with files committed to the tree. This is special
53 # unconditional `rm -fv`: there's no need for an extra call to first check for
57 # clean_dep lib/libc strlen S arm-optimized-routines
58 # run rm -fv "$OBJTOP"/lib/libc/strlen.S
71 set -e
72 set -u
87 echo "usage: $(basename $0) [-v] [-n] objtop srctop" >&2
94 v)
106 shift $((OPTIND-1))
108 if [ $# -ne 2 ]; then
118 if [ ! -d "$OBJTOP" ]; then
122 if [ ! -d "$SRCTOP" -o ! -f "$SRCTOP/Makefile.inc1" ]; then
127 if [ -n "$CLEANMK" ]; then
128 if [ -z "${MAKE+set}" ]; then
133 if [ -z "${MACHINE+set}" ]; then
137 if [ -z "${MACHINE_ARCH+set}" ]; then
141 if [ -z "${ALL_libcompats+set}" ]; then
163 # $4 optional regex for egrep -w
167 dirprfx=${libcompat:+obj-lib${libcompat}/}
168 if egrep -qw "${4:-$2\.$3}" "$OBJTOP"/$dirprfx$1/.depend.$2.*o 2>/dev/null; then
170 run rm -fv \
185 # $4 regex for egrep -w
189 dirprfx=${libcompat:+obj-lib${libcompat}/}
190 if strings "$OBJTOP"/$dirprfx$1/$2.*o 2>/dev/null | egrep -qw "${4}"; then
192 run rm -fv \
200 [ -s "$1" ] || return 0
211 # generally used after legacy/bootstrap tools to avoid over-cleansing
213 if [ -n "$CLEANMK" ]; then
215 run $MAKE -C "$SRCTOP" -f "$SRCTOP"/Makefile.inc1 $CLEANMK
218 run rm -rf "$OBJTOP"
223 # non-epoch reasons to force clean.
224 if [ -z "$buildepoch" ]; then
228 mkdir -p "$OBJTOP"
239 if [ -z "$srcepoch" ]; then
247 if [ -z "$objepoch" ] || [ "$srcepoch" -ne "$objepoch" ]; then
249 echo "Cleaning - src epoch: $srcepoch, objdir epoch: ${objepoch:-unknown}"
264 # 20250807 # All OpenSSL-using bits need rebuilt
273 # run rm -fv "$OBJTOP"/tests/sys/kqueue/libkqueue/.depend.* \
278 if [ -f "$OBJTOP"/usr.sbin/moused/moused ]; then
280 run rm -fv "$OBJTOP"/usr.sbin/moused/moused
284 # 20251031 df21a004be23 libc: scalar strrchr() in RISC-V assembly
287 # 20251031 563efdd3bd5d libc: scalar memchr() in RISC-V assembly
290 # 20251031 40a958d5850d libc: scalar memset() in RISC-V assembly
293 # 20251031 e09c1583eddd libc: scalar strlen() in RISC-V assembly
296 # 20251031 25fdd86a4c92 libc: scalar memcpy() in RISC-V assembly
299 # 20251031 5a52f0704435 libc: scalar strnlen() in RISC-V assembly
302 # 20251031 08af0bbc9c7d libc: scalar strchrnul() in RISC-V assembly