bugfix: should mkdir while dir not exist

This commit is contained in:
chenzheng 2024-09-10 08:43:46 +00:00 committed by yxk
parent f20b0906a2
commit 2d246e4178

View File

@ -5,7 +5,7 @@
Name : virtCCA_driver
Summary : virtCCA driver is some drivers for TEE specific function.
Version : 0.1.3
Release : 6
Release : 7
ExclusiveArch: aarch64
License : GPLV2
Group : System/Kernel
@ -48,6 +48,7 @@ if [[ "$1" = "1" || "$1" = "2" ]] ; then
install_dir="/lib/modules/%{kernel}/extra"
link_dir="/lib/modules/$(uname -r)/extra"
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_2_name}.ko" "$link_dir/%{kmod_2_name}.ko"
fi
@ -67,6 +68,10 @@ if [[ "$1" = "0" ]] ; then
fi
%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
- Type:bugfix
- DESC:weak-modules cannot create soft link in cvm