1 | # $Id: Makefile.kmk 62527 2016-07-22 19:18:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the vboxvideo DRM module (linux kernel OpenGL module).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Populate FILES_VBOXVIDEO_DRM_NOBIN
|
---|
23 | #
|
---|
24 | INSTALLS += vboxvideo_drm-mod
|
---|
25 | include $(PATH_SUB_CURRENT)/files_vboxvideo_drv
|
---|
26 | vboxvideo_drm-mod_INST = $(INST_ADDITIONS)src/vboxvideo/
|
---|
27 | vboxvideo_drm-mod_SOURCES = \
|
---|
28 | $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_NOBIN))
|
---|
29 | vboxvideo_drm-mod_EXEC_SOURCES = \
|
---|
30 | $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_BIN))
|
---|
31 |
|
---|
32 |
|
---|
33 | #
|
---|
34 | # The kernel module.
|
---|
35 | #
|
---|
36 | # Note! Syntax checking only. Don't bother if drmP.h is missing (introduced
|
---|
37 | # in 2.6.27). For the mode-setting driver make sure this is supported.
|
---|
38 | # Note! The DEBUG_HASH* stuff is for CONFIG_DYNAMIC_DEBUG-enabled kernels.
|
---|
39 | #
|
---|
40 | if defined(VBOX_WITH_ADDITION_DRIVERS)
|
---|
41 | if "$(shell grep -s 'DRM_IOCTL_MODE_CURSOR2' $(foreach inc,$(VBOX_LINUX_INCS),$(inc)/uapi/drm/drm.h))" != ""
|
---|
42 | SYSMODS += vboxvideo_drm
|
---|
43 | endif
|
---|
44 | endif
|
---|
45 |
|
---|
46 | vboxvideo_drm_TEMPLATE = VBOXGUESTR0
|
---|
47 | vboxvideo_drm_CFLAGS = -fshort-wchar
|
---|
48 | vboxvideo_drm_DEFS = \
|
---|
49 | MODULE IN_RT_R0 VBOXGUEST VBOX_WITH_HGCM \
|
---|
50 | KBUILD_MODNAME=KBUILD_STR\(vboxvideo\) \
|
---|
51 | KBUILD_BASENAME=KBUILD_STR\(vboxvideo\) \
|
---|
52 | DEBUG_HASH=2 DEBUG_HASH2=3
|
---|
53 | vboxvideo_drm_INCS += \
|
---|
54 | ../../../Runtime/include \
|
---|
55 | ../../../Runtime/r0drv/linux
|
---|
56 | vboxvideo_drm_SOURCES = \
|
---|
57 | ../../common/VBoxVideo/HGSMIBase.cpp \
|
---|
58 | ../../common/VBoxVideo/Modesetting.cpp \
|
---|
59 | ../../common/VBoxVideo/VBVABase.cpp \
|
---|
60 | ../../../GuestHost/HGSMI/HGSMICommon.cpp \
|
---|
61 | ../../../GuestHost/HGSMI/HGSMIMemAlloc.cpp \
|
---|
62 | ../../../Runtime/common/alloc/heapoffset.cpp \
|
---|
63 | vbox_drv.c \
|
---|
64 | vbox_fb.c \
|
---|
65 | vbox_irq.c \
|
---|
66 | vbox_main.c \
|
---|
67 | vbox_mode.c \
|
---|
68 | vbox_ttm.c
|
---|
69 |
|
---|
70 | vbox_drv.c_DEPS = $(VBOX_SVN_REV_HEADER)
|
---|
71 |
|
---|
72 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
73 |
|
---|