]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - ubuntu/vbox/vboxvideo/Makefile
UBUNTU: ubuntu: vbox -- update to 5.2.0-dfsg-2
[mirror_ubuntu-bionic-kernel.git] / ubuntu / vbox / vboxvideo / Makefile
CommitLineData
056a1eb7
SF
1KBUILD_EXTMOD=${srctree}/ubuntu/vbox
2# $Id: Makefile.module.kms $
3## @file
4# VirtualBox Guest Additions Module Makefile.
5#
6# (For 2.6.x this file must be 'Makefile'!)
7#
8
9#
10# Copyright (C) 2006-2010 Oracle Corporation
11#
12# This file is part of VirtualBox Open Source Edition (OSE), as
13# available from http://www.virtualbox.org. This file is free software;
14# you can redistribute it and/or modify it under the terms of the GNU
15# General Public License (GPL) as published by the Free Software
16# Foundation, in version 2 as it comes in the "COPYING" file of the
17# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19#
20
21# Linux kbuild sets this to our source directory if we are called from there
22obj ?= $(CURDIR)
23include $(obj)/Makefile.include.header
24
6d209b23 25BUILD = 1
056a1eb7 26
6d209b23
SF
27# We want to build on Linux 3.11 and later, plus the 3.10 EL 7.3 and later
28# kernels. This file was added in 3.11 and back-ported to the EL 7.3 kernel.
29ifeq ($(wildcard $(KERN_INCL)/drm/drm_rect.h),)
30 #BUILD =
056a1eb7
SF
31endif
32
6d209b23
SF
33# And we do not want to build on EL6, regardless of what may have been
34# backported.
35ifneq ($(wildcard /etc/redhat-release),)
36 ifneq ($(shell grep "Enterprise.*release 6" /etc/redhat-release),)
37 BUILD =
38 endif
056a1eb7 39endif
6d209b23
SF
40
41ifneq ($(BUILD),)
42
43MOD_NAME = vboxvideo
44MOD_OBJS = hgsmi_base.o \
45 modesetting.o vbox_drv.o vbox_fb.o vbox_irq.o vbox_main.o \
46 vbox_mode.o vbox_ttm.o vbva_base.o vbox_prime.o vbox_hgsmi.o
47MOD_INCL = -I$(KBUILD_EXTMOD) -Iinclude/drm
056a1eb7
SF
48
49include $(obj)/Makefile.include.footer
6d209b23
SF
50
51else # ! wildcard $(KERN_INCL)/drm/drm_rect.h
52
53 all:
54 install:
55 clean:
56
57endif # ! wildcard $(KERN_INCL)/drm/drm_rect.h