summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}