Cleanup patch code that does nothing useful these days (changes are long
integrated upstream).
This commit is contained in:
parent
88342796e7
commit
80d698e975
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475170
1 changed files with 2 additions and 11 deletions
|
@ -119,18 +119,9 @@ post-patch: .SILENT
|
|||
${REINPLACE_CMD} -E '/#include "machine\/\.\.\/linux(32)?\/linux.h"/ \
|
||||
{ x ; s/.*/#include "machine\/..\/..\/compat\/linux\/linux_ioctl.h"/ ; H ; x ; }' \
|
||||
${WRKSRC}/src/${NVSRC}/nvidia_linux.c
|
||||
# Adjust `vm_object' locking after FreeBSD src r248084 and bogus memset() call
|
||||
${REINPLACE_CMD} -e '/#include <vm\/vm_object.h>/ \
|
||||
{ x ; s/.*/#include <sys\/rwlock.h>/ ; G ; }' \
|
||||
${WRKSRC}/src/${NVSRC}/nv-freebsd.h
|
||||
${REINPLACE_CMD} -E 's/(VM_OBJECT_)(UN)?(LOCK)/\1W\2\3/ ; \
|
||||
/memset/s/sizeof\(ci/sizeof(*ci/' \
|
||||
${WRKSRC}/src/${NVSRC}/nvidia_subr.c
|
||||
# Adjust kmem(9) calls after FreeBSD src r254025
|
||||
.if ${NVVERSION} < 331.067
|
||||
${REINPLACE_CMD} -e '/kmem_/s/kernel_map/kernel_arena/' \
|
||||
# Fix bogus memset() call
|
||||
${REINPLACE_CMD} -e '/memset/s/sizeof(ci/sizeof(*ci/' \
|
||||
${WRKSRC}/src/${NVSRC}/nvidia_subr.c
|
||||
.endif
|
||||
# Chase `sys/capability.h' rename to `sys/capsicum.h' in FreeBSD src r263232
|
||||
${REINPLACE_CMD} -e 's:sys/capability\.h:sys/capsicum.h:' \
|
||||
${WRKSRC}/src/${NVSRC}/nv-freebsd.h
|
||||
|
|
Loading…
Reference in a new issue