Skip to content
Snippets Groups Projects
Commit 048974d9 authored by Ravi Ranjan Kumar's avatar Ravi Ranjan Kumar Committed by Daizhuang Bai
Browse files

meta-qti-wlan: Adding variant to distinguish perf or debug WLAN module

In build_module.sh, the VARIANT always defaults to debug-defconfig,
regardless of whether the perf or debug variant is chosen for the
vendor build. As a result, a debug Module.symvers is generated for
WLAN module, and the debug CRC of the symbol module_layout is
captured in wlan.ko.

Therefore, if the device has a perf build image flashed and
CONFIG_MODVERSIONS is enabled, attempting to insmod WLAN module
will result in a CRC mismatch for the symbol module_layout, leading
to an insmod failure.

To fix the issue, we will pass build VARIENT information from
vendor build to build_modle.sh in recipe to distinguish perf or
debug WLAN module.

Change-Id: Ic6b4dbfbac0ebedf46df6efe9875cc2e1662d9d2
parent 5affefee
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ do_compile:prepend() {
}
do_compile() {
variant="${@bb.utils.contains('DEBUG_BUILD','1', "debug", "perf", d)}"
cd ${KERNEL_PLATFORM_PATH}
ENABLE_DDK_BUILD=${ENABLE_DDK_BUILD} \
TARGET_BOARD_PLATFORM=${TARGET_BOARD_PLATFORM} \
......@@ -68,6 +69,7 @@ do_compile() {
ROOTDIR=${WORKDIR}/ \
MODULE_OUT=${S} \
OUT_DIR=${KERNEL_OUT_PATH}/ \
VARIANT=${variant}_defconfig \
KERNEL_UAPI_HEADERS_DIR=${STAGING_KERNEL_BUILDDIR} \
./build/build_module.sh
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment