commit 32b75768a6d988e9212ac54e5de197b2a42802a2
Author: Jakub Bogusz <[email protected]>
Date:   Thu Jul 13 18:39:27 2017 +0200

    - updated to 4.12.1
    - added lguest-update,perf-update patches (adjust lguest and perf/libunwind 
to current headers)

 kernel-tools-lguest-update.patch | 19 +++++++++++++++++++
 kernel-tools-perf-update.patch   | 10 ++++++++++
 kernel-tools.spec                | 14 +++++++++-----
 3 files changed, 38 insertions(+), 5 deletions(-)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index 326581a..57bb41b 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -20,24 +20,26 @@
 %undefine      with_multilib
 %endif
 
-%define                basever         4.11
-%define                postver         .2
+%define                basever         4.12
+%define                postver         .1
 Summary:       Assortment of tools for the Linux kernel
 Summary(pl.UTF-8):     Zestaw narzędzi dla jądra Linuksa
 Name:          kernel-tools
 Version:       %{basever}%{postver}
-Release:       4
+Release:       1
 License:       GPL v2
 Group:         Applications/System
 Source0:       
https://www.kernel.org/pub/linux/kernel/v4.x/linux-%{basever}.tar.xz
-# Source0-md5: 251a5deee0fa6daf3f356b1bbda9eab8
+# Source0-md5: fc454157e2d024d401a60905d6481c6b
 Source1:       cpupower.service
 Source2:       cpupower.config
 %if "%{postver}" != ".0"
 Patch0:                
https://www.kernel.org/pub/linux/kernel/v4.x/patch-%{version}.xz
-# Patch0-md5:  e0aae229c24dbc16021617de6955f8b8
+# Patch0-md5:  fab3dcd3b5a99d959bde7cde2e5cedb8
 %endif
 Patch1:                x32.patch
+Patch2:                %{name}-lguest-update.patch
+Patch3:                %{name}-perf-update.patch
 URL:           http://www.kernel.org/
 BuildRequires: bison
 BuildRequires: flex
@@ -354,6 +356,8 @@ cd linux-%{basever}
 %endif
 
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %{__sed} -i -e '/^CFLAGS = /s/ -g / $(OPTFLAGS) /' tools/hv/Makefile
 %{__sed} -i -e '/^CFLAGS+=/s/ -O1 / $(OPTFLAGS) /' tools/thermal/tmon/Makefile
diff --git a/kernel-tools-lguest-update.patch b/kernel-tools-lguest-update.patch
new file mode 100644
index 0000000..2073a03
--- /dev/null
+++ b/kernel-tools-lguest-update.patch
@@ -0,0 +1,19 @@
+--- linux-4.12/tools/lguest/lguest.c.orig      2017-07-03 01:07:02.000000000 
+0200
++++ linux-4.12/tools/lguest/lguest.c   2017-07-13 17:27:08.446483634 +0200
+@@ -77,6 +77,7 @@
+ #include <linux/virtio_ring.h>
+ #include "../../include/uapi/linux/virtio_pci.h"
+ #include <asm/bootparam.h>
++#include <asm/e820.h>
+ #include "../../include/linux/lguest_launcher.h"
+ 
+ #define BRIDGE_PFX "bridge:"
+@@ -3339,7 +3340,7 @@
+        * simple, single region.
+        */
+       boot->e820_entries = 1;
+-      boot->e820_table[0] = ((struct e820_entry) { 0, mem, E820_TYPE_RAM });
++      boot->e820_table[0] = ((struct boot_e820_entry) { 0, mem, E820_RAM });
+       /*
+        * The boot header contains a command line pointer: we put the command
+        * line after the boot header.
diff --git a/kernel-tools-perf-update.patch b/kernel-tools-perf-update.patch
new file mode 100644
index 0000000..76d4453
--- /dev/null
+++ b/kernel-tools-perf-update.patch
@@ -0,0 +1,10 @@
+--- linux-4.12/tools/perf/util/libunwind/x86_32.c.orig 2017-07-03 
01:07:02.000000000 +0200
++++ linux-4.12/tools/perf/util/libunwind/x86_32.c      2017-07-13 
18:03:18.986458842 +0200
+@@ -25,6 +25,7 @@
+ #include "libunwind-x86.h"
+ #include <../../../../arch/x86/include/uapi/asm/perf_regs.h>
+ 
++#define EINVAL 22
+ /* HAVE_ARCH_X86_64_SUPPORT is used in'arch/x86/util/unwind-libunwind.c'
+  * for x86_32, we undef it to compile code for x86_32 only.
+  */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/32b75768a6d988e9212ac54e5de197b2a42802a2

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to