From 19226f8a264f15587f0933e2d194d36d77aef99f Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Fri, 27 Mar 2020 20:18:48 +0100 Subject: [PATCH] Bugfix: kernel sources packing Package name was formed before patching process, while it must do that after Signed-off-by: Igor Pecovnik --- lib/compilation.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/compilation.sh b/lib/compilation.sh index 41f54bbac..cfde80f02 100644 --- a/lib/compilation.sh +++ b/lib/compilation.sh @@ -286,6 +286,12 @@ compile_kernel() 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 local sources_pkg_dir=$SRC/.tmp/${CHOSEN_KSRC}_${REVISION}_all rm -rf ${sources_pkg_dir} @@ -299,12 +305,6 @@ compile_kernel() cp COPYING $sources_pkg_dir/usr/share/doc/linux-source-${version}-${LINUXFAMILY}/LICENSE 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" local toolchain=$(find_toolchain "$KERNEL_COMPILER" "$KERNEL_USE_GCC")