!12 bugfix: should mkdir while dir not exist
From: @chenzheng5555 Reviewed-by: @lixiaomingg Signed-off-by: @lixiaomingg
This commit is contained in:
commit
536e33fa4f
@ -5,7 +5,7 @@
|
|||||||
Name : virtCCA_driver
|
Name : virtCCA_driver
|
||||||
Summary : virtCCA driver is some drivers for TEE specific function.
|
Summary : virtCCA driver is some drivers for TEE specific function.
|
||||||
Version : 0.1.3
|
Version : 0.1.3
|
||||||
Release : 6
|
Release : 7
|
||||||
ExclusiveArch: aarch64
|
ExclusiveArch: aarch64
|
||||||
License : GPLV2
|
License : GPLV2
|
||||||
Group : System/Kernel
|
Group : System/Kernel
|
||||||
@ -48,6 +48,7 @@ if [[ "$1" = "1" || "$1" = "2" ]] ; then
|
|||||||
install_dir="/lib/modules/%{kernel}/extra"
|
install_dir="/lib/modules/%{kernel}/extra"
|
||||||
link_dir="/lib/modules/$(uname -r)/extra"
|
link_dir="/lib/modules/$(uname -r)/extra"
|
||||||
if [ "$install_dir" != "$link_dir" ] ; then
|
if [ "$install_dir" != "$link_dir" ] ; then
|
||||||
|
mkdir -p $link_dir
|
||||||
ln -sf "$install_dir/%{kmod_1_name}.ko" "$link_dir/%{kmod_1_name}.ko"
|
ln -sf "$install_dir/%{kmod_1_name}.ko" "$link_dir/%{kmod_1_name}.ko"
|
||||||
ln -sf "$install_dir/%{kmod_2_name}.ko" "$link_dir/%{kmod_2_name}.ko"
|
ln -sf "$install_dir/%{kmod_2_name}.ko" "$link_dir/%{kmod_2_name}.ko"
|
||||||
fi
|
fi
|
||||||
@ -67,6 +68,10 @@ if [[ "$1" = "0" ]] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 10 2024 chenzheng<chenzheng71@huawei.com> - 0.1.3-7
|
||||||
|
- Type:bugfix
|
||||||
|
- DESC:mkdir extra dir while kernel version not equal
|
||||||
|
|
||||||
* Mon Sep 9 2024 chenzheng<chenzheng71@huawei.com> - 0.1.3-6
|
* Mon Sep 9 2024 chenzheng<chenzheng71@huawei.com> - 0.1.3-6
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- DESC:weak-modules cannot create soft link in cvm
|
- DESC:weak-modules cannot create soft link in cvm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user