mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/image: use 'kernel_version'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
df3dfec2b3
commit
87c81268b4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user