View Single Post
  #168 (permalink)  
Old 07-27-2011, 08:54 PM
rpierce99's Avatar
rpierce99
PPCGeeks Regular
Offline
 
Join Date: Jan 2011
Posts: 85
Reputation: 175
rpierce99 is keeping up the good workrpierce99 is keeping up the good work
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 Lmiller1708 View Post
Just Copy and paste this to your script. It should work fine... From his orginal code before we update to squash.

Code:
echo "Compress modules to a tar.gz and move to output dir"
KER_VER="$(cat $KERNEL_PATH/include/config/kernel.release)"
cd $OUTPUT_PATH/modules
MODULES=$(find -name "*.ko")
for i in $MODULES ; do
    cp $i $OUTPUT_PATH/kernel/modules
done
cd $OUTPUT_PATH/kernel
tar -cvzf $OUTPUT_PATH/kernel/$KER_VER.tar.gz modules

Not sure what you are asking with your second question.
It's not strictly necessary for your own use, but another piece of this process that most like to do is strip the modules so they're not 10 megs, but that's totally optional.
__________________
HTC Touch Pro 2 - RHOD400 - Sprint - FRX07
Reply With Quote