-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build on glibc/mips remove OE-path-changes.patch as already applied to upstream fix CC, CFLAGS and CROSS_COMPILE variables as toybox is strict on what is expected to be filled in these variables: CC = should contain compiler name CROSS_COMPILE = should contain compiler prefix CFLAGS = should contain only compiler flags License wording changed due to commits: 8014d31278411e22655aeae47338e95f209e2907 b31192fd73b382358b1deb33dc6c4cf4ce9c613f in toybox repository, type of license remains the same Signed-off-by: Adam Miartus <adam.miartus@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Loading branch information
Showing
4 changed files
with
74 additions
and
200 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...e/recipes-core/toybox/toybox/0001-Tackle-SIGEMT-and-SIGSTKFLT-is-not-glibc-specific.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 9e5b1420b89813ee3c58c2b792077fa8bb71f327 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <raj.khem@gmail.com> | ||
Date: Thu, 21 May 2020 13:53:27 -0700 | ||
Subject: [PATCH] Tackle SIGEMT and SIGSTKFLT is not glibc specific | ||
|
||
Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
--- | ||
lib/portability.c | 5 ++++- | ||
1 file changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/lib/portability.c b/lib/portability.c | ||
index 294141c6..1c7ebc12 100644 | ||
--- a/lib/portability.c | ||
+++ b/lib/portability.c | ||
@@ -430,8 +430,11 @@ static const struct signame signames[] = { | ||
// Non-POSIX signals that cause termination | ||
SIGNIFY(PROF), SIGNIFY(IO), | ||
#ifdef __linux__ | ||
-# if !defined(__GLIBC__) && !defined(__mips__) | ||
+# ifdef SIGSTKFLT | ||
SIGNIFY(STKFLT), | ||
+# endif | ||
+# ifdef SIGEMT | ||
+ SIGNIFY(EMT), | ||
# endif | ||
SIGNIFY(POLL), SIGNIFY(PWR), | ||
#elif defined(__APPLE__) | ||
-- | ||
2.26.2 | ||
|
195 changes: 0 additions & 195 deletions
195
meta-oe/recipes-core/toybox/toybox/OE-path-changes.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
glibc on mips is missing SIGSTKFLT | ||
|
||
Do not therefore assume it being available linuxwide | ||
|
||
Fixes | ||
| lib/portability.c:433:3: error: use of undeclared identifier 'SIGSTKFLT' | ||
| SIGNIFY(STKFLT), SIGNIFY(POLL), SIGNIFY(PWR), | ||
| ^ | ||
|
||
Upstream-Status: Submitted [https://github.com/landley/toybox/pull/195] | ||
Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
--- a/lib/portability.c | ||
+++ b/lib/portability.c | ||
@@ -430,7 +430,10 @@ static const struct signame signames[] = | ||
// Non-POSIX signals that cause termination | ||
SIGNIFY(PROF), SIGNIFY(IO), | ||
#ifdef __linux__ | ||
- SIGNIFY(STKFLT), SIGNIFY(POLL), SIGNIFY(PWR), | ||
+# if !defined(__GLIBC__) && !defined(__mips__) | ||
+ SIGNIFY(STKFLT), | ||
+# endif | ||
+ SIGNIFY(POLL), SIGNIFY(PWR), | ||
#elif defined(__APPLE__) | ||
SIGNIFY(EMT), SIGNIFY(INFO), | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters