VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/drm/Makefile.kmk@ 58845

Last change on this file since 58845 was 57969, checked in by vboxsync, 9 years ago

Installers/linux: drop DKMS support.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 57969 2015-09-30 14:48:47Z vboxsync $
2## @file
3# Sub-Makefile for the vboxvideo DRM module (linux kernel OpenGL module).
4#
5
6#
7# Copyright (C) 2006-2015 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Populate FILES_VBOXVIDEO_DRM_NOBIN
23#
24INSTALLS += vboxvideo_drm-mod
25if !defined(VBOX_WITH_GUEST_KMS_DRIVER)
26 include $(PATH_SUB_CURRENT)/files_vboxvideo_drm
27else
28 include $(PATH_SUB_CURRENT)/files_vboxvideo_drv
29endif
30vboxvideo_drm-mod_INST = $(INST_ADDITIONS)src/vboxvideo/
31vboxvideo_drm-mod_SOURCES = \
32 $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_NOBIN))
33vboxvideo_drm-mod_EXEC_SOURCES = \
34 $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_BIN))
35
36
37#
38# The kernel module.
39#
40# Note! Syntax checking only. Don't bother if drmP.h is missing (introduced
41# in 2.6.27). For the mode-setting driver make sure this is supported.
42# Note! The DEBUG_HASH* stuff is for CONFIG_DYNAMIC_DEBUG-enabled kernels.
43#
44if defined(VBOX_WITH_ADDITION_DRIVERS)
45 if !defined(VBOX_WITH_GUEST_KMS_DRIVER)
46 if "$(strip $(foreach inc,$(VBOX_LINUX_INCS),$(wildcard $(inc)/drm/drmP.h)))" != ""
47 SYSMODS += vboxvideo_drm
48 endif
49 else
50 if "$(shell grep -s 'DRIVER_MODESET' $(foreach inc,$(VBOX_LINUX_INCS),$(inc)/drm/drmP.h))" != ""
51 SYSMODS += vboxvideo_drm
52 endif
53 endif
54endif
55
56vboxvideo_drm_TEMPLATE = VBOXGUESTR0
57vboxvideo_drm_CFLAGS = -fshort-wchar
58vboxvideo_drm_DEFS = \
59 MODULE IN_RT_R0 VBOXGUEST VBOX_WITH_HGCM \
60 KBUILD_MODNAME=KBUILD_STR\(vboxvideo\) \
61 KBUILD_BASENAME=KBUILD_STR\(vboxvideo\) \
62 DEBUG_HASH=2 DEBUG_HASH2=3
63if !defined(VBOX_WITH_GUEST_KMS_DRIVER)
64 vboxvideo_drm_SOURCES = vboxvideo_drm.c
65else
66 vboxvideo_drm_INCS += \
67 ../../../Runtime/include \
68 ../../../Runtime/r0drv/linux
69 vboxvideo_drm_SOURCES = \
70 ../../common/VBoxVideo/HGSMIBase.cpp \
71 ../../common/VBoxVideo/Modesetting.cpp \
72 ../../common/VBoxVideo/VBVABase.cpp \
73 ../../../GuestHost/HGSMI/HGSMICommon.cpp \
74 ../../../GuestHost/HGSMI/HGSMIMemAlloc.cpp \
75 ../../../Runtime/common/alloc/heapoffset.cpp \
76 vbox_drv.c \
77 vbox_fb.c \
78 vbox_main.c \
79 vbox_mode.c \
80 vbox_ttm.c
81endif
82
83include $(FILE_KBUILD_SUB_FOOTER)
84
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette