Install kernel headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux