Changeset 77394 in vbox for trunk/src/VBox/HostDrivers/VBoxNetAdp
- 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/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
Note:
See TracChangeset
for help on using the changeset viewer.