New Kernel and problem with compiling VirtualBox

I asked this on irc but apparently nobody knew how to solve it.
Here is the problem. My wireless card wasn't working with mageia kernel (even with the latest 3.10.1 version so I had to download kernel source code from kernel.org and compile it myself. I've followed the normal procedure (make menuconfig, make, make modules_install, make headers_install). I can boot into my own kernel and everything works fine except that I can't compile Virtualbox. When I issue 'kmk -all' I get error below (the error seems to be related to "kernel headers" though I have installed them using 'make headers_install'):
(3.10.1JamesRC1) is the name of the kernel I have compiled.
the file autoconf.h doesn't exist in "/lib/modules/3.10.1JamesRC1/build/include/generated/" and it also doesn't exist my kernel source directory: 'Sources/linux-3.10.1/linux-3.10.1/include/generated/' (they are the same thing since /lib/modules/3.10.1JamesRC1/build points to ~/Sources/linux-3.10.1/linux-3.10.1) . In fact the only places that I can find 'autoconf.h' are in '/usr/src/linux-3.10.1-desktop586-1.mga4/include/generated' and '/usr/src/linux-3.10.1-desktop586-1.mga4/arch/x86/include/generated' which are related to not-in-use Mageia's kernel.
What I've noticed that '/usr/src/linux-3.10.1-desktop586-1.mga4/include/generated/' contains a lot of files that simply does not exist in '/lib/modules/3.10.1JamesRC1/build/include/generated/':
while
So what is wrong here? Have I missed anything about the kernel compilation process? why my '/lib/modules/3.10.1JamesRC1/build/include/generated/' does not contain the files necessary for compilation of Virtualbox?
Here is the problem. My wireless card wasn't working with mageia kernel (even with the latest 3.10.1 version so I had to download kernel source code from kernel.org and compile it myself. I've followed the normal procedure (make menuconfig, make, make modules_install, make headers_install). I can boot into my own kernel and everything works fine except that I can't compile Virtualbox. When I issue 'kmk -all' I get error below (the error seems to be related to "kernel headers" though I have installed them using 'make headers_install'):
- Code: Select all
/lib/modules/3.10.1JamesRC1/build/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated
(3.10.1JamesRC1) is the name of the kernel I have compiled.
the file autoconf.h doesn't exist in "/lib/modules/3.10.1JamesRC1/build/include/generated/" and it also doesn't exist my kernel source directory: 'Sources/linux-3.10.1/linux-3.10.1/include/generated/' (they are the same thing since /lib/modules/3.10.1JamesRC1/build points to ~/Sources/linux-3.10.1/linux-3.10.1) . In fact the only places that I can find 'autoconf.h' are in '/usr/src/linux-3.10.1-desktop586-1.mga4/include/generated' and '/usr/src/linux-3.10.1-desktop586-1.mga4/arch/x86/include/generated' which are related to not-in-use Mageia's kernel.
What I've noticed that '/usr/src/linux-3.10.1-desktop586-1.mga4/include/generated/' contains a lot of files that simply does not exist in '/lib/modules/3.10.1JamesRC1/build/include/generated/':
- Code: Select all
ls -l /usr/src/linux-3.10.1-desktop586-1.mga4/include/generated/
total 200
-rw-r--r-- 1 root root 5874 Jul 15 00:15 asm-offsets.h
-rw-r--r-- 1 root root 177926 Jul 15 00:15 autoconf.h
-rw-r--r-- 1 root root 270 Jul 15 00:15 bounds.h
-rw-r--r-- 1 root root 269 Jul 15 00:15 compile.h
drwxr-xr-x 3 root root 4096 Jul 16 12:41 uapi/
-rw-r--r-- 1 root root 47 Jul 15 00:15 utsrelease.h
while
- Code: Select all
ls -l /lib/modules/3.10.1JamesRC1/build/include/generated/
total 4
drwxr-xr-x 3 james james 4096 Jul 20 12:24 uapi/
So what is wrong here? Have I missed anything about the kernel compilation process? why my '/lib/modules/3.10.1JamesRC1/build/include/generated/' does not contain the files necessary for compilation of Virtualbox?