Mon Jul 26 12:49:13 2021 UTC ()
Improve previous:

- Add suffix ``d'' for mkdep(1).
- Improve comment a little...


(rin)
diff -r1.14 -r1.15 src/lib/libc/arch/powerpc/string/Makefile.inc
diff -r1.32 -r1.33 src/sys/lib/libkern/arch/powerpc/Makefile.inc

cvs diff -r1.14 -r1.15 src/lib/libc/arch/powerpc/string/Makefile.inc (expand / switch to unified diff)

--- src/lib/libc/arch/powerpc/string/Makefile.inc 2021/07/24 05:27:25 1.14
+++ src/lib/libc/arch/powerpc/string/Makefile.inc 2021/07/26 12:49:13 1.15
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile.inc,v 1.14 2021/07/24 05:27:25 rin Exp $ 1# $NetBSD: Makefile.inc,v 1.15 2021/07/26 12:49:13 rin Exp $
2 2
3SRCS+= bzero.S ffs.S strlen.S 3SRCS+= bzero.S ffs.S strlen.S
4NO_SRCS+= memset.S 4NO_SRCS+= memset.S
5 5
6# disable the asm versions of these because they break the explora. 6# XXX
7# the special rules here are to override the suffix rules which seem 7# Disable asm versions that use unaligned memory access and thus break 403.
8# to prefer .S files over .c 
9.if ${MACHINE} == "evbppc" 8.if ${MACHINE} == "evbppc"
10. for name in bcopy memcmp memcpy memmove 9. for name in bcopy memcmp memcpy memmove
11. for suffix in o po pico go 10. for suffix in o po pico go d
12${name}.${suffix}: ${name}.c 11${name}.${suffix}: ${name}.c
13. endfor 12. endfor
14. endfor 13. endfor
15.else 14.else
16SRCS+= memcmp.S bcopy.S memcpy.S memmove.S 15SRCS+= memcmp.S bcopy.S memcpy.S memmove.S
17.endif 16.endif

cvs diff -r1.32 -r1.33 src/sys/lib/libkern/arch/powerpc/Makefile.inc (expand / switch to unified diff)

--- src/sys/lib/libkern/arch/powerpc/Makefile.inc 2021/07/24 05:29:26 1.32
+++ src/sys/lib/libkern/arch/powerpc/Makefile.inc 2021/07/26 12:49:13 1.33
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1# $NetBSD: Makefile.inc,v 1.32 2021/07/24 05:29:26 rin Exp $ 1# $NetBSD: Makefile.inc,v 1.33 2021/07/26 12:49:13 rin Exp $
2 2
3SRCS+= bswap16.c bswap32.c 3SRCS+= bswap16.c bswap32.c
4SRCS+= htonl.c htons.c ntohl.c ntohs.c 4SRCS+= htonl.c htons.c ntohl.c ntohs.c
5SRCS+= syncicache.c 5SRCS+= syncicache.c
6 6
7SRCS+= ffs.S memset.S strlen.S 7SRCS+= ffs.S memset.S strlen.S
8SRCS+= gprsavrest.S 8SRCS+= gprsavrest.S
9 9
10# Disable the asm versions on evbppc because they break the Explora 10# XXX
 11# Disable asm versions that use unaligned memory access and thus break 403.
11.if ${MACHINE} == "evbppc" 12.if ${MACHINE} == "evbppc"
12. for name in memcmp memcpy memmove 13. for name in memcmp memcpy memmove
13. for suffix in o po pico go 14. for suffix in o po pico go d
14${name}.${suffix}: ${name}.c 15${name}.${suffix}: ${name}.c
15. endfor 16. endfor
16. endfor 17. endfor
17.endif 18.endif