diff options
author | qctecmdr <qctecmdr@localhost> | 2021-01-16 01:21:48 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2021-01-16 01:21:48 -0800 |
commit | 275a36993ca9868c9b3e5f51dbe22d6cd546123a (patch) | |
tree | a102f5d3520b1de424a8d259f46373a3fb30fe10 | |
parent | b04f5d0e780cd485378f9fea4c2299d5cd4538ee (diff) | |
parent | f90523ca9bf80e74181aa18201caa50d516c4de6 (diff) |
Merge "kernelscripts: Add support for modules_prepare for modules"
-rwxr-xr-x | buildkernel.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/buildkernel.sh b/buildkernel.sh index 6880d95..26eaaf0 100755 --- a/buildkernel.sh +++ b/buildkernel.sh @@ -74,6 +74,18 @@ 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() { @@ -388,9 +400,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} |