Skip to content

Commit

Permalink
build.config: Remove the generation of system_dlkm twice
Browse files Browse the repository at this point in the history
This commits avoids the generation of system_dlkm image in msm-kernel
as it is already being generated in common kernel.

Change-Id: I98a612ec611947f373e8facc29e407d74b832ca8
Signed-off-by: Vamsi Krishna Lanka <[email protected]>
  • Loading branch information
Vamsi Krishna Lanka committed Oct 17, 2022
1 parent 3b138f9 commit 352835c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
17 changes: 8 additions & 9 deletions build.config.msm.common
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ if [ "${BUILD_VENDOR_DLKM}" == "1" ]; then
COMBINED_MODULE_LIST=$(mktemp)
fi

if [[ "${BUILD_SYSTEM_DLKM}" == "1" && ! -z "${SYSTEM_DLKM_MODULES_LIST}" ]]; then
if [[ "${PREPARE_SYSTEM_DLKM}" == "1" && ! -z "${SYSTEM_DLKM_MODULES_LIST}" ]]; then
{
awk -F'/' '{print $NF}' ${SYSTEM_DLKM_MODULES_LIST}
[ -f "${MODULES_LIST}" ] && cat "${MODULES_LIST}"
Expand Down Expand Up @@ -200,16 +200,15 @@ if [ "${BUILD_VENDOR_DLKM}" == "1" ]; then
fi

function prepare_system_dlkm() {
if [ -e "${KERNEL_DIR}/modules.systemdlkm_blocklist.${CONFIG_TARGET}" ]; then
SYSTEM_DLKM_MODULES_BLOCKLIST="${KERNEL_DIR}/modules.systemdlkm_blocklist.${CONFIG_TARGET}"
cp $SYSTEM_DLKM_MODULES_BLOCKLIST ${DIST_DIR}/system_dlkm.modules.blocklist
if [ "${PREPARE_SYSTEM_DLKM}" == "1" ]; then
if [ -e "${KERNEL_DIR}/modules.systemdlkm_blocklist.${CONFIG_TARGET}" ]; then
SYSTEM_DLKM_MODULES_BLOCKLIST="${KERNEL_DIR}/modules.systemdlkm_blocklist.${CONFIG_TARGET}"
cp $SYSTEM_DLKM_MODULES_BLOCKLIST ${DIST_DIR}/system_dlkm.modules.blocklist
fi
SUPER_IMAGE_CONTENTS+=("${DIST_DIR}/system_dlkm.img")
fi
SUPER_IMAGE_CONTENTS+=("${DIST_DIR}/system_dlkm.img")
}

if [ "${BUILD_SYSTEM_DLKM}" == "1" ]; then
append_cmd DIST_CMDS 'prepare_system_dlkm'
fi
append_cmd DIST_CMDS 'prepare_system_dlkm'

KERNEL_BINARY=Image

Expand Down
1 change: 1 addition & 0 deletions build.config.msm.gki
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function sanity_check_abi() {
# In that case, turn on some options for trimming and strict mode
# which would normally be disabled because they conflict with
# mixed build
PREPARE_SYSTEM_DLKM=0
if [ "${VARIANT}" = gki ]; then
TRIM_NONLISTED_KMI=1
KMI_SYMBOL_LIST_STRICT_MODE=1
Expand Down
3 changes: 1 addition & 2 deletions build.config.msm.kalama
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ BOOT_IMAGE_HEADER_VERSION=4
BASE_ADDRESS=0x80000000
PAGE_SIZE=4096
BUILD_VENDOR_DLKM=1
BUILD_SYSTEM_DLKM=1
PREPARE_SYSTEM_DLKM=1
SYSTEM_DLKM_MODULES_LIST=${ROOT_DIR}/${KERNEL_DIR}/android/gki_system_dlkm_modules
SYSTEM_DLKM_MODULES_ORDER=android/gki_aarch64_modules
SUPER_IMAGE_SIZE=0x10000000
TRIM_UNUSED_MODULES=1
BUILD_INIT_BOOT_IMG=1
Expand Down
3 changes: 1 addition & 2 deletions build.config.msm.pineapple
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ BOOT_IMAGE_HEADER_VERSION=4
BASE_ADDRESS=0x80000000
PAGE_SIZE=4096
BUILD_VENDOR_DLKM=1
BUILD_SYSTEM_DLKM=1
PREPARE_SYSTEM_DLKM=1
SYSTEM_DLKM_MODULES_LIST=${ROOT_DIR}/${KERNEL_DIR}/android/gki_system_dlkm_modules
SYSTEM_DLKM_MODULES_ORDER=android/gki_aarch64_modules
SUPER_IMAGE_SIZE=0x10000000
TRIM_UNUSED_MODULES=1
BUILD_INIT_BOOT_IMG=1
Expand Down

0 comments on commit 352835c

Please sign in to comment.