From 10ba67f4f26cfb66d807e9149bc081e9760e286a Mon Sep 17 00:00:00 2001 From: yuzh <1109426275@qq.com> Date: Thu, 10 Jul 2025 09:49:25 +0000 Subject: [PATCH] remove hpre and sec2 module while building driver Signed-off-by: yuzh <1109426275@qq.com> --- .../KAEKernelDriver-OLK-5.10/Makefile | 32 +++++++++---------- .../hisilicon/Makefile | 4 +-- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/KAEKernelDriver/KAEKernelDriver-OLK-5.10/Makefile b/KAEKernelDriver/KAEKernelDriver-OLK-5.10/Makefile index df1511d..9371432 100644 --- a/KAEKernelDriver/KAEKernelDriver-OLK-5.10/Makefile +++ b/KAEKernelDriver/KAEKernelDriver-OLK-5.10/Makefile @@ -22,8 +22,6 @@ default: CONFIG_CRYPTO_DEV_HISI_SGL=m \ CONFIG_CRYPTO_DEV_HISI_QM=m \ CONFIG_CRYPTO_DEV_HISI_ZIP=m \ - CONFIG_CRYPTO_DEV_HISI_HPRE=m \ - CONFIG_CRYPTO_DEV_HISI_SEC2=m \ CONFIG_CRYPTO_DEV_HISI_TRNG=m #copy: # cp -f $(shell pwd)/include_linux/uacce.h $(KSP)/include/linux @@ -38,15 +36,15 @@ install: fi) -modprobe uacce -modprobe hisi_qm - -modprobe hisi_sec2 uacce_mode=1 pf_q_num=256 - -modprobe hisi_hpre uacce_mode=1 pf_q_num=256 +# -modprobe hisi_sec2 uacce_mode=1 pf_q_num=256 +# -modprobe hisi_hpre uacce_mode=1 pf_q_num=256 -modprobe hisi_zip uacce_mode=1 pf_q_num=256 - -echo "options hisi_sec2 uacce_mode=1 pf_q_num=256" > /etc/modprobe.d/hisi_sec2.conf - -echo "options hisi_hpre uacce_mode=1 pf_q_num=256" > /etc/modprobe.d/hisi_hpre.conf +# -echo "options hisi_sec2 uacce_mode=1 pf_q_num=256" > /etc/modprobe.d/hisi_sec2.conf +# -echo "options hisi_hpre uacce_mode=1 pf_q_num=256" > /etc/modprobe.d/hisi_hpre.conf -echo "options hisi_zip uacce_mode=1 pf_q_num=256" > /etc/modprobe.d/hisi_zip.conf dracut -f -TARGET_MODULES := uacce.ko* hisi_qm.ko* hisi_sec2.ko* hisi_hpre.ko* hisi_zip.ko* +TARGET_MODULES := uacce.ko* hisi_qm.ko* hisi_zip.ko* delete-modules: @echo "[WARN] This will delete the following files:" @@ -63,18 +61,18 @@ check: uninstall: modprobe -r hisi_zip - modprobe -r hisi_hpre - modprobe -r hisi_sec2 +# modprobe -r hisi_hpre +# modprobe -r hisi_sec2 modprobe -r hisi_qm modprobe -r uacce - rm -rf /etc/modprobe.d/hisi_sec2.conf - rm -rf /etc/modprobe.d/hisi_hpre.conf +# rm -rf /etc/modprobe.d/hisi_sec2.conf +# rm -rf /etc/modprobe.d/hisi_hpre.conf rm -rf /etc/modprobe.d/hisi_zip.conf dracut -f rm -rf /lib/modules/$(KERNEL_VERSION_BY_BUILDENV)/extra/uacce.ko rm -rf /lib/modules/$(KERNEL_VERSION_BY_BUILDENV)/extra/hisi_qm.ko - rm -rf /lib/modules/$(KERNEL_VERSION_BY_BUILDENV)/extra/hisi_sec2.ko - rm -rf /lib/modules/$(KERNEL_VERSION_BY_BUILDENV)/extra/hisi_hpre.ko +# rm -rf /lib/modules/$(KERNEL_VERSION_BY_BUILDENV)/extra/hisi_sec2.ko +# rm -rf /lib/modules/$(KERNEL_VERSION_BY_BUILDENV)/extra/hisi_hpre.ko rm -rf /lib/modules/$(KERNEL_VERSION_BY_BUILDENV)/extra/hisi_zip.ko nosva: @@ -86,11 +84,11 @@ nosva: fi) -modprobe uacce -modprobe hisi_qm - -modprobe hisi_sec2 uacce_mode=2 pf_q_num=256 - -modprobe hisi_hpre uacce_mode=2 pf_q_num=256 +# -modprobe hisi_sec2 uacce_mode=2 pf_q_num=256 +# -modprobe hisi_hpre uacce_mode=2 pf_q_num=256 -modprobe hisi_zip uacce_mode=2 pf_q_num=256 - -echo "options hisi_sec2 uacce_mode=2 pf_q_num=256" > /etc/modprobe.d/hisi_sec2.conf - -echo "options hisi_hpre uacce_mode=2 pf_q_num=256" > /etc/modprobe.d/hisi_hpre.conf +# -echo "options hisi_sec2 uacce_mode=2 pf_q_num=256" > /etc/modprobe.d/hisi_sec2.conf +# -echo "options hisi_hpre uacce_mode=2 pf_q_num=256" > /etc/modprobe.d/hisi_hpre.conf -echo "options hisi_zip uacce_mode=2 pf_q_num=256" > /etc/modprobe.d/hisi_zip.conf dracut -f clean: diff --git a/KAEKernelDriver/KAEKernelDriver-OLK-5.10/hisilicon/Makefile b/KAEKernelDriver/KAEKernelDriver-OLK-5.10/hisilicon/Makefile index a62965b..009971f 100644 --- a/KAEKernelDriver/KAEKernelDriver-OLK-5.10/hisilicon/Makefile +++ b/KAEKernelDriver/KAEKernelDriver-OLK-5.10/hisilicon/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_CRYPTO_DEV_HISI_HPRE) += hpre/ -obj-$(CONFIG_CRYPTO_DEV_HISI_SEC2) += sec2/ +#obj-$(CONFIG_CRYPTO_DEV_HISI_HPRE) += hpre/ +#obj-$(CONFIG_CRYPTO_DEV_HISI_SEC2) += sec2/ obj-$(CONFIG_CRYPTO_DEV_HISI_QM) += hisi_qm.o hisi_qm-objs = qm.o sgl.o debugfs.o obj-$(CONFIG_CRYPTO_DEV_HISI_ZIP) += zip/ -- Gitee