VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/drm/Makefile.module.kms@ 65193

Last change on this file since 65193 was 64732, checked in by vboxsync, 8 years ago

bugref:8087: Additions/x11: support non-root X server: do not build the vboxvideo kernel driver at all on systems where it is not used rather than building a dummy which refuses to load with -EINVAL. This confusing behaviour was reported as a bug in ticketref:16206: vboxvideo.ko unable to be inserted into kernel on CentOS 6/7.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1# $Id: Makefile.module.kms 64732 2016-11-21 20:13:16Z vboxsync $
2## @file
3# VirtualBox Guest Additions Module Makefile.
4#
5# (For 2.6.x this file must be 'Makefile'!)
6#
7
8#
9# Copyright (C) 2006-2010 Oracle Corporation
10#
11# This file is part of VirtualBox Open Source Edition (OSE), as
12# available from http://www.virtualbox.org. This file is free software;
13# you can redistribute it and/or modify it under the terms of the GNU
14# General Public License (GPL) as published by the Free Software
15# Foundation, in version 2 as it comes in the "COPYING" file of the
16# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18#
19
20MY_KERNELRELEASE := $(KERNELRELEASE)
21ifeq ($(MY_KERNELRELEASE),)
22 # as of 2.6.16 KERNELRELEASE is only set if the kernel is configured
23 MY_KERNELRELEASE := $(KERNELVERSION)
24endif
25ifeq ($(filter 1.% 2.% 3.0.% 3.1.% 3.2.% 3.3.% 3.4.% 3.5.% 3.6.% 3.7.% \
263.8.% 3.9.% 3.10.%,$(MY_KERNELRELEASE)),)
27
28# Linux kbuild sets this to our source directory if we are called from there
29obj ?= $(CURDIR)
30include $(obj)/Makefile.include.header
31
32MOD_NAME = vboxvideo
33
34MOD_OBJS = HGSMIBase.o HGSMICommon.o HGSMIMemAlloc.o \
35 Modesetting.o vbox_drv.o vbox_fb.o vbox_irq.o vbox_main.o \
36 vbox_mode.o vbox_ttm.o VBVABase.o
37
38MOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -fno-pie
39MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include)
40# What on earth is this?
41MOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxvideo,/ /include)
42MOD_INCL += -Iinclude/drm
43MOD_DEFS := -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \
44 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE \
45 -DIN_GUEST_R0
46# our module does not export any symbol
47MOD_DEFS += -DRT_NO_EXPORT_SYMBOL
48ifeq ($(BUILD_TARGET_ARCH),amd64)
49 MOD_DEFS += -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS
50else
51 MOD_DEFS += -DRT_ARCH_X86
52endif
53MOD_CLEAN = . linux r0drv r0drv/linux
54
55include $(obj)/Makefile.include.footer
56
57endif
58
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