[Foresight-devel] [Virtualbox kernel module] Rmake problem
Paweł Pogorzelski
pawelpogorzelski at gmail.com
Wed Jul 23 16:43:09 EDT 2008
Hey there,
As pcutler suggested I ask for your help at the dev list.
The problem is virtualbox kernel module - only step missing for having a
fully working virtualbox for Foresight Linux.
The thing is : virtualbox-kernel module recipe cooks fine locally, but
fails terribly at rmake no matter what I do.
It keeps failing with kBuild (available in source package) not found,
though I keep pointing it with proper configure switches.
I attach latest recipe (though it has gone a lot of changes due to
jforbes and doniphon suggestions - none o them worked), and latest
rmake output.
Your advices will be greatly appreciated.
-------------- next part --------------
#
# Copyright (c) 2008 Foresight Linux
# This file is distributed under the terms of the MIT License.
# A copy is available at http://www.rpath.com/permanent/mit-license.html
#
class VirtualboxKernel(CPackageRecipe):
name = 'virtualbox-kernel'
version = '1.6.2'
buildRequires = ['file:runtime', 'make:runtime', 'autoconf:runtime', 'kernel:build-tree', 'mkinitrd:runtime']
# 'SDL:devel', 'chkconfig:runtime', 'desktop-file-utils:runtime', 'glib:devel', 'glibc:devel', 'libICE:devel', 'libIDL:devel', 'libSM:devel', 'libX11:devel', 'libXcursor:devel', 'libXext:devel', 'libXt:devel', 'libgcc:devellib', 'libstdc++:devel', 'perl:devel', 'perl:runtime', 'qt:devel', 'zlib:devel']
def setup(r):
r.macros.kver = os.uname()[2]
r.addArchive('VirtualBox-1.6.2-OSE.tar.bz2')
r.addSource('vbox.modules')
r.MakeDirs('/etc/sysconfig/modules/')
r.MakeDirs('/lib/modules/%(kver)s/misc/')
r.Copy('vbox.modules', '/etc/sysconfig/modules/', mode=0755)
r.Environment('KBUILDDIR', '%(builddir)s/kBuild/')
r.ManualConfigure('--build-headless')
r.Run('source %(builddir)s/env.sh && kmk')
r.Make(dir='out/linux.x86/release/bin/src')
r.Run('cp %(builddir)s/out/linux.x86/release/bin/src/vboxdrv.ko %(destdir)s/lib/modules/%(kver)s/misc/')
More information about the Foresight-devel
mailing list