summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYogesh Lal <ylal@codeaurora.org>2021-01-18 20:17:11 -0800
committerYogesh Lal <ylal@codeaurora.org>2021-01-19 16:07:14 +0530
commit883cc45323a269456c13e14e42a46f41d586610d (patch)
treeeeb3787fa09822a01af7ac8346a93069720d9017
parent275a36993ca9868c9b3e5f51dbe22d6cd546123a (diff)
Revert "kernelscripts: Add support for modules_prepare for modules"
As GKI and QGKI scratch build is broken. This reverts commit f90523ca9bf80e74181aa18201caa50d516c4de6. Change-Id: I565fc0e02ee1fc239357c8c204ddc153a6099ca1
-rwxr-xr-xbuildkernel.sh16
1 files changed, 2 insertions, 14 deletions
diff --git a/buildkernel.sh b/buildkernel.sh
index 26eaaf0..6880d95 100755
--- a/buildkernel.sh
+++ b/buildkernel.sh
@@ -74,18 +74,6 @@ headers_install()
set +x
}
-# Module preparations before kernel compilation
-make_modules_prepare()
-{
- echo "======================"
- echo "Make modules_prepare for external modules"
- set -x
- (cd ${OUT_DIR} && \
- ${MAKE_PATH}make HOSTCFLAGS="${TARGET_INCLUDES}" HOSTLDFLAGS="${TARGET_LINCLUDES}" ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} O=${OUT_DIR} ${CC_ARG} ${MAKE_ARGS} modules_prepare)
- set +x
-
-}
-
# Building Kernel
build_kernel()
{
@@ -400,9 +388,9 @@ fi
if [ "${HEADERS_INSTALL}" -ne "0" ]; then
make_defconfig
headers_install
-# Also prepare for external module compilation
- make_modules_prepare
else
+ make_defconfig
+ headers_install
build_kernel
modules_install
copy_all_to_prebuilt ${KERNEL_BINS}