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/i915drm Break down and use gmake for i...



details:   https://anonhg.NetBSD.org/src/rev/1f2652c3f4a2
branches:  trunk
changeset: 1027758:1f2652c3f4a2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:25:19 2021 +0000

description:
Break down and use gmake for i915drmkms2netbsd too.


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/i915drm/i915drmkms2netbsd |  17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r a462dbaabcd9 -r 1f2652c3f4a2 sys/external/bsd/drm2/i915drm/i915drmkms2netbsd
--- a/sys/external/bsd/drm2/i915drm/i915drmkms2netbsd   Sun Dec 19 00:25:13 2021 +0000
+++ b/sys/external/bsd/drm2/i915drm/i915drmkms2netbsd   Sun Dec 19 00:25:19 2021 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-#      $NetBSD: i915drmkms2netbsd,v 1.2 2018/08/27 07:55:17 riastradh Exp $
+#      $NetBSD: i915drmkms2netbsd,v 1.3 2021/12/19 00:25:19 riastradh Exp $
 #
 # $ /path/to/i915drmkms2netbsd > /path/to/files.i915drmkms.new
 #
@@ -8,16 +8,23 @@
 
 set -Ceu
 
+: ${GMAKE:=gmake}
+
 # Location of the i915drmkms sources relative to $NETBSDSRCDIR.
 i915drmkms_top=external/bsd/drm2/dist/drm/i915
 
 # config(5) flag for the i915drmkms driver.
 i915drmkms_flag=i915drmkms
 
-env CONFIG_ACPI=y \
-env CONFIG_DRM_FBDEV_EMULATION=y \
-env src=. \
-make -f Makefile -V '$(i915-y)' \
+{
+       printf 'show-i915-y:\n'
+       printf '\t@echo $(i915-y)\n'
+       printf 'include Makefile\n'
+} | env \
+       env CONFIG_ACPI=y \
+       env CONFIG_DRM_FBDEV_EMULATION=y \
+       env src=. \
+       ${GMAKE} -f - -s show-i915-y \
 | tr ' ' '\n' \
 | grep -v '^$' \
 | sed -e 's,\.o$,.c,' \



Home | Main Index | Thread Index | Old Index