build.config.msm.gki: Add sanity_check_abi()

When running build_abi.sh, mixed build is explicitly disabled. In that
case, turn on some options for trimming and strict mode which would
normally be disabled because they conflict with mixed build.

Change-Id: I545705e14c2f55b72986e579724713de95e08dfd
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
This commit is contained in:
Guru Das Srinagesh 2022-04-28 18:25:03 -07:00 committed by Elliot Berman
parent fd253fa298
commit 104be1a452
2 changed files with 16 additions and 0 deletions

View File

@ -192,6 +192,7 @@
memset
memset
memstart_addr
module_layout
module_put
msleep
__mutex_init

View File

@ -25,6 +25,21 @@ TRIM_NONLISTED_KMI=${TRIM_NONLISTED_KMI:-1}
GKI_KMI_ENFORCED=1
KMI_ENFORCED=1
function sanity_check_abi() {
if [ -z "${GKI_BUILD_CONFIG}" ]; then
# When running build_abi.sh, mixed build is explicitly disabled
# In that case, turn on some options for trimming and strict mode
# which would normally be disabled because they conflict with
# mixed build
if [ "${VARIANT}" = gki ]; then
TRIM_NONLISTED_KMI=1
KMI_SYMBOL_LIST_STRICT_MODE=1
fi
return
fi
}
append_cmd POST_DEFCONFIG_CMDS 'sanity_check_abi'
function build_defconfig_fragments() {
if [[ "${VARIANT}" =~ ^(gki|consolidate)$ ]]; then
apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}_GKI.config vendor/${MSM_ARCH}-gki_defconfig