Quote:
Originally Posted by oisact
I'm using the following script to automatically generate the proper module tarball name so I don't have to rename it manually:
Code:
# Generate module name. Assumes lib/modules contains one subdir with the target name
cd $MODULES_PATH/lib/modules
MODNAME=$(ls -d */)
MODNAME=modules-${MODNAME%/}.tar.gz
Just thought you might want to incorporate it in your build script to save the manual work.
|
This works too:
Code:
KER_VER="$(cat $KERNEL_PATH/include/config/kernel.release)"
Aslo we don't use .tgz anymore. Only Haret does.