VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxPci/Makefile.kmk@ 78395

Last change on this file since 78395 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
2## @file
3# Sub-Makefile for the PCI passthru driver (VBoxPci).
4#
5
6#
7# Copyright (C) 2011-2019 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
27SUB_DEPTH = ../../../..
28include $(KBUILD_PATH)/subheader.kmk
29if1of ($(KBUILD_TARGET), linux)
30
31 ifdef VBOX_WITH_VBOXDRV
32 #
33 # The driver.
34 #
35 SYSMODS += VBoxPci
36 VBoxPci_TEMPLATE = VBOXR0DRV
37 VBoxPci_INST = $(INST_VBOXPCI)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/)
38 VBoxPci_NAME.linux = vboxpci
39 VBoxPci_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC
40 VBoxPci_INCS = \
41 .
42 VBoxPci_SOURCES = \
43 VBoxPci.c
44 VBoxPci_LIBS += \
45 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
46 endif
47
48 #
49 # Install the sources.
50 #
51 include $(PATH_SUB_CURRENT)/linux/files_vboxpci
52 INSTALLS += VBoxPci-src
53 VBoxPci-src_INST = bin/src/vboxpci/
54 VBoxPci-src_SOURCES = \
55 $(subst $(DQUOTE),,$(VBOX_VBOXPCI_SOURCES)) \
56 $(VBoxPci-src_0_OUTDIR)/Makefile
57 VBoxPci-src_CLEAN = \
58 $(VBoxPci-src_0_OUTDIR)/Makefile \
59 $(PATH_TARGET)/VBoxPciSrc-src-1.dep \
60
61 # Generate the scripts needed for building the kernel module.
62
63 includedep $(PATH_TARGET)/VBoxPci-src-1.dep
64$$(VBoxPci-src_0_OUTDIR)/Makefile: \
65 $(PATH_SUB_CURRENT)/linux/Makefile \
66 $$(if $$(eq $$(VBoxPci/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
67 | $$(dir $$@)
68 $(QUIET)$(RM) -f -- $@
69 ifndef VBOX_WITH_HARDENING
70 $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
71 else
72 $(QUIET)$(CP) -f $< $@
73 endif
74 %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/VBoxPci-src-1.dep' 'VBoxPci/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
75
76 #
77 # Build test for the linux host kernel modules.
78 #
79 $(evalcall2 VBOX_LINUX_KMOD_TEST_BUILD_RULE_FN,VBoxPci-src,vboxdrv-src,)
80
81endif # Supported platform.
82include $(FILE_KBUILD_SUB_FOOTER)
83
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