Home Home > GIT Browse > SLE12-SP5-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-05-14 21:10:40 +0200
committerMichal Suchanek <msuchanek@suse.de>2018-05-14 21:13:34 +0200
commit282e9a681a788e5c250e647a70a88e54b1e0d0c7 (patch)
treef412f15511aa97f4119424145536b4aa4cd14ec5
parent1f7acca662ec7deb151fdd39bbe2784373043ff2 (diff)
macros.kernel-source: ignore errors when using make to print kernel release
There is no way to handle the errors anyway and including the error into package version does not give good results.
-rw-r--r--rpm/macros.kernel-source2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm/macros.kernel-source b/rpm/macros.kernel-source
index 555098fa94..e4b799c15b 100644
--- a/rpm/macros.kernel-source
+++ b/rpm/macros.kernel-source
@@ -16,7 +16,7 @@
(*) \
[ -z "%{-X}" -a -n "$flavors" ] && continue ;; \
esac \
- krel=$(make -s -C /usr/src/linux-obj/%_target_cpu/$flavor kernelrelease) \
+ krel=$(make -si -C /usr/src/linux-obj/x86_64/default/ kernelrelease 2>/dev/null) \
kver=${krel%%-*} \
flavors_to_build="$flavors_to_build $flavor" \
echo "%%_suse_kernel_module_subpackage -n %{-n*}%{!-n:%name} -v %{-v*}%{!-v:%version} -r %{-r*}%{!-r:%release} %{-f} %{-p} %{-b} %{-c:-c} $flavor $kver" \