scripts/image: use 'kernel_version'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-12-21 10:06:46 +01:00
parent df3dfec2b3
commit 87c81268b4

View File

@ -157,8 +157,7 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
fi
# run depmod
KVER=`ls $BUILD/linux-*/modules/lib/modules`
$ROOT/$TOOLCHAIN/bin/depmod -b $INSTALL $KVER > /dev/null
$ROOT/$TOOLCHAIN/bin/depmod -b $INSTALL `kernel_version` > /dev/null
# strip kernel modules
for MOD in `find $INSTALL/lib/modules/ -name *.ko`; do
@ -292,7 +291,7 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
sed -e "s%@DISTRONAME@%$DISTRONAME%g" \
-e "s%@OPENELEC_VERSION@%$OPENELEC_VERSION%g" \
-e "s%@RELEASE_DATE@%$(date +%F)%g" \
-e "s%@KERNEL_VERSION@%$(echo $(basename $BUILD/linux-*) | awk -F - '{print $2}')%g" \
-e "s%@KERNEL_VERSION@%$(kernel_version)%g" \
-e "s%@DESCRIPTION@%$DESCRIPTION%g" \
-i $RELEASE_DIR/os.json