How to generate kernel header files like Ubuntu prebuilt standard kernel header files?

bill4carson bill4carson at gmail.com
Tue Nov 26 04:25:08 EST 2013


Ubuntu-12.0.4-lts with virtualbox installed building with latest linux kernel tree.
When make install, it always spits below error when build virtualbox modules

run-parts: executing /etc/kernel/postinst.d/dkms 3.12.0+ /boot/vmlinuz-3.12.0+
ERROR (dkms apport): kernel package linux-headers-3.12.0+ is not supported

The Ubuntu system prebuilt kernel header is as below:

#ls /usr/src/linux-headers-3.2.0-23
arch  block  crypto  Documentation  drivers  firmware  fs  include
init  ipc  Kbuild  Kconfig  kernel  lib  Makefile  mm  net  samples
scripts  security  sound  tools  ubuntu  usr  virt

But the latest kernel headers looks like this, and building virtualbox modules
still bad
# cd linux-3.12.0 && make headers_install
# cat usr/include/
include

Can I ask how to generate kernel headers with latest linux kernel tree to successfully
build virtualbox modules?

thanks



-- 
八百里秦川尘土飞扬,三千万老陕齐吼秦腔。

--bill



More information about the Kernelnewbies mailing list