VirtualBox

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

Last change on this file was 107605, checked in by vboxsync, 5 days ago

Additions: Linux: vboxvideo: Additional fix for UBSAN warnings, bugref:10585.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1# $Id: Makefile.module.kms 107605 2025-01-09 17:32:38Z 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-2024 Oracle and/or its affiliates.
10#
11# This file is part of VirtualBox base platform packages, as
12# available from https://www.virtualbox.org.
13#
14# This program is free software; you can redistribute it and/or
15# modify it under the terms of the GNU General Public License
16# as published by the Free Software Foundation, in version 3 of the
17# License.
18#
19# This program is distributed in the hope that it will be useful, but
20# WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22# General Public License for more details.
23#
24# You should have received a copy of the GNU General Public License
25# along with this program; if not, see <https://www.gnu.org/licenses>.
26#
27# SPDX-License-Identifier: GPL-3.0-only
28#
29
30# Linux kbuild sets this to our source directory if we are called from there
31obj ?= $(CURDIR)
32include $(obj)/Makefile-header.gmk
33VBOXDRM_DIR = $(VBOX_MODULE_SRC_DIR)
34
35# We want to build on Linux 3.11 and later and on all EL 7 kernels.
36VBOX_BUILD =
37ifneq ($(filter-out 1.% 2.% 3.0 3.0.% 3.1 3.1.% 3.2 3.2.% 3.3 3.3.% 3.4 3.4.% 3.5 3.5.% 3.6 3.6.% 3.7 3.7.% 3.8 3.8.% 3.9 3.9.% 3.10 3.10.%,$(KERN_VER)),)
38 VBOX_BUILD = 1
39endif
40ifeq ($(filter-out %.el7.x86_64,$(KERN_VER)),)
41 VBOX_BUILD = 1
42endif
43
44ifneq ($(VBOX_BUILD),)
45
46VBOXMOD_NAME = vboxvideo
47VBOXMOD_CFLAGS = -DRT_OS_LINUX
48VBOXMOD_OBJS = \
49 hgsmi_base.o \
50 modesetting.o \
51 vbox_drv.o \
52 vbox_fb.o \
53 vbox_irq.o \
54 vbox_main.o \
55 vbox_mode.o \
56 vbox_ttm.o \
57 vbva_base.o \
58 vbox_prime.o \
59 vbox_hgsmi.o
60VBOXMOD_INCL = \
61 $(VBOXDRM_DIR) \
62 $(KERN_INCL)/drm
63
64include $(obj)/Makefile-footer.gmk
65
66else # !VBOX_BUILD
67
68 all:
69 install:
70 clean:
71
72endif # !VBOX_BUILD
73
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