[packages/kernel-tools] - adjusted x32 patch to work with gcc 10.2 (which defines __ILP32__ also for plain ix86); release 4
qboosh
qboosh at pld-linux.org
Mon Jul 27 18:40:42 CEST 2020
commit e1e434f56582f58a0b3ad3a7bbc0a4fcf6900c7c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 27 18:42:29 2020 +0200
- adjusted x32 patch to work with gcc 10.2 (which defines __ILP32__ also for plain ix86); release 4
kernel-tools.spec | 2 +-
x32.patch | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index 7a9a041..267eed9 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -25,7 +25,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: 3
+Release: 4
License: GPL v2
Group: Applications/System
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
diff --git a/x32.patch b/x32.patch
index b01ac4b..9573ff6 100644
--- a/x32.patch
+++ b/x32.patch
@@ -1,17 +1,18 @@
FIXME: regs_load.S need complete x32 ABI support; now it will just compile, but tests won't run properly.
--- linux-4.7/tools/scripts/Makefile.arch~ 2015-02-09 03:54:22.000000000 +0100
+++ linux-4.7/tools/scripts/Makefile.arch 2015-04-11 12:17:45.107911011 +0200
-@@ -24,8 +24,14 @@
+@@ -24,8 +24,15 @@
ARCH ?= $(RAW_ARCH)
LP64 := $(shell echo __LP64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
+ILP32 := $(shell echo __ILP32__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
++X86_64 := $(shell echo __x86_64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
ifeq ($(LP64), 1)
IS_64_BIT := 1
else
IS_64_BIT := 0
endif
-+ifeq ($(ILP32), 1)
++ifeq ($(x86_64)_$(ILP32), 1_1)
+ IS_X32_BIT := 1
+else
+ IS_X32_BIT := 0
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/e1e434f56582f58a0b3ad3a7bbc0a4fcf6900c7c
More information about the pld-cvs-commit
mailing list