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 Switch amdgpu2netbsd to gmake a...
details: https://anonhg.NetBSD.org/src/rev/cb6a1cea9be2
branches: trunk
changeset: 1028283:cb6a1cea9be2
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 10:20:31 2021 +0000
description:
Switch amdgpu2netbsd to gmake and set a few more variables.
diffstat:
sys/external/bsd/drm2/amdgpu/amdgpu2netbsd | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 923d04292ccc -r cb6a1cea9be2 sys/external/bsd/drm2/amdgpu/amdgpu2netbsd
--- a/sys/external/bsd/drm2/amdgpu/amdgpu2netbsd Sun Dec 19 10:20:24 2021 +0000
+++ b/sys/external/bsd/drm2/amdgpu/amdgpu2netbsd Sun Dec 19 10:20:31 2021 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
-# $NetBSD: amdgpu2netbsd,v 1.3 2018/08/27 14:22:47 riastradh Exp $
+# $NetBSD: amdgpu2netbsd,v 1.4 2021/12/19 10:20:31 riastradh Exp $
#
# $ /path/to/amdgpu2netbsd > /path/to/files.amdgpu.new
#
@@ -9,6 +9,7 @@
set -Ceu
+: ${GMAKE:=gmake}
: ${MV:=mv}
# Location of amdgpu sources relative to $NETBSDSOURCEDIR.
@@ -17,10 +18,22 @@
# config(5) flag for the amdgpu driver.
amdgpu_flag=amdgpu
-env CONFIG_ACPI=y \
-env CONFIG_DRM_AMDGPU_CIK=y \
-env src=. \
-make -f Makefile -V '$(amdgpu-y)' \
+{
+ printf 'show-amdgpu-y:\n'
+ printf '\t@echo $(amdgpu-y)\n'
+ printf 'include Makefile\n'
+} | env \
+ env CONFIG_ACPI=y \
+ env CONFIG_DRM_AMDGPU=y \
+ env CONFIG_DRM_AMDGPU_CIK=y \
+ env CONFIG_DRM_AMDGPU_SI=y \
+ env CONFIG_DRM_AMD_ACP=y \
+ env CONFIG_DRM_AMD_DC=y \
+ env CONFIG_DRM_AMD_DC_DCN=y \
+ env CONFIG_DRM_AMD_DC_HDCP=y \
+ env srctree="`pwd`" \
+ env src=. \
+ ${GMAKE} -f - -s show-amdgpu-y \
| tr ' ' '\n' \
| grep -v '^$' \
| sed -e 's,\.o$,.c,' \
Home |
Main Index |
Thread Index |
Old Index