VirtualBox

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

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

HostDrivers, Additions: remove more rules for compiling Linux R0 modules

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# $Id: Makefile.kmk 66072 2017-03-13 20:15:33Z vboxsync $
2## @file
3# Sub-Makefile for the PCI passthru driver (VBoxPci).
4#
5
6#
7# Copyright (C) 2011-2016 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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20if1of ($(KBUILD_TARGET), )
21
22 ifdef VBOX_WITH_VBOXDRV
23 #
24 # The driver.
25 # Note! For Linux, this is just a compile test. Don't use the binary!
26 #
27 SYSMODS += VBoxPci
28 VBoxPci_TEMPLATE = VBOXR0DRV
29 VBoxPci_INST = $(INST_VBOXPCI)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/)
30 VBoxPci_NAME.linux = vboxpci
31 VBoxPci_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC
32 VBoxPci_INCS = \
33 .
34 VBoxPci_SOURCES = \
35 VBoxPci.c
36 VBoxPci_LIBS += \
37 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
38 endif
39
40 #
41 # Install the sources.
42 #
43 include $(PATH_SUB_CURRENT)/linux/files_vboxpci
44 INSTALLS += VBoxPci-src
45 VBoxPci-src_INST = bin/src/vboxpci/
46 VBoxPci-src_SOURCES = \
47 $(subst $(DQUOTE),,$(VBOX_VBOXPCI_SOURCES)) \
48 $(VBoxPci-src_0_OUTDIR)/Makefile
49 VBoxPci-src_CLEAN = \
50 $(VBoxPci-src_0_OUTDIR)/Makefile \
51 $(PATH_TARGET)/VBoxPciSrc-src-1.dep \
52
53 # Generate the scripts needed for building the kernel module.
54
55 includedep $(PATH_TARGET)/VBoxPci-src-1.dep
56$$(VBoxPci-src_0_OUTDIR)/Makefile: \
57 $(PATH_SUB_CURRENT)/linux/Makefile \
58 $$(if $$(eq $$(VBoxPci/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
59 | $$(dir $$@)
60 $(QUIET)$(RM) -f -- $@
61 ifndef VBOX_WITH_HARDENING
62 $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
63 else
64 $(QUIET)$(CP) -f $< $@
65 endif
66 %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/VBoxPci-src-1.dep' 'VBoxPci/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
67
68endif # Supported platform.
69include $(FILE_KBUILD_SUB_FOOTER)
70
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle
ContactPrivacy/Do Not Sell My InfoTerms of Use