From f4c9972532fb7af631cf8ce3fe3613e150539201c41b4d208d86d502dc64f592 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 19 Jun 2018 13:39:24 +0000 Subject: [PATCH] Accepting request 617732 from home:michals:kernel-test-kmp - Use %{?linux_make_arch} when building kernel modules (boo#1098050). OBS-URL: https://build.opensuse.org/request/show/617732 OBS-URL: https://build.opensuse.org/package/show/network:time/pcfclock?expand=0&rev=12 --- pcfclock.changes | 5 +++++ pcfclock.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pcfclock.changes b/pcfclock.changes index a08d77e..7716452 100644 --- a/pcfclock.changes +++ b/pcfclock.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 19 12:11:47 UTC 2018 - msuchanek@suse.com + +- Use %{?linux_make_arch} when building kernel modules (boo#1098050). + ------------------------------------------------------------------- Wed Nov 15 12:05:55 CET 2017 - ro@suse.de diff --git a/pcfclock.spec b/pcfclock.spec index a3a25ae..95564e4 100644 --- a/pcfclock.spec +++ b/pcfclock.spec @@ -1,7 +1,7 @@ # # spec file for package pcfclock # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ Name: pcfclock Version: 0.44 Release: 0 Summary: Pcfclock kernel driver -License: GPL-2.0+ +License: GPL-2.0-or-later Group: System/Kernel Url: http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html Source: pcfclock-%{version}.tar.gz @@ -85,7 +85,7 @@ make %{?_smp_mflags} for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r source obj/$flavor - make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \ + make -C /usr/src/linux-obj/%_target_cpu/$flavor %{?linux_make_arch} modules \ M=$PWD/obj/$flavor %{?_smp_mflags} done @@ -97,7 +97,7 @@ make -C linux install DESTDIR=%{buildroot} export INSTALL_MOD_PATH=%{buildroot} export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do - make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ + make -C /usr/src/linux-obj/%_target_cpu/$flavor %{?linux_make_arch} modules_install \ M=$PWD/obj/$flavor done mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d