* [Buildroot] [PATCH] package/uclibc: add patch for libucontext usage
@ 2024-07-17 15:12 Waldemar Brodkorb
2024-07-17 20:45 ` Thomas Petazzoni via buildroot
2024-08-28 9:08 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Waldemar Brodkorb @ 2024-07-17 15:12 UTC (permalink / raw)
To: buildroot
*ucontext functions are only implemented for a subset of
uClibc supported architectures. To allow the external library
libucontext to be used this small patch is required.
Tested for riscv64.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
.../0001-allow-to-use-sys-ucontext.h.patch | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 package/uclibc/0001-allow-to-use-sys-ucontext.h.patch
diff --git a/package/uclibc/0001-allow-to-use-sys-ucontext.h.patch b/package/uclibc/0001-allow-to-use-sys-ucontext.h.patch
new file mode 100644
index 0000000000..b6bd5602d9
--- /dev/null
+++ b/package/uclibc/0001-allow-to-use-sys-ucontext.h.patch
@@ -0,0 +1,35 @@
+From 903da45dde43836e35a295226c5b1efccd413c08 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Wed, 17 Jul 2024 15:41:40 +0200
+Subject: [PATCH] allow to use <sys/ucontext.h>
+
+For architectures without ucontext implementation it is possible
+to use libucontext with this small adaptation.
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+Upstream: https://mailman.openadk.org/mailman3/hyperkitty/list/devel@uclibc-ng.org/thread/MZCPGG56TL7SVOZY2L3AGHLREJ76BYZE/
+---
+ include/ucontext.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/ucontext.h b/include/ucontext.h
+index 4ce114ef1..76b4f375e 100644
+--- a/include/ucontext.h
++++ b/include/ucontext.h
+@@ -23,11 +23,11 @@
+
+ #include <features.h>
+
+-#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
+-
+ /* Get machine dependent definition of data structures. */
+ #include <sys/ucontext.h>
+
++#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
++
+ __BEGIN_DECLS
+
+ /* Get user context and store it in variable pointed to by UCP. */
+--
+2.30.2
+
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] package/uclibc: add patch for libucontext usage
2024-07-17 15:12 [Buildroot] [PATCH] package/uclibc: add patch for libucontext usage Waldemar Brodkorb
@ 2024-07-17 20:45 ` Thomas Petazzoni via buildroot
2024-08-28 9:08 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-17 20:45 UTC (permalink / raw)
To: Waldemar Brodkorb; +Cc: buildroot
On Wed, 17 Jul 2024 17:12:54 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:
> *ucontext functions are only implemented for a subset of
> uClibc supported architectures. To allow the external library
> libucontext to be used this small patch is required.
> Tested for riscv64.
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
> .../0001-allow-to-use-sys-ucontext.h.patch | 35 +++++++++++++++++++
> 1 file changed, 35 insertions(+)
> create mode 100644 package/uclibc/0001-allow-to-use-sys-ucontext.h.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] package/uclibc: add patch for libucontext usage
2024-07-17 15:12 [Buildroot] [PATCH] package/uclibc: add patch for libucontext usage Waldemar Brodkorb
2024-07-17 20:45 ` Thomas Petazzoni via buildroot
@ 2024-08-28 9:08 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-08-28 9:08 UTC (permalink / raw)
To: Waldemar Brodkorb; +Cc: buildroot
>>>>> "Waldemar" == Waldemar Brodkorb <wbx@openadk.org> writes:
> *ucontext functions are only implemented for a subset of
> uClibc supported architectures. To allow the external library
> libucontext to be used this small patch is required.
> Tested for riscv64.
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Committed to 2024.02.x and 2024.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-28 9:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 15:12 [Buildroot] [PATCH] package/uclibc: add patch for libucontext usage Waldemar Brodkorb
2024-07-17 20:45 ` Thomas Petazzoni via buildroot
2024-08-28 9:08 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox