kmodtool: use tmp.$$ instand of tmp.txt

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
This commit is contained in:
Yang Yanchao 2023-11-02 20:38:10 +08:00
parent 8777b2b345
commit 46f0153446
2 changed files with 7 additions and 3 deletions

View File

@ -399,7 +399,7 @@ diff --git a/macros.kmp b/macros.kmp
index d46aa04..8440e26 100644
--- a/macros.kmp
+++ b/macros.kmp
@@ -1,22 +1,63 @@
@@ -1,22 +1,64 @@
-# Use these macros to differentiate between __vendor and other KMP implementation(s).
-
-kernel_module_package_release 1
@ -462,7 +462,8 @@ index d46aa04..8440e26 100644
+ flavors_to_build="%*" \
+ else \
+ flavors_to_build=" $flavors "\
+ echo "[$flavors_to_build]" >/tmp/tmp.txt
+ rm -rf /tmp/tmp.$$ \
+ echo "[$flavors_to_build]" >/tmp/tmp.$$ \
+ for i in %* \
+ do \
+ flavors_to_build=${flavors_to_build//$i /}

View File

@ -3,7 +3,7 @@
Name: %{vendor}-rpm-config
Version: 30
Release: 43
Release: 44
License: GPL+
Summary: specific rpm configuration files
URL: https://gitee.com/openeuler/openEuler-rpm-config
@ -142,6 +142,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir
%{rpmvdir}/find-requires.ksyms
%changelog
* Thu Nov 2 2023 Yang Yanchao <yangyanchao6@huawei.com> - 30-44
- kmodtool: use tmp.$$ instand of tmp.txt
* Mon Aug 28 2023 liyunfei <liyunfei33@huawei.com> - 30-43
- Revert backport toolchain selecting and %%auto_set_build_flags patches