!25 添加uninstall trng patch
From: @realzhongkeyi Reviewed-by: @xqm227 Signed-off-by: @xqm227
This commit is contained in:
commit
0e0b4b605d
31
0002-add-remove-trng.patch
Normal file
31
0002-add-remove-trng.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 83278e1371ea94d42d45724f32f3a80c3ed0bb26 Mon Sep 17 00:00:00 2001
|
||||||
|
From: realzhongkeyi <zhongkeyi1@huawei.com>
|
||||||
|
Date: Tue, 22 Feb 2022 15:25:22 +0800
|
||||||
|
Subject: [PATCH] add remove trng
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 497fe40..c4fce47 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -48,12 +48,14 @@ uninstall:
|
||||||
|
modprobe -r hisi_zip
|
||||||
|
modprobe -r hisi_hpre
|
||||||
|
modprobe -r hisi_sec2
|
||||||
|
+ modprobe -r hisi_trng_v2
|
||||||
|
modprobe -r hisi_qm
|
||||||
|
modprobe -r uacce
|
||||||
|
rm -rf /lib/modules/5.10*/extra/uacce.ko
|
||||||
|
rm -rf /lib/modules/5.10*/extra/hisi_qm.ko
|
||||||
|
rm -rf /lib/modules/5.10*/extra/hisi_sec2.ko
|
||||||
|
rm -rf /lib/modules/5.10*/extra/hisi_hpre.ko
|
||||||
|
+ rm -rf /lib/modules/5.10*/extra/hisi_trng_v2.ko
|
||||||
|
rm -rf /lib/modules/5.10*/extra/hisi_zip.ko
|
||||||
|
rm -rf /etc/modprobe.d/hisi_sec2.conf
|
||||||
|
rm -rf /etc/modprobe.d/hisi_hpre.conf
|
||||||
|
--
|
||||||
|
2.35.0.windows.1
|
||||||
|
|
||||||
@ -15,6 +15,7 @@ Provides: %{name} = %{version}-%{release}
|
|||||||
BuildRequires: kernel-devel, gcc, make
|
BuildRequires: kernel-devel, gcc, make
|
||||||
ExclusiveArch: aarch64
|
ExclusiveArch: aarch64
|
||||||
Patch0001: 0001-ci-kernel-version-patch.patch
|
Patch0001: 0001-ci-kernel-version-patch.patch
|
||||||
|
Patch0002: 0002-add-remove-trng.patch
|
||||||
|
|
||||||
%define kernel_version %(uname -r)
|
%define kernel_version %(uname -r)
|
||||||
%define kae_driver_path %{_builddir}/%{name}-%{version}
|
%define kae_driver_path %{_builddir}/%{name}-%{version}
|
||||||
@ -232,6 +233,9 @@ echo "hisi_trng_v2 modules uninstalled"
|
|||||||
%config(noreplace) /etc/modprobe.d/hisi_trng_v2.conf
|
%config(noreplace) /etc/modprobe.d/hisi_trng_v2.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 22 2022 zhongkeyi <zhongkeyi1@huawei.com> - 2.0.0-1
|
||||||
|
- update kernel to adapt uadk
|
||||||
|
|
||||||
* Wed Nov 11 2020 wangyue <wangyue92@huawei.com> - 1.3.9-1
|
* Wed Nov 11 2020 wangyue <wangyue92@huawei.com> - 1.3.9-1
|
||||||
- Fix kae_driver build error on kernel 5.10
|
- Fix kae_driver build error on kernel 5.10
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user