%undefine with_multilib
%endif
-%define basever 4.7
+%define basever 4.8
%define postver .0
Summary: Assortment of tools for the Linux kernel
Summary(pl.UTF-8): Zestaw narzędzi dla jądra Linuksa
License: GPL v2
Group: Applications/System
Source0: https://www.kernel.org/pub/linux/kernel/v4.x/linux-%{basever}.tar.xz
-# Source0-md5: 5276563eb1f39a048e4a8a887408c031
+# Source0-md5: c1af0afbd3df35c1ccdc7a5118cd2d07
Source1: cpupower.service
Source2: cpupower.config
%if "%{postver}" != ".0"
%{__sed} -i -e '/^CFLAGS = /s/ -g / $(OPTFLAGS) /' tools/hv/Makefile
%{__sed} -i -e '/^CFLAGS+=/s/ -O1 / $(OPTFLAGS) /' tools/thermal/tmon/Makefile
-%{__sed} -i -e 's#libexec/perf-core#%{_datadir}/perf-core#g' tools/perf/config/Makefile
+%{__sed} -i -e 's#libexec/perf-core#%{_datadir}/perf-core#g' tools/perf/Makefile.config
%build
cd linux-%{basever}
# tools common (used eg. by tools/vm)
%{__make} -C tools/lib/api \
- CC="%{__cc}" \
+ %{makeopts} \
EXTRA_CFLAGS="%{rpmcflags}"
# lsgpio
CFLAGS="%{rpmcflags}" \
-%{__make} -C tools/gpio \
- CC="%{__cc}"
+%{__make} -C tools/gpio -j1 \
+ %{makeopts}
# HyperV is Windows based, x86 specific
%ifarch %{ix86} %{x8664} x32
chmod 755 $RPM_BUILD_ROOT%{_bindir}/lsvmbus
%endif
-install -p tools/iio/{iio_event_monitor,lsiio} $RPM_BUILD_ROOT%{_bindir}
-install -p tools/iio/generic_buffer $RPM_BUILD_ROOT%{_bindir}/iio_generic_buffer
+install -p tools/iio/{iio_event_monitor,iio_generic_buffer,lsiio} $RPM_BUILD_ROOT%{_bindir}
install -p tools/laptop/freefall/freefall $RPM_BUILD_ROOT%{_sbindir}
+else
+ IS_X32_BIT := 0
+endif
---- linux-3.19/tools/perf/config/Makefile~ 2015-04-11 12:12:31.000000000 +0200
-+++ linux-3.19/tools/perf/config/Makefile 2015-04-11 12:19:05.011244885 +0200
-@@ -28,6 +28,9 @@
- LIBUNWIND_LIBS = -lunwind -lunwind-x86
+--- linux-4.8/tools/perf/Makefile.config~ 2015-04-11 12:12:31.000000000 +0200
++++ linux-4.8/tools/perf/Makefile.config 2015-04-11 12:19:05.011244885 +0200
+@@ -41,6 +41,9 @@
+ LIBUNWIND_LIBS = -lunwind-x86 -llzma -lunwind
endif
NO_PERF_REGS := 0
+ ifeq (${IS_X32_BIT}, 1)