VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile@ 68715

Last change on this file since 68715 was 68682, checked in by vboxsync, 7 years ago

Drivers/Linux: make host kernel modules use make file templates.
bugref:4567: Linux kernel driver maintenance

Rework the make files from the host kernel drivers to use the
Makefile.include.header and Makefile.include.footer templates, and clean up
some obsolete scripting in the make files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1#
2# Makefile for the VirtualBox Linux Host Virtual Network Adapter Driver.
3#
4
5#
6#
7# Copyright (C) 2006-2017 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
18# Linux kbuild sets this to our source directory if we are called from there
19obj ?= $(CURDIR)
20include $(obj)/Makefile.include.header
21
22# override is required by the Debian guys
23MOD_NAME = vboxnetadp
24MOD_OBJS = \
25 linux/VBoxNetAdp-linux.o \
26 VBoxNetAdp.o
27ifeq ($(BUILD_TARGET_ARCH),x86)
28MOD_OBJS += math/gcc/divdi3.o \
29 math/gcc/moddi3.o \
30 math/gcc/qdivrem.o \
31 math/gcc/udivdi3.o \
32 math/gcc/udivmoddi4.o \
33 math/gcc/divdi3.o \
34 math/gcc/umoddi3.o
35endif
36
37MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
38MOD_DEFS = -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX \
39 -DRT_WITH_VBOX -DVBOX_WITH_HARDENING \
40 -Wno-declaration-after-statement
41ifeq ($(BUILD_TARGET_ARCH),amd64)
42 MOD_DEFS += -DRT_ARCH_AMD64
43else
44 MOD_DEFS += -DRT_ARCH_X86
45endif
46# must be consistent with Config.kmk!
47MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS
48
49# By default we use remap_pfn_range() kernel API to make kernel pages
50# visible for userland. Unfortunately, it leads to situation that
51# during debug session all structures on that page (such as PVM pointer)
52# are not accessible to the debugger (see #3214).
53# This code enables experimental support
54# for vm_insert_page() kernel API, allowing to export kernel pages
55# to the userland in more debugger-friendly way. Due to stability
56# concerns, not enabled by default yet.
57ifdef VBOX_USE_INSERT_PAGE
58 KFLAGS += -DVBOX_USE_INSERT_PAGE
59endif
60
61# build defs
62MOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie
63
64include $(obj)/Makefile.include.footer
Note: See TracBrowser for help on using the repository browser.

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