VirtualBox

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

Last change on this file since 85939 was 85939, checked in by vboxsync, 4 years ago

Additions/linux/Makefile, HostDrivers/linux/Makefile: Many cleanups in the Linux kernel module Makefiles, making them more uniform, and allow install of individual modules. Additionally, allow building of the kernel modules straight from the respective subdirectory (no dependencies across directories, so vboxdrv/vboxguest still needs to be built first, otherwise you end up with undefined symbols). Finally some parallelization improvements. At the top level still uses the Module.symvers copying and somewhat quirky KBUILD_EXTRA_SYMBOLS pointing to the copy, because this is backwards compatible to before KBUILD_EXTRA_SYMBOLS was invented.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1# $Id: Makefile.module.kms 85939 2020-08-28 18:36:30Z 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-2020 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
20# Linux kbuild sets this to our source directory if we are called from there
21obj ?= $(CURDIR)
22include $(obj)/Makefile-header.gmk
23VBOXDRM_DIR = $(VBOX_MODULE_SRC_DIR)
24
25# Allow building directly from the subdirectory without assuming the toplevel
26# makefile has done the copying. Not the default use case, but can be handy.
27ifndef KBUILD_EXTRA_SYMBOLS
28KBUILD_EXTRA_SYMBOLS=$(abspath $(VBOXDRM_DIR)/../vboxguest/Module.symvers)
29endif
30
31# We want to build on Linux 3.11 and later and on all EL 7 kernels.
32VBOX_BUILD =
33ifneq ($(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)),)
34 VBOX_BUILD = 1
35endif
36ifeq ($(filter-out %.el7.x86_64,$(KERN_VER)),)
37 VBOX_BUILD = 1
38endif
39
40ifneq ($(VBOX_BUILD),)
41
42VBOXMOD_NAME = vboxvideo
43VBOXMOD_OBJS = \
44 hgsmi_base.o \
45 modesetting.o \
46 vbox_drv.o \
47 vbox_fb.o \
48 vbox_irq.o \
49 vbox_main.o \
50 vbox_mode.o \
51 vbox_ttm.o \
52 vbva_base.o \
53 vbox_prime.o \
54 vbox_hgsmi.o
55VBOXMOD_INCL = \
56 $(VBOXDRM_DIR) \
57 $(KERN_INCL)/drm
58
59include $(obj)/Makefile-footer.gmk
60
61else # !VBOX_BUILD
62
63 all:
64 install:
65 clean:
66
67endif # !VBOX_BUILD
68
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