- Timestamp:
- Feb 20, 2019 4:27:55 PM (6 years ago)
- Location:
- trunk/src/VBox/HostDrivers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/Makefile
r77390 r77394 25 25 # 26 26 27 # Linux kbuild sets this to our source directory if we are called from 28 # there 27 # Find the directory of this makefile. 28 VBOXDRV_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) 29 30 # Linux kbuild sets this to our source directory if we are called from there 29 31 obj ?= $(CURDIR) 30 32 include $(obj)/Makefile-header.gmk … … 119 121 VBox/log-vbox.o 120 122 ifeq ($(BUILD_TARGET_ARCH),x86) 121 MOD_OBJS += math/gcc/divdi3.o \ 123 MOD_OBJS += \ 124 math/gcc/divdi3.o \ 122 125 math/gcc/moddi3.o \ 123 126 math/gcc/qdivrem.o \ … … 128 131 endif 129 132 ifeq ($(BUILD_TARGET_ARCH),amd64) 130 133 MOD_OBJS += common/alloc/heapsimple.o 131 134 endif 132 135 ifdef VBOX_WITH_NATIVE_DTRACE 133 136 MOD_OBJS += SUPDrvDTrace.o 134 137 endif 135 136 MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux) 138 MOD_INCL = \ 139 -I$(VBOXDRV_DIR) \ 140 -I$(VBOXDRV_DIR)include \ 141 -I$(VBOXDRV_DIR)r0drv/linux 137 142 ifdef VBOX_WITH_NATIVE_DTRACE 138 MOD_INCL += -I/usr/include/linux -I/usr/include 143 MOD_INCL += \ 144 -I/usr/include/linux \ 145 -I/usr/include 139 146 endif 140 MOD_DEFS = -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX \ 141 -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER \ 142 -DVBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITH_EFLAGS_AC_PRESERVING \ 143 -Wno-declaration-after-statement 147 MOD_DEFS = \ 148 -DRT_OS_LINUX \ 149 -DIN_RING0 \ 150 -DIN_RT_R0 \ 151 -DIN_SUP_R0 \ 152 -DVBOX \ 153 -DRT_WITH_VBOX \ 154 -DVBOX_WITH_HARDENING \ 155 -DSUPDRV_WITH_RELEASE_LOGGER \ 156 -DVBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV \ 157 -DIPRT_WITH_EFLAGS_AC_PRESERVING \ 158 -DVBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk! 144 159 ifndef CONFIG_VBOXDRV_FIXEDMAJOR 145 160 MOD_DEFS += -DCONFIG_VBOXDRV_AS_MISC 146 161 endif 147 162 ifdef VBOX_WITH_NATIVE_DTRACE 148 163 MOD_DEFS += -DVBOX_WITH_NATIVE_DTRACE 149 164 endif 150 165 ifeq ($(BUILD_TARGET_ARCH),amd64) 151 166 MOD_DEFS += -DRT_ARCH_AMD64 152 167 else 153 168 MOD_DEFS += -DRT_ARCH_X86 154 169 endif 155 # must be consistent with Config.kmk!156 MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS157 170 ifdef VBOX_WITH_TEXT_MODMEM_HACK 158 171 MOD_DEFS += -DRTMEMALLOC_EXEC_HEAP -DVBOX_WITH_TEXT_MODMEM_HACK 159 172 endif 173 MOD_CFLAGS = -include $(VBOXDRV_DIR)include/VBox/SUPDrvMangling.h \ 174 -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement 160 175 161 # build defs162 MOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h \163 -fno-omit-frame-pointer -fno-pie164 176 165 177 include $(obj)/Makefile-footer.gmk … … 172 184 false; \ 173 185 fi 186 -
trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile
r77390 r77394 1 # 1 # $Id$ 2 ## @file 2 3 # Makefile for the VirtualBox Linux Host Virtual Network Adapter Driver. 3 4 # … … 24 25 # 25 26 27 # Find the directory of this makefile. 28 VBOXNETADPT_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) 29 26 30 # Linux kbuild sets this to our source directory if we are called from there 27 31 obj ?= $(CURDIR) 28 32 include $(obj)/Makefile-header.gmk 29 33 30 # override is required by the Debian guys31 34 MOD_NAME = vboxnetadp 32 35 MOD_OBJS = \ … … 34 37 VBoxNetAdp.o 35 38 ifeq ($(BUILD_TARGET_ARCH),x86) 36 MOD_OBJS += math/gcc/divdi3.o \ 39 MOD_OBJS += \ 40 math/gcc/divdi3.o \ 37 41 math/gcc/moddi3.o \ 38 42 math/gcc/qdivrem.o \ 39 43 math/gcc/udivdi3.o \ 40 44 math/gcc/udivmoddi4.o \ 41 45 math/gcc/divdi3.o \ 42 46 math/gcc/umoddi3.o 43 47 endif 44 45 MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux) 46 MOD_DEFS = -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX \ 47 -DRT_WITH_VBOX -DVBOX_WITH_HARDENING \ 48 -Wno-declaration-after-statement 48 MOD_INCL = \ 49 -I$(VBOXNETADPT_DIR) \ 50 -I$(VBOXNETADPT_DIR)include \ 51 -I$(VBOXNETADPT_DIR)r0drv/linux 52 MOD_DEFS = \ 53 -DRT_OS_LINUX \ 54 -DIN_RING0 \ 55 -DIN_RT_R0 \ 56 -DIN_SUP_R0 \ 57 -DVBOX \ 58 -DRT_WITH_VBOX \ 59 -DVBOX_WITH_HARDENING 49 60 ifeq ($(BUILD_TARGET_ARCH),amd64) 50 61 MOD_DEFS += -DRT_ARCH_AMD64 … … 52 63 MOD_DEFS += -DRT_ARCH_X86 53 64 endif 54 # must be consistent with Config.kmk! 55 MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS 56 57 # By default we use remap_pfn_range() kernel API to make kernel pages 58 # visible for userland. Unfortunately, it leads to situation that 59 # during debug session all structures on that page (such as PVM pointer) 60 # are not accessible to the debugger (see #3214). 61 # This code enables experimental support 62 # for vm_insert_page() kernel API, allowing to export kernel pages 63 # to the userland in more debugger-friendly way. Due to stability 64 # concerns, not enabled by default yet. 65 ifdef VBOX_USE_INSERT_PAGE 66 KFLAGS += -DVBOX_USE_INSERT_PAGE 67 endif 68 69 # build defs 70 MOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie 65 MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk! 66 MOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement 71 67 72 68 include $(obj)/Makefile-footer.gmk 69 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/Makefile
r77390 r77394 1 # 1 # $Id$ 2 ## @file 2 3 # Makefile for the VirtualBox Linux Host Network Filter Driver. 3 4 # … … 24 25 # 25 26 26 # Linux kbuild sets this to our source directory if we are called from 27 # there 27 # Find the directory of this makefile. 28 VBOXNETFLT_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) 29 30 # Linux kbuild sets this to our source directory if we are called from there 28 31 obj ?= $(CURDIR) 29 32 include $(obj)/Makefile-header.gmk … … 36 39 SUPR0IdcClientComponent.o \ 37 40 linux/SUPR0IdcClient-linux.o 38 39 41 ifeq ($(BUILD_TARGET_ARCH),x86) 40 MOD_OBJS += math/gcc/divdi3.o \ 42 MOD_OBJS += \ 43 math/gcc/divdi3.o \ 41 44 math/gcc/moddi3.o \ 42 45 math/gcc/qdivrem.o \ 43 46 math/gcc/udivdi3.o \ 44 47 math/gcc/udivmoddi4.o \ 45 48 math/gcc/divdi3.o \ 46 49 math/gcc/umoddi3.o 47 50 endif 48 49 MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux) 50 MOD_DEFS = -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \ 51 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING \ 52 -Wno-declaration-after-statement 51 MOD_INCL = \ 52 -I$(VBOXNETFLT_DIR) \ 53 -I$(VBOXNETFLT_DIR)include \ 54 -I$(VBOXNETFLT_DIR)r0drv/linux 55 MOD_DEFS = \ 56 -DRT_OS_LINUX \ 57 -DIN_RING0 \ 58 -DIN_RT_R0 \ 59 -DIN_SUP_R0 \ 60 -DVBOX \ 61 -DRT_WITH_VBOX \ 62 -DVBOX_WITH_HARDENING \ 63 -DVBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk! 53 64 ifeq ($(BUILD_TARGET_ARCH),amd64) 54 65 MOD_DEFS += -DRT_ARCH_AMD64 55 66 else 56 67 MOD_DEFS += -DRT_ARCH_X86 57 68 endif 58 # must be consistent with Config.kmk! 59 MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS 60 61 # By default we use remap_pfn_range() kernel API to make kernel pages 62 # visible for userland. Unfortunately, it leads to situation that 63 # during debug session all structures on that page (such as PVM pointer) 64 # are not accessible to the debugger (see #3214). 65 # This code enables experimental support 66 # for vm_insert_page() kernel API, allowing to export kernel pages 67 # to the userland in more debugger-friendly way. Due to stability 68 # concerns, not enabled by default yet. 69 ifdef VBOX_USE_INSERT_PAGE 70 KFLAGS += -DVBOX_USE_INSERT_PAGE 71 endif 72 73 # build defs 74 MOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie 69 MOD_CFLAGS = -include $(VBOXNETFLT_DIR)include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement 75 70 76 71 include $(obj)/Makefile-footer.gmk 72 -
trunk/src/VBox/HostDrivers/VBoxPci/linux/Makefile
r77390 r77394 1 # 1 # $Id$ 2 ## @file 2 3 # Makefile for the VirtualBox Linux Host PCI Driver. 3 4 # … … 24 25 # 25 26 27 # Find the directory of this makefile. 28 VBOXPCI_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) 29 26 30 # Linux kbuild sets this to our source directory if we are called from there 27 31 obj ?= $(CURDIR) … … 30 34 # override is required by the Debian guys 31 35 MOD_NAME = vboxpci 32 MOD_OBJS = \ 33 linux/VBoxPci-linux.o \ 34 VBoxPci.o \ 35 SUPR0IdcClient.o \ 36 SUPR0IdcClientComponent.o \ 37 linux/SUPR0IdcClient-linux.o 38 36 MOD_OBJS = \ 37 linux/VBoxPci-linux.o \ 38 VBoxPci.o \ 39 SUPR0IdcClient.o \ 40 SUPR0IdcClientComponent.o \ 41 linux/SUPR0IdcClient-linux.o 39 42 ifeq ($(BUILD_TARGET_ARCH),x86) 40 MOD_OBJS += math/gcc/divdi3.o \ 41 math/gcc/moddi3.o \ 42 math/gcc/qdivrem.o \ 43 math/gcc/udivdi3.o \ 44 math/gcc/udivmoddi4.o \ 45 math/gcc/divdi3.o \ 43 MOD_OBJS += \ 44 math/gcc/divdi3.o \ 45 math/gcc/moddi3.o \ 46 math/gcc/qdivrem.o \ 47 math/gcc/udivdi3.o \ 48 math/gcc/udivmoddi4.o \ 49 math/gcc/divdi3.o \ 46 50 math/gcc/umoddi3.o 47 51 endif 48 49 MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux) 50 MOD_DEFS = -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX \ 51 -DRT_WITH_VBOX -DVBOX_WITH_HARDENING 52 MOD_INCL = \ 53 -I$(VBOXPCI_DIR) \ 54 -I$(VBOXPCI_DIR)include \ 55 -I$(VBOXPCI_DIR)r0drv/linux 56 MOD_DEFS = \ 57 -DRT_OS_LINUX \ 58 -DIN_RING0 \ 59 -DIN_RT_R0 \ 60 -DIN_SUP_R0 \ 61 -DVBOX \ 62 -DRT_WITH_VBOX \ 63 -DVBOX_WITH_HARDENING 52 64 ifeq ($(BUILD_TARGET_ARCH),amd64) 53 MOD_DEFS+= -DRT_ARCH_AMD6465 MOD_DEFS += -DRT_ARCH_AMD64 54 66 else 55 MOD_DEFS+= -DRT_ARCH_X8667 MOD_DEFS += -DRT_ARCH_X86 56 68 endif 57 58 # By default we use remap_pfn_range() kernel API to make kernel pages 59 # visible for userland. Unfortunately, it leads to situation that 60 # during debug session all structures on that page (such as PVM pointer) 61 # are not accessible to the debugger (see #3214). 62 # This code enables experimental support 63 # for vm_insert_page() kernel API, allowing to export kernel pages 64 # to the userland in more debugger-friendly way. Due to stability 65 # concerns, not enabled by default yet. 66 ifdef VBOX_USE_INSERT_PAGE 67 MOD_DEFS += -DVBOX_USE_INSERT_PAGE 68 endif 69 70 # build defs 71 MOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie 69 MOD_CFLAGS = -include $(VBOXPCI_DIR)include/VBox/SUPDrvMangling.h -fno-pie 72 70 73 71 include $(obj)/Makefile-footer.gmk
Note:
See TracChangeset
for help on using the changeset viewer.