VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/linux/Makefile.kmk@ 40029

Last change on this file since 40029 was 39474, checked in by vboxsync, 13 years ago

Added a loadall.sh on linux as well (see darwin). This builds the driver as the current user and sudos to root for the reloading. Also moved the linux/freebsd specific makefile mess down into the respective directories.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1# $Id: Makefile.kmk 39474 2011-11-30 12:46:12Z vboxsync $
2## @file
3# Sub-makefile for the Linux host driver helper scripts.
4#
5
6#
7# Copyright (C) 2006-2011 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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21INSTALLS += HostDrivers-scripts
22HostDrivers-scripts_INST = $(INST_DIST)
23HostDrivers-scripts_SOURCES = \
24 Makefile=>src/Makefile \
25 $(HostDrivers-scripts_0_OUTDIR)/dkms.conf=>src/dkms.conf
26HostDrivers-scripts_EXEC_SOURCES = \
27 loadall.sh \
28 do_dkms=>src/do_dkms \
29 build_in_tmp=>src/build_in_tmp
30HostDrivers-scripts_CLEAN = \
31 $(HostDrivers-scripts_0_OUTDIR)/dkms.conf
32
33$$(HostDrivers-scripts_0_OUTDIR)/dkms.conf: \
34 $(PATH_SUB_CURRENT)/dkms.conf \
35 $(VBOX_VERSION_STAMP) \
36 | $$(dir $$@)
37 $(call MSG_TOOL,Creating,,$@)
38 $(QUIET)$(SED) \
39 -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
40 -e "s;_OMIT_VBOXNETFLT_;$(if $(VBOX_WITH_NETFLT),,#);g" \
41 -e "s;_OMIT_VBOXNETADP_;$(if $(VBOX_WITH_NETADP),,#);g" \
42 -e "s;_OMIT_VBOXPCI_;$(if $(VBOX_WITH_PCI_PASSTHROUGH),,#);g" \
43 --output $@ $<
44
45include $(KBUILD_PATH)/subfooter.kmk
46
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