Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-05-16 12:09:13 +0200
committerMichal Suchanek <msuchanek@suse.de>2018-05-16 12:10:06 +0200
commit8631d056476f08b26296c6afa8f3be3d4ec95f6a (patch)
tree48fd79d04dedc09df83df47176c35d7686eb5daf
parent282e9a681a788e5c250e647a70a88e54b1e0d0c7 (diff)
macros.kernel-source: Fix building non-x86 KMPs
-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 e4b799c15b..53af0831c3 100644
--- a/rpm/macros.kernel-source
+++ b/rpm/macros.kernel-source
@@ -16,7 +16,7 @@
(*) \
[ -z "%{-X}" -a -n "$flavors" ] && continue ;; \
esac \
- krel=$(make -si -C /usr/src/linux-obj/x86_64/default/ kernelrelease 2>/dev/null) \
+ krel=$(make -si -C /usr/src/linux-obj/%_target_cpu/$flavor/ 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" \