summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrakruthi Deepak Heragu <pheragu@codeaurora.org>2020-07-13 21:55:22 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2020-07-17 10:50:37 -0700
commit9451cdc9ee50378a8f4fe5e4f110dab44b3d27eb (patch)
tree2f0e703563d7d49388f139904a7fcd56754bf08f
parentf334c127ec23d4e78c7fd395104ec8501d01950c (diff)
blocklist: Replace all '-' to '_' in blocklist file
Modprobe doesn't differenciate between '-' and '_'. That is, the output of 'modprobe -l' returns module names with '_' even though the .ko file has '-' in the name. Since we compare this output with the file name to check if the file is actually blocklisted in vendor_modprobe script, we fail. Hence, convert all the module names in the blocklist file to '_'. This change won't affect the modprobe -b. Change-Id: Ia5e6910b533d4aa491a96b3f00bf1017780502c5 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
-rwxr-xr-xbuildkernel.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildkernel.sh b/buildkernel.sh
index 6020ec6..9ec3256 100755
--- a/buildkernel.sh
+++ b/buildkernel.sh
@@ -177,6 +177,7 @@ copy_modules_to_prebuilt()
BLOCKLIST_FILE=${PWD}/device/qcom/kernelscripts/modules_blocklist/modules.blocklist.${TARGET_PRODUCT}
if [ -f "${BLOCKLIST_FILE}" ]; then
cp ${BLOCKLIST_FILE} ${KERNEL_MODULES_OUT}/modules.blocklist
+ sed -i -e '/blocklist/ s/-/_/g' ${KERNEL_MODULES_OUT}/modules.blocklist
fi
set +x
}