add kernel version patch
(cherry picked from commit 6573cab14939a91bddd570d064c4b97a70ca766e)
This commit is contained in:
parent
17446c785b
commit
9aa212798f
@ -17,7 +17,7 @@ ExclusiveArch: aarch64
|
|||||||
Patch0001: 0001-ci-kernel-version-patch.patch
|
Patch0001: 0001-ci-kernel-version-patch.patch
|
||||||
|
|
||||||
%define kernel_version %(uname -r)
|
%define kernel_version %(uname -r)
|
||||||
%define kae_driver_path %{_builddir}/%{name}-%{version}/%{name}
|
%define kae_driver_path %{_builddir}/%{name}-%{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the Kunpeng Accelerator Engine Kernel Driver
|
This package contains the Kunpeng Accelerator Engine Kernel Driver
|
||||||
@ -84,7 +84,7 @@ install -b -m644 %{kae_driver_path}/hisilicon/hpre/hisi_hpre.ko ${RPM_BUILD_ROOT
|
|||||||
install -b -m644 %{kae_driver_path}/conf/hisi_hpre.conf ${RPM_BUILD_ROOT}/etc/modprobe.d/hisi_hpre.conf
|
install -b -m644 %{kae_driver_path}/conf/hisi_hpre.conf ${RPM_BUILD_ROOT}/etc/modprobe.d/hisi_hpre.conf
|
||||||
install -b -m644 %{kae_driver_path}/hisilicon/zip/hisi_zip.ko ${RPM_BUILD_ROOT}/lib/modules/%{kernel_version}/extra
|
install -b -m644 %{kae_driver_path}/hisilicon/zip/hisi_zip.ko ${RPM_BUILD_ROOT}/lib/modules/%{kernel_version}/extra
|
||||||
install -b -m644 %{kae_driver_path}/conf/hisi_zip.conf ${RPM_BUILD_ROOT}/etc/modprobe.d/hisi_zip.conf
|
install -b -m644 %{kae_driver_path}/conf/hisi_zip.conf ${RPM_BUILD_ROOT}/etc/modprobe.d/hisi_zip.conf
|
||||||
install -b -m644 %{kae_driver_path}/hisilicon/rde/hisi-trng-v2.ko ${RPM_BUILD_ROOT}/lib/modules/%{kernel_version}/extra
|
install -b -m644 %{kae_driver_path}/hisilicon/trng/hisi-trng-v2.ko ${RPM_BUILD_ROOT}/lib/modules/%{kernel_version}/extra
|
||||||
install -b -m644 %{kae_driver_path}/conf/hisi_trng_v2.conf ${RPM_BUILD_ROOT}/etc/modprobe.d/hisi_trng_v2.conf
|
install -b -m644 %{kae_driver_path}/conf/hisi_trng_v2.conf ${RPM_BUILD_ROOT}/etc/modprobe.d/hisi_trng_v2.conf
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user