Changeset 77394 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Feb 20, 2019 4:27:55 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128945
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.