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

Source package and kernel dependency



Hi all

I am creating a package of some software that doing compilation needs
to have access to the kernel source (any 2.6 kernel should do). The
problem lies in the fact that the Debian kernel source package only
dumps tar file in /usr/src/, so setting

Build-Depends: kernel-source-2.6.8

Is not enough given that I need to unpack the kernel, copy the config
file from /boot into the source directotory (/usr/src/linux/.config)
and run

make oldconfig
make prepare

In the kernel source directory before I can compile my software. I see
the following 3 solutions:

1) Make a external script needed to compile the package (thereby
removing the possibility off making a source package that will work,
without a properly configured kernel).

2) Using some sort of precompile scripts (does the deb system even
have precompile scripts (in the style of preinst and prerm)) - to
ensure that the system system is installed correctly. This will ensure
that the source package will compile on any system.

3) Ship the configured kernel source along with the package (crappy
solution - but it will of cause work).

Any feedback (or even solutions) will be appreciated.


Regards.

Lars Roland



Reply to: