Changeset 38183 in vbox for trunk/src/VBox/HostDrivers/VBoxPci
- Timestamp:
- Jul 26, 2011 1:20:51 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73141
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/src/VBox/HostDrivers/VBoxPci/Makefile.kmk
r38082 r38183 1 # $Id$ 2 ## @file 3 # Sub-Makefile for the PCI passthru driver (VBoxPci). 4 # 5 6 # 7 # Copyright (C) 2011 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 1 18 SUB_DEPTH = ../../../.. 2 19 include $(KBUILD_PATH)/subheader.kmk 3 4 ifeq (1,1)5 6 20 if1of ($(KBUILD_TARGET), linux) 7 21 8 SYSMODS += VBoxPci 9 VBoxPci_TEMPLATE = VBOXR0DRV 10 VBoxPci_INST = $(INST_VBOXPCI)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/) 11 VBoxPci_NAME.linux = vboxpci 12 VBoxPci_NOINST.linux = true 13 VBoxPci_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC 14 VBoxPci_DEFS.linux = KBUILD_MODNAME=KBUILD_STR\(vboxpci\) KBUILD_BASENAME=KBUILD_STR\(vboxpci\) MODULE 15 VBoxPci_INCS.linux := \ 16 $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 17 VBoxPci_INCS = \ 18 . 19 VBoxPci_SOURCES.linux = \ 20 linux/VBoxPci-linux.c \ 21 VBoxPci.c 22 VBoxPci_SOURCES = 23 VBoxPci_LIBS += \ 24 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB) 25 26 endif 22 # 23 # The driver. 24 # Note! For Linux, this is just a compile test. Don't use the binary! 25 # 26 SYSMODS += VBoxPci 27 VBoxPci_TEMPLATE = VBOXR0DRV 28 VBoxPci_INST = $(INST_VBOXPCI)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/) 29 VBoxPci_NAME.linux = vboxpci 30 VBoxPci_NOINST.linux = true 31 VBoxPci_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC 32 VBoxPci_DEFS.linux = KBUILD_MODNAME=KBUILD_STR\(vboxpci\) KBUILD_BASENAME=KBUILD_STR\(vboxpci\) MODULE 33 VBoxPci_INCS.linux := \ 34 $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 35 VBoxPci_INCS = \ 36 . 37 VBoxPci_SOURCES.linux = \ 38 linux/VBoxPci-linux.c 39 VBoxPci_SOURCES = \ 40 VBoxPci.c 41 VBoxPci_LIBS += \ 42 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB) 27 43 28 44 29 ifeq ($(KBUILD_TARGET),linux) 45 # 46 # Install the sources. 47 # 48 include $(PATH_SUB_CURRENT)/linux/files_vboxpci 49 INSTALLS += VBoxPci-src 50 VBoxPci-src_INST = bin/src/vboxpci/ 51 VBoxPci-src_SOURCES = \ 52 $(subst $(DQUOTE),,$(VBOX_VBOXPCI_SOURCES)) \ 53 $(VBoxPci-src_0_OUTDIR)/Makefile 54 VBoxPci-src_EXEC_SOURCES = \ 55 $(VBoxPci-src_0_OUTDIR)/build_in_tmp \ 56 $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers 57 VBoxPci-src_CLEAN = \ 58 $(VBoxPci-src_0_OUTDIR)/Makefile \ 59 $(PATH_TARGET)/VBoxPciSrc-src-1.dep \ 60 $(VBoxPci-src_0_OUTDIR)/build_in_tmp 30 61 31 include $(PATH_SUB_CURRENT)/linux/files_vboxpci62 # Generate the scripts needed for building the kernel module. 32 63 33 INSTALLS += VBoxPci-src VBoxPci-sh 34 35 VBoxPci-src_INST = bin/src/vboxpci/ 36 VBoxPci-src_MODE = a+r,u+w 37 VBoxPci-src_SOURCES = $(subst ",,$(VBOX_VBOXPCI_SOURCES)) #" 38 VBoxPci-src_SOURCES+= \ 39 $(VBoxPci-src_0_OUTDIR)/Makefile 40 VBoxPci-src_CLEAN = \ 41 $(VBoxPci-src_0_OUTDIR)/Makefile \ 42 $(PATH_TARGET)/VBoxPciSrc-src-1.dep 43 44 VBoxPci-sh_INST = bin/src/vboxpci/ 45 VBoxPci-sh_MODE = a+rx,u+w 46 VBoxPci-sh_SOURCES = \ 47 $(VBoxPci-sh_0_OUTDIR)/build_in_tmp \ 48 $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers 49 VBoxPci-sh_CLEAN = $(VBoxPci-sh_0_OUTDIR)/build_in_tmp 50 51 52 includedep $(PATH_TARGET)/VBoxPci-src-1.dep 64 includedep $(PATH_TARGET)/VBoxPci-src-1.dep 53 65 $$(VBoxPci-src_0_OUTDIR)/Makefile: \ 54 66 $(PATH_SUB_CURRENT)/linux/Makefile \ 55 67 $$(if $$(eq $$(VBoxPci/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 56 68 | $$(dir $$@) 57 ifndef VBOX_WITH_HARDENING 69 $(QUIET)$(RM) -f -- $@ 70 ifndef VBOX_WITH_HARDENING 58 71 $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $< 59 else72 else 60 73 $(QUIET)$(CP) -f $< $@ 61 endif 62 %$(QUIET2)$(RM) -f -- $(PATH_TARGET)/VBoxPci-src-1.dep 63 %$(QUIET2)$(APPEND) '$(PATH_TARGET)/VBoxPci-src-1.dep' 'VBoxPci/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)' 74 endif 75 %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/VBoxPci-src-1.dep' 'VBoxPci/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)' 64 76 65 ## Scripts needed for building the kernel modules 66 67 $$(VBoxPci-sh_0_OUTDIR)/build_in_tmp: \ 77 $$(VBoxPci-src_0_OUTDIR)/build_in_tmp: \ 68 78 $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \ 69 79 $(VBOX_VERSION_STAMP) \ 70 80 | $$(dir $$@) 71 81 $(call MSG_TOOL,Creating,,$@) 82 $(QUIET)$(RM) -f -- $@ 72 83 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxpci;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $< 73 $(QUIET)chmod 0755 $@ 74 endif 84 $(QUIET)$(CHMOD) 0755 $@ 75 85 76 endif 86 endif # Supported platform. 87 include $(KBUILD_PATH)/subfooter.kmk 77 88 78 include $(KBUILD_PATH)/subfooter.kmk
Note:
See TracChangeset
for help on using the changeset viewer.