Install kernel headers
Parmenides
mobile.parmenides at gmail.com
Fri May 31 22:59:37 EDT 2013
Hi,
I try to define a new system call in the kernel for experimental purpose.
After hack the kernel code, I remade the kernel code. But the new system
call number is declacred in kernel header 'asm/unistd.h'. For the sake of
reference by applications, it is necessary to install the kernel headers
into /usr/include.
I used the following commands to do that:
make headers_install INSTALL_HDR_PATH=/usr
Some messages appeared like this:
CHK include/linux/version.h
make[1]: `scripts/unifdef' is up to date.
REMOVE include/FlexLexer.h
REMOVE include/Imlib.h
REMOVE include/Imlib2.h
REMOVE include/Imlib_private.h
REMOVE include/Imlib_types.h
REMOVE include/_G_config.h
REMOVE include/a.out.h
REMOVE include/aio.h
... ... ...
It seems that some original headers in /usr/include was removed. My next
'make' in kernel code failed. I think the standard headers was destoried at
all.
I tried to install kernel headers in another Linux in another way:
make headers_install
cp -r usr/include/* /usr/include
Then, it's ok.
I wonder why the first way can cause some headers in /usr/include was
removed. Mybe the kernel headers can not install directly like the first
way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130601/33412c40/attachment.html
More information about the Kernelnewbies
mailing list