aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2021-06-28 15:23:45 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2021-06-28 15:33:54 +0500
commit2a57fdc5c1839c74afbee1672a793d412589ed09 (patch)
tree6611e5d82ac0503075646d1a1c646307fa035d92
parent99e70d38410fbd76900e681ce0f37f9bb72fa89d (diff)
downloadmeta-amd-2a57fdc5c1839c74afbee1672a793d412589ed09.tar.gz
meta-amd-2a57fdc5c1839c74afbee1672a793d412589ed09.tar.bz2
meta-amd-2a57fdc5c1839c74afbee1672a793d412589ed09.zip
kmod: prevent ccp module autoload at system boot on ethanolx
ccp is probed at system boot time but is not supported on the ethanolx platforms. Lets disable that for the ethanolx platforms in order to get rid of the errors at boot time. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
-rw-r--r--meta-amd-bsp/recipes-kernel/kmod/files/blacklist-ccp.conf2
-rw-r--r--meta-amd-bsp/recipes-kernel/kmod/kmod_%.bbappend8
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/kmod/files/blacklist-ccp.conf b/meta-amd-bsp/recipes-kernel/kmod/files/blacklist-ccp.conf
new file mode 100644
index 00000000..3389f0c7
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/kmod/files/blacklist-ccp.conf
@@ -0,0 +1,2 @@
+blacklist ccp
+blacklist ccp_crypto
diff --git a/meta-amd-bsp/recipes-kernel/kmod/kmod_%.bbappend b/meta-amd-bsp/recipes-kernel/kmod/kmod_%.bbappend
new file mode 100644
index 00000000..3ce16fe9
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/kmod/kmod_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://blacklist-ccp.conf"
+
+do_install_append_ethanolx () {
+ install -m755 ${WORKDIR}/blacklist-ccp.conf \
+ ${D}${sysconfdir}/modprobe.d/blacklist-ccp.conf
+}