VirtualBox

Changeset 75581 in vbox for trunk/src/VBox/HostDrivers/linux


Ignore:
Timestamp:
Nov 19, 2018 3:44:57 PM (6 years ago)
Author:
vboxsync
Message:

HostDrivers/linux/Makefile: silently skip building on pre-2.6 Linux kernels.
bugref:9165: webtools: create scripts for (re-)creating chroot build jails
This makes it easier to build host modules in a range of chroots by skipping
ones where they are not expected to build. Only done for direct invokation
of the make file. Also, allow separate building of individual drivers for
faster tests.

File:
1 edited

Legend:

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

    r69500 r75581  
    3939 obj-m += vboxpci/
    4040endif
     41
    4142else # ! KBUILD_EXTMOD
    4243
    4344# convenience Makefile without KBUILD_EXTMOD
    4445
    45 KBUILD_VERBOSE =
     46KBUILD_VERBOSE ?=
     47KERN_VER ?= $(shell uname -r)
     48.PHONY: all install clean check unload load vboxdrv vboxnetflt vboxnetadp \
     49    vboxpci
    4650
    47 all:
     51all: vboxdrv vboxnetflt vboxnetadp vboxpci
     52
     53# We want to build on Linux 2.6.18 and later kernels.
     54ifneq ($(filter-out 1.% 2.0.% 2.1.% 2.2.% 2.3.% 2.4.% 2.5.%,$(KERN_VER)),)
     55
     56vboxdrv:
    4857        @echo "=== Building 'vboxdrv' module ==="
    4958        @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxdrv
    5059        @cp vboxdrv/vboxdrv.ko .
    5160        @echo
     61
     62vboxnetflt: vboxdrv
    5263        @if [ -d vboxnetflt ]; then \
    5364            if [ -f vboxdrv/Module.symvers ]; then \
     
    5970            echo; \
    6071        fi
     72
     73vboxnetadp: vboxdrv
    6174        @if [ -d vboxnetadp ]; then \
    6275            if [ -f vboxdrv/Module.symvers ]; then \
     
    6881            echo; \
    6982        fi
     83
     84vboxpci: vboxdrv
    7085        @if [ -d vboxpci ]; then \
    7186            if [ -f vboxdrv/Module.symvers ]; then \
     
    89104            $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxpci install; \
    90105        fi
     106
     107else
     108
     109vboxdrv:
     110vboxnetflt:
     111vboxnetadp:
     112vboxpci:
     113install:
     114
     115endif
    91116
    92117clean:
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