This commit is contained in:
Igor Pečovnik 2014-11-28 13:42:28 +01:00
parent c45b3382ca
commit 35db7e7de4

View File

@ -215,14 +215,15 @@ packing_kernel (){
#--------------------------------------------------------------------------------------------------------------------------------
# Pack kernel
#--------------------------------------------------------------------------------------------------------------------------------
if [ -d "$DEST/$LINUXSOURCE/output/lib/modules/$VER$LOCALVERSION" ]; then
cd "$DEST/$LINUXSOURCE/output/lib/modules/$VER$LOCALVERSION"
if [ -d "$DEST/$LINUXSOURCE"/output/lib/modules/"$VER$LOCALVERSION" ]; then
cd "$DEST/$LINUXSOURCE"/output/lib/modules/"$VER$LOCALVERSION"
# correct link
rm build source
ln -s /usr/include/ build
ln -s /usr/include/ source
fi
#
mkdir -p $DEST/output/kernel
cd $DEST/$LINUXSOURCE/output
tar -cPf $DEST"/output/kernel/"$BOARD"_kernel_"$VER"_mod_head_fw.tar" *
cd $DEST/output/kernel