VirtualBox

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

Last change on this file since 69498 was 69498, checked in by vboxsync, 7 years ago

backed out r118835 as it incorrectly updated the 'This file is based on' file headers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1# $Id: Makefile.module.kms 69498 2017-10-28 15:07:25Z 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
20# Linux kbuild sets this to our source directory if we are called from there
21obj ?= $(CURDIR)
22include $(obj)/Makefile.include.header
23
24BUILD = 1
25
26# We want to build on Linux 3.11 and later, plus the 3.10 EL 7.3 and later
27# kernels. This file was added in 3.11 and back-ported to the EL 7.3 kernel.
28ifeq ($(wildcard $(KERN_INCL)/drm/drm_rect.h),)
29 BUILD =
30endif
31
32# And we do not want to build on EL6, regardless of what may have been
33# backported.
34ifneq ($(wildcard /etc/redhat-release),)
35 ifneq ($(shell grep "Enterprise.*release 6" /etc/redhat-release),)
36 BUILD =
37 endif
38endif
39
40ifneq ($(BUILD),)
41
42MOD_NAME = vboxvideo
43MOD_OBJS = hgsmi_base.o \
44 modesetting.o vbox_drv.o vbox_fb.o vbox_irq.o vbox_main.o \
45 vbox_mode.o vbox_ttm.o vbva_base.o vbox_prime.o vbox_hgsmi.o
46MOD_INCL = -I$(KBUILD_EXTMOD) -Iinclude/drm
47
48include $(obj)/Makefile.include.footer
49
50else # ! wildcard $(KERN_INCL)/drm/drm_rect.h
51
52 all:
53 install:
54 clean:
55
56endif # ! wildcard $(KERN_INCL)/drm/drm_rect.h
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