summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/libx86-1/libx86-1.1.1
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-02-01 13:53:50 +0100
committerKhem Raj <raj.khem@gmail.com>2026-02-02 00:23:13 -0800
commit19fdc49db3a41b1380c387bf9b5dbbf631048a64 (patch)
tree637f945483451159d522f90fde66203e84732f86 /meta-oe/recipes-extended/libx86-1/libx86-1.1.1
parentad890c16e891277a1837c7184270d327b9010cf8 (diff)
downloadmeta-openembedded-19fdc49db3a41b1380c387bf9b5dbbf631048a64.tar.gz
libx86-1: upgrade 1.1 -> 1.1.1
Bugfix release, mostly with patches applied from other distros. Also fixes the SRC_URI which became inaccessible over time. Drop patches that are included in this release. Shortlog: https://gitlab.archlinux.org/grawlinson/libx86/-/compare/v1.1...v1.1.1 Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/libx86-1/libx86-1.1.1')
-rw-r--r--meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch42
-rw-r--r--meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-assume-zero-is-valid-address.patch26
2 files changed, 68 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch b/meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch
new file mode 100644
index 0000000000..aef521bc5d
--- /dev/null
+++ b/meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch
@@ -0,0 +1,42 @@
1From 592c915df252932961a4151c891da58c48a8db90 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 2 Mar 2023 18:47:40 -0800
4Subject: [PATCH] Define CARD32 as uint as it is 32-bit
5
6long can be 64bit on LP64 systems and none of systems we support need int < 32-bits
7therefore use NUM32 to be int always if the system is linux
8
9Fixes build with clang-16
10thunk.c:147:3: error: incompatible function pointer types initializing 'x86emuu32 (*)(X86EMU_pioAddr)' (aka 'unsigned int (*)(unsigned short)') with an expression of type 'unsigned long (*)(unsigned short)' [-Wincompatible-function-pointer-types]
11 (&x_inl),
12 ^~~~~~~~
13
14Upstream-Status: Pending
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 x86emu/include/xf86int10.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20--- a/x86emu/include/xf86int10.h
21+++ b/x86emu/include/xf86int10.h
22@@ -18,7 +18,7 @@
23
24 #define CARD8 unsigned char
25 #define CARD16 unsigned short
26-#define CARD32 unsigned long
27+#define CARD32 unsigned int
28 #define pointer void *
29 #define IOADDRESS void *
30 #define Bool int
31--- a/x86emu/include/types.h
32+++ b/x86emu/include/types.h
33@@ -77,7 +77,8 @@
34 defined(__s390x__) || \
35 (defined(__hppa__) && defined(__LP64)) || \
36 defined(__amd64__) || defined(amd64) || \
37- (defined(__sgi) && (_MIPS_SZLONG == 64))
38+ (defined(__sgi) && (_MIPS_SZLONG == 64)) || \
39+ defined(__linux__)
40 #define NUM32 int
41 #else
42 #define NUM32 long
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-assume-zero-is-valid-address.patch b/meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-assume-zero-is-valid-address.patch
new file mode 100644
index 0000000000..7a46301deb
--- /dev/null
+++ b/meta-oe/recipes-extended/libx86-1/libx86-1.1.1/0001-assume-zero-is-valid-address.patch
@@ -0,0 +1,26 @@
1assume zero is valid address
2
3Upstream-Status: Pending
4
5Signed-off-by: Roy Li <rongqing.li@windriver.com>
6---
7 thunk.c | 3 ---
8 1 file changed, 3 deletions(-)
9
10diff --git a/thunk.c b/thunk.c
11index 796e88b..6121ea1 100644
12--- a/thunk.c
13+++ b/thunk.c
14@@ -141,9 +141,6 @@ int LRMI_init() {
15
16 mmap_addr = LRMI_common_init(1);
17
18- if (!mmap_addr)
19- return 0;
20-
21 X86EMU_pioFuncs pioFuncs = {
22 (&x_inb),
23 (&x_inw),
24--
251.9.1
26