[packages/kernel-tools] Rel 3

arekm arekm at pld-linux.org
Sun Aug 23 01:45:31 CEST 2026


commit 28302d7e42a56887465111eaf44b30a9a39d674a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Aug 23 01:45:22 2026 +0200

    Rel 3

 kernel-tools-iio-float16.patch | 17 +++++++++++++++++
 kernel-tools.spec              |  4 +++-
 2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index 20330c1..eece216 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -23,7 +23,7 @@ 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:	2
+Release:	3
 License:	GPL v2
 Group:		Applications/System
 Source0:	https://www.kernel.org/pub/linux/kernel/v7.x/linux-%{basever}.tar.xz
@@ -41,6 +41,7 @@ Patch3:		%{name}-perf-update.patch
 Patch4:		%{name}-perf-gtk2.patch
 Patch5:		%{name}-perf-slang.patch
 Patch6:		%{name}-perf-libunwind-word.patch
+Patch7:		%{name}-iio-float16.patch
 URL:		https://www.kernel.org/
 BuildRequires:	asciidoc
 BuildRequires:	bison
@@ -437,6 +438,7 @@ cd linux-%{basever}
 %patch -P4 -p1
 %patch -P5 -p1
 %patch -P6 -p1
+%patch -P7 -p1
 
 %{__sed} -i -e 's#libexec/perf-core#%{_lib}/perf-core#g' tools/perf/Makefile.config
 
diff --git a/kernel-tools-iio-float16.patch b/kernel-tools-iio-float16.patch
new file mode 100644
index 0000000..eea3ec6
--- /dev/null
+++ b/kernel-tools-iio-float16.patch
@@ -0,0 +1,17 @@
+gcc predefines __FLT16_MAX__ on 32-bit x86 but rejects _Float16 conversions there
+unless SSE2 is enabled, so the existing guard does not compile on i686.
+--- linux-7.2/tools/iio/iio_generic_buffer.c.orig
++++ linux-7.2/tools/iio/iio_generic_buffer.c
+@@ -131,7 +131,11 @@
+ 		printf("%05f ", ((float)input + info->offset) * info->scale);
+ 		break;
+ 	case 'f': {
+-#if defined(__FLT16_MAX__)
++/*
++ * gcc predefines __FLT16_MAX__ on x86 even where it rejects _Float16
++ * conversions: those need SSE2, which 32-bit x86 lacks by default.
++ */
++#if defined(__FLT16_MAX__) && (!defined(__i386__) || defined(__SSE2__))
+ 		union {
+ 			uint16_t u;
+ 			_Float16 f;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/28302d7e42a56887465111eaf44b30a9a39d674a



More information about the pld-cvs-commit mailing list