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

Popular posts from this blog

Adding a serial console to the Buffalo Air Station WZR-1750DHP

How to tell rpmbuild the number of simultaneous jobs? (make -j)

Buffalo WZR-1750DHP + OpenWRT