Source-Changes-HG archive

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

[src/trunk]: src/sys/modules/i915drmkms Make i915drmkms.kmod build again.



details:   https://anonhg.NetBSD.org/src/rev/d9461ce8a480
branches:  trunk
changeset: 835283:d9461ce8a480
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 13:54:25 2018 +0000

description:
Make i915drmkms.kmod build again.

diffstat:

 sys/modules/i915drmkms/Makefile |  91 ++++++++++++++++++++++++++--------------
 1 files changed, 59 insertions(+), 32 deletions(-)

diffs (149 lines):

diff -r 83e4f0324dd8 -r d9461ce8a480 sys/modules/i915drmkms/Makefile
--- a/sys/modules/i915drmkms/Makefile   Mon Aug 27 13:54:15 2018 +0000
+++ b/sys/modules/i915drmkms/Makefile   Mon Aug 27 13:54:25 2018 +0000
@@ -1,18 +1,41 @@
-# $NetBSD: Makefile,v 1.8 2015/08/21 09:10:48 christos Exp $
+# $NetBSD: Makefile,v 1.9 2018/08/27 13:54:25 riastradh Exp $
 
 .include "../Makefile.inc"
 .include "../drmkms/Makefile.inc"
 
-CPPFLAGS+=     -I${S}/external/bsd/drm2/dist/drm/i915
-CPPFLAGS+=     -I${S}/external/bsd/drm2/i915drm
-
-.PATH: ${S}/external/bsd/drm2/i915drm
-.PATH: ${S}/external/bsd/drm2/dist/drm/i915
-
 KMOD=  i915drmkms
 IOCONF=        i915drmkms.ioconf
 MKLDSCRIPT=yes
 
+.PATH: ${S}/external/bsd/drm2/i915drm
+
+.PATH: ${S}/external/bsd/drm2/dist/drm/i915
+
+CPPFLAGS+=     -I${S}/external/bsd/drm2/i915drm
+
+CPPFLAGS+=     -I${S}/external/bsd/drm2/dist/drm/i915
+
+CPPFLAGS+=     -DCONFIG_DRM_I915_FBDEV=1
+CPPFLAGS+=     -DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0
+
+# Substitute for _KERNEL_OPT flags.
+CPPFLAGS+=     -DNACPICA=1
+CPPFLAGS+=     -DNVGA=1
+
+CWARNFLAGS+=   -Wno-shadow
+
+COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
+COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}
+
+# NetBSD additions.
+SRCS+= i915_module.c
+SRCS+= i915_pci.c
+SRCS+= intel_gtt.c
+
+# wsconsole framebuffer.
+SRCS+= intelfb.c
+
+# Upstream sources.
 SRCS+= dvo_ch7017.c
 SRCS+= dvo_ch7xxx.c
 SRCS+= dvo_ivch.c
@@ -20,67 +43,71 @@
 SRCS+= dvo_sil164.c
 SRCS+= dvo_tfp410.c
 SRCS+= i915_cmd_parser.c
-#SRCS+=        i915_debugfs.c          # XXX No debugfs in NetBSD.
 SRCS+= i915_dma.c
 SRCS+= i915_drv.c
 SRCS+= i915_gem.c
+SRCS+= i915_gem_batch_pool.c
 SRCS+= i915_gem_context.c
 SRCS+= i915_gem_debug.c
-#SRCS+=        i915_gem_dmabuf.c
+#SRCS+=        i915_gem_dmabuf.c       # XXX drm prime
 SRCS+= i915_gem_evict.c
 SRCS+= i915_gem_execbuffer.c
+SRCS+= i915_gem_fence.c
 SRCS+= i915_gem_gtt.c
+SRCS+= i915_gem_render_state.c
+SRCS+= i915_gem_shrinker.c
 SRCS+= i915_gem_stolen.c
 SRCS+= i915_gem_tiling.c
+SRCS+= i915_gem_userptr.c
 SRCS+= i915_gpu_error.c
-#SRCS+=        i915_ioc32.c
+SRCS+= i915_guc_submission.c
 SRCS+= i915_irq.c
 SRCS+= i915_params.c
 SRCS+= i915_suspend.c
-SRCS+= i915_sysfs.c            # XXX No sysfs in NetBSD.
-SRCS+= i915_ums.c
+SRCS+= i915_sysfs.c
+SRCS+= i915_trace_points.c
+SRCS+= i915_vgpu.c
 SRCS+= intel_acpi.c
+SRCS+= intel_atomic.c
+SRCS+= intel_atomic_plane.c
+SRCS+= intel_audio.c
 SRCS+= intel_bios.c
 SRCS+= intel_crt.c
 SRCS+= intel_ddi.c
 SRCS+= intel_display.c
 SRCS+= intel_dp.c
+SRCS+= intel_dp_mst.c
 SRCS+= intel_dsi.c
-SRCS+= intel_dsi_cmd.c
-SRCS+= intel_dsi_pll.c
+#SRCS+=        intel_dsi_panel_vbt.c
+#SRCS+=        intel_dsi_pll.c
 SRCS+= intel_dvo.c
+SRCS+= intel_fbc.c
 SRCS+= intel_fbdev.c
+SRCS+= intel_fifo_underrun.c
+SRCS+= intel_frontbuffer.c
+SRCS+= intel_guc_loader.c
 SRCS+= intel_hdmi.c
+SRCS+= intel_hotplug.c
 SRCS+= intel_i2c.c
+SRCS+= intel_lrc.c
 SRCS+= intel_lvds.c
+SRCS+= intel_mocs.c
 SRCS+= intel_modes.c
 SRCS+= intel_opregion.c
 SRCS+= intel_overlay.c
 SRCS+= intel_panel.c
 SRCS+= intel_pm.c
+SRCS+= intel_psr.c
+SRCS+= intel_renderstate_gen6.c
+SRCS+= intel_renderstate_gen7.c
+SRCS+= intel_renderstate_gen8.c
+SRCS+= intel_renderstate_gen9.c
 SRCS+= intel_ringbuffer.c
+SRCS+= intel_runtime_pm.c
 SRCS+= intel_sdvo.c
 SRCS+= intel_sideband.c
 SRCS+= intel_sprite.c
 SRCS+= intel_tv.c
 SRCS+= intel_uncore.c
 
-SRCS+= i915_module.c
-SRCS+= i915_pci.c
-SRCS+= intel_gtt.c
-SRCS+= intelfb.c
-
-COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
-COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}
-
-COPTS.intel_display.c+=        -Wno-shadow -Wno-conversion
-COPTS.intel_panel.c+=  -Wno-shadow
-COPTS.intel_pm.c+=     -Wno-shadow
-
-CPPFLAGS+=             -DCONFIG_DRM_I915_FBDEV=1
-CPPFLAGS+=             -DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0
-
-CPPFLAGS+=             -DNACPICA=1
-CPPFLAGS+=             -DNVGA=1
-
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index