VirtualBox

Ignore:
Timestamp:
Feb 20, 2019 4:27:55 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128945
Message:

More linux kernel module Makefile cleansup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile

    r77390 r77394  
    1 #
     1# $Id$
     2## @file
    23# Makefile for the VirtualBox Linux Host Virtual Network Adapter Driver.
    34#
     
    2425#
    2526
     27# Find the directory of this makefile.
     28VBOXNETADPT_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
     29
    2630# Linux kbuild sets this to our source directory if we are called from there
    2731obj ?= $(CURDIR)
    2832include $(obj)/Makefile-header.gmk
    2933
    30 # override is required by the Debian guys
    3134MOD_NAME = vboxnetadp
    3235MOD_OBJS = \
     
    3437        VBoxNetAdp.o
    3538ifeq ($(BUILD_TARGET_ARCH),x86)
    36 MOD_OBJS += math/gcc/divdi3.o \
     39MOD_OBJS += \
     40        math/gcc/divdi3.o \
    3741        math/gcc/moddi3.o \
    3842        math/gcc/qdivrem.o \
    3943        math/gcc/udivdi3.o \
    4044        math/gcc/udivmoddi4.o \
    41         math/gcc/divdi3.o \
     45        math/gcc/divdi3.o \
    4246        math/gcc/umoddi3.o
    4347endif
    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
     48MOD_INCL = \
     49        -I$(VBOXNETADPT_DIR) \
     50        -I$(VBOXNETADPT_DIR)include \
     51        -I$(VBOXNETADPT_DIR)r0drv/linux
     52MOD_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
    4960ifeq ($(BUILD_TARGET_ARCH),amd64)
    5061 MOD_DEFS += -DRT_ARCH_AMD64
     
    5263 MOD_DEFS += -DRT_ARCH_X86
    5364endif
    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
     65MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk!
     66MOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement
    7167
    7268include $(obj)/Makefile-footer.gmk
     69
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette