Bugfix: kernel sources packing

Package name was formed before patching process, while it must do that after

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
This commit is contained in:
Igor Pecovnik 2020-03-27 20:18:48 +01:00
parent 76cced5dff
commit 19226f8a26
No known key found for this signature in database
GPG key ID: 93D6889F9F0E78D5

View file

@ -286,6 +286,12 @@ compile_kernel()
advanced_patch "kernel" "$KERNELPATCHDIR" "$BOARD" "" "$BRANCH" "$LINUXFAMILY-$BRANCH" advanced_patch "kernel" "$KERNELPATCHDIR" "$BOARD" "" "$BRANCH" "$LINUXFAMILY-$BRANCH"
# create patch for manual source changes in debug mode
[[ $CREATE_PATCHES == yes ]] && userpatch_create "kernel"
# re-read kernel version after patching
local version=$(grab_version "$kerneldir")
# create linux-source package - with already patched sources # create linux-source package - with already patched sources
local sources_pkg_dir=$SRC/.tmp/${CHOSEN_KSRC}_${REVISION}_all local sources_pkg_dir=$SRC/.tmp/${CHOSEN_KSRC}_${REVISION}_all
rm -rf ${sources_pkg_dir} rm -rf ${sources_pkg_dir}
@ -299,12 +305,6 @@ compile_kernel()
cp COPYING $sources_pkg_dir/usr/share/doc/linux-source-${version}-${LINUXFAMILY}/LICENSE cp COPYING $sources_pkg_dir/usr/share/doc/linux-source-${version}-${LINUXFAMILY}/LICENSE
fi fi
# re-read kernel version after patching
local version=$(grab_version "$kerneldir")
# create patch for manual source changes in debug mode
[[ $CREATE_PATCHES == yes ]] && userpatch_create "kernel"
display_alert "Compiling $BRANCH kernel" "$version" "info" display_alert "Compiling $BRANCH kernel" "$version" "info"
local toolchain=$(find_toolchain "$KERNEL_COMPILER" "$KERNEL_USE_GCC") local toolchain=$(find_toolchain "$KERNEL_COMPILER" "$KERNEL_USE_GCC")