[Pkg-virtualbox-devel] Bug#785161: Bug#785161: kbuild: module-assistant fails to build virtualbox-source

Frank Mehnert frank.mehnert at oracle.com
Wed May 13 12:52:22 UTC 2015


Hi Lorenzo,

On Wednesday 13 May 2015 14:23:09 lorenz lor wrote:
> I'm a bit confused about the snipped you post: if I understand right, the
> point is that  " kbuild is not meant to build vbox kernel modules".
> So to build the modules I'm supposed to do something like
> ./configure
> make
> make install
> ?
> is that right?

No.

I'm talking about VirtualBox. To build the sources you need to do

  ./configure
  kmk
  kmk packing

This builds the whole tree and as part of the compilation process, the kernel
modules are built as well but these modules are NOT meant to be actually used.
To compile the Linux kernel modules, do

  ./src/VBox/HostDrivers/Support/linux/export_modules ~/vboxhost.tar.gz

Then extract the resulting archive and do

  make

in the resulting directory. This will compile the kernel modules against the
currently installed kernel sources.

  make install

Will install the kernel modules into /lib/modules/...

Please be aware that kmk as part of kBuild is something completely different
than Linux kbuild (= kernel build system).

Frank
-- 
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20150513/838d449f/attachment-0001.sig>


More information about the Pkg-virtualbox-devel mailing list