set the requiers of kernel version with linux-sgx-driver building environment kernel
Signed-off-by: chenmaodong <chenmaodong@huawei.com>
This commit is contained in:
parent
3feb7374e5
commit
632aca65ff
@ -1,6 +1,6 @@
|
|||||||
Name: linux-sgx-driver
|
Name: linux-sgx-driver
|
||||||
Version: 2.11
|
Version: 2.11
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Intel SGX Linux* Driver
|
Summary: Intel SGX Linux* Driver
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64
|
||||||
License: BSD-3-Clause and GPL-2.0 License
|
License: BSD-3-Clause and GPL-2.0 License
|
||||||
@ -10,9 +10,8 @@ Source0: https://github.com/intel/linux-sgx-driver/archive/sgx_driver_%{version}
|
|||||||
BuildRequires: gcc kernel-devel make module-init-tools glibc uname-build-checks
|
BuildRequires: gcc kernel-devel make module-init-tools glibc uname-build-checks
|
||||||
Patch0: 0001-Fix-compilation-on-5.8-kernel-120.patch
|
Patch0: 0001-Fix-compilation-on-5.8-kernel-120.patch
|
||||||
|
|
||||||
Requires: kernel
|
%define kern_devel_ver %(uname -r)
|
||||||
|
Requires: kernel=%{kern_devel_ver}
|
||||||
%define kern_devel_ver %(uname -r)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application
|
Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application
|
||||||
@ -48,16 +47,23 @@ install README.md $RPM_BUILD_ROOT/opt/intel/sgxdriver
|
|||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
cat /etc/modules | grep -Fxq isgx || echo isgx >> /etc/modules
|
cat /etc/modules | grep -Fxq isgx || echo isgx >> /etc/modules
|
||||||
/sbin/depmod
|
/sbin/depmod %{kern_devel_ver}
|
||||||
/sbin/modprobe isgx
|
/sbin/modprobe isgx
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "warning: kernel has been updated, please reboot system with the latest version of kernel to enable sgx!"
|
||||||
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
sed -i '/^isgx$/d' /etc/modules
|
sed -i '/^isgx$/d' /etc/modules
|
||||||
/sbin/depmod
|
/sbin/depmod %{kern_devel_ver}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mon 19 2021 chenmaodong <chenmaodong@huawei.com> - 2.11.5
|
||||||
|
- set the requiers of kernel version with linux-sgx-driver building environment kernel
|
||||||
|
|
||||||
* Thu Jul 1 2021 zhangguangzhi <zhangguangzhi3@huawei.com> - 2.11.4
|
* Thu Jul 1 2021 zhangguangzhi <zhangguangzhi3@huawei.com> - 2.11.4
|
||||||
- add buildrequires uname-build-checks
|
- add buildrequires uname-build-checks
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user