relocate 'compilation_prepare' prior too patching

This commit is contained in:
Martin Ayotte 2019-07-11 15:37:05 -04:00
parent 48d6548471
commit b9173d7850

View File

@ -275,6 +275,12 @@ compile_kernel()
patch --batch --silent -t -p1 < $SRC/patch/kernel/compiler.patch >> $DEST/debug/output.log 2>&1
fi
# read kernel version
local version=$(grab_version "$kerneldir")
# build 3rd party drivers
compilation_prepare
advanced_patch "kernel" "$KERNELPATCHDIR" "$BOARD" "" "$BRANCH" "$LINUXFAMILY-$BRANCH"
if ! grep -qoE '^-rc[[:digit:]]+' <(grep "^EXTRAVERSION" Makefile | head -1 | awk '{print $(NF)}'); then
@ -282,12 +288,6 @@ compile_kernel()
fi
rm -f localversion
# read kernel version
local version=$(grab_version "$kerneldir")
# build 3rd party drivers
compilation_prepare
# create linux-source package - with already patched sources
local sources_pkg_dir=$SRC/.tmp/${CHOSEN_KSRC}_${REVISION}_all
rm -rf ${sources_pkg_dir}