Monday, June 27, 2011

Adding header to kernel-headers rpm package

I wanted to distribute the header files placed on /usr/include/linux by a custom kernel-headers package.

Isn't it just put the file at /home/peter/rpmbuild/BUILD/kernel-2.6.38.fc15.new/include/linux ?

No! This is only 50% of the work. The other 50% consists of adding a line to the file:
/home/peter/rpmbuild/BUILD/kernel-2.6.38.fc15.new/include/linux/Kbuild

The line looks like:
header-y += pst_syscalls.h

And voila! Now it is done!

The expected result is:

[peter@KDPeter ~]$ rpm -qf /usr/include/linux/pst_syscalls.h
kernel-headers-2.6.38.6-27.peter4.fc15.x86_64

No comments:

Post a Comment