642N/A# Makefile for the VirtualBox Linux Host PCI Driver. 642N/A# (For 2.6.x this file must be called 'Makefile'!) 642N/A# Copyright (C) 2011 Oracle Corporation 642N/A# This file is part of VirtualBox Open Source Edition (OSE), as 642N/A# you can redistribute it and/or modify it under the terms of the GNU 642N/A# General Public License (GPL) as published by the Free Software 642N/A# Foundation, in version 2 as it comes in the "COPYING" file of the 642N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the 642N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 642N/A# First, figure out which architecture we're targeting and the build type. 642N/A# (We have to support basic cross building (ARCH=i386|x86_64).) 642N/A# While at it, warn about BUILD_* vars found to help with user problems. 642N/A# override is required by the Debian guys 642N/A # building from this directory 642N/A # kernel base directory 642N/A # build for the current kernel, version check 642N/A # module install dir, only for current kernel 642N/Aelse # neq($(KERNELRELEASE),) # building from kbuild (make -C <kernel_directory> M=`pwd`) endif # neq($(KERNELRELEASE),) # IPRT_DEBUG_SEMS indicates thread wrt sems state via the comm field. #KFLAGS += -DIPRT_DEBUG_SEMS # By default we use remap_pfn_range() kernel API to make kernel pages # visible for userland. Unfortunately, it leads to situation that # during debug session all structures on that page (such as PVM pointer) # are not accessible to the debugger (see #3214). # This code enables experimental support # for vm_insert_page() kernel API, allowing to export kernel pages # to the userland in more debugger-friendly way. Due to stability # concerns, not enabled by default yet. # OL/UEK: disable module signing for external modules -- we don't have any private key else # eq ($(MAKECMDGOALS),clean) endif # eq($(MAKECMDGOALS),clean)