View Single Post
  #151 (permalink)  
Old 04-07-2011, 10:40 AM
Lmiller1708's Avatar
Lmiller1708
Flashaholic!
Offline
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Quote:
Originally Posted by oisact View Post
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.
__________________
Reply With Quote