Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/amdgpu Update amdgpu2netbsd. Make ide...



details:   https://anonhg.NetBSD.org/src/rev/12dfc30b1096
branches:  trunk
changeset: 366278:12dfc30b1096
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:22:47 2018 +0000

description:
Update amdgpu2netbsd.  Make idempotent.

diffstat:

 sys/external/bsd/drm2/amdgpu/amdgpu2netbsd |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r a5ae968779ed -r 12dfc30b1096 sys/external/bsd/drm2/amdgpu/amdgpu2netbsd
--- a/sys/external/bsd/drm2/amdgpu/amdgpu2netbsd        Mon Aug 27 14:22:31 2018 +0000
+++ b/sys/external/bsd/drm2/amdgpu/amdgpu2netbsd        Mon Aug 27 14:22:47 2018 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-#      $NetBSD: amdgpu2netbsd,v 1.2 2018/08/27 14:10:42 riastradh Exp $
+#      $NetBSD: amdgpu2netbsd,v 1.3 2018/08/27 14:22:47 riastradh Exp $
 #
 # $ /path/to/amdgpu2netbsd > /path/to/files.amdgpu.new
 #
@@ -18,6 +18,7 @@
 amdgpu_flag=amdgpu
 
 env CONFIG_ACPI=y \
+env CONFIG_DRM_AMDGPU_CIK=y \
 env src=. \
 make -f Makefile -V '$(amdgpu-y)' \
 | tr ' ' '\n' \
@@ -56,7 +57,9 @@
        }
 ' \
 | while read from to; do
-       if [ "x$from" != "x$to" ]; then
+       # If the move already happened, that's fine: the makefile
+       # detects duplicates.
+       if [ "x$from" != "x$to" -a \! -f "$to" ]; then
                ${MV} -f -- "$from" "$to"
        fi
        printf 'file\t%s\t%s\n' "$amdgpu_top/$to" "$amdgpu_flag"



Home | Main Index | Thread Index | Old Index