-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
newlib: Make configure host consistent for all arch's
Add a zephyr case to newlib/configure.host so we get the same config on all arch's. Fix the fact that some arch's like x86 were getting -DMISSING_SYSCALL_NAMES set in newlib which we don't want. Fixes: #221 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
patches/newlib/3.1.0.20181231/0004-newlib-configure.host-Add-host-config-for-zephyr.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,40 @@ | ||
From 2599d2e1016beeb8dcfe691940acc334bdc6eb24 Mon Sep 17 00:00:00 2001 | ||
From: Kumar Gala <kumar.gala@linaro.org> | ||
Date: Thu, 21 May 2020 22:55:16 -0500 | ||
Subject: [PATCH] newlib/configure.host: Add host config for zephyr | ||
|
||
Add zephyr specific host config so that all arch toolchain variants we | ||
build for zephyr behave the same way. (otherwise we end up getting | ||
-DMISSING_SYSCALL_NAMES set on some arch's like NIOS and x86, but not on | ||
others). | ||
|
||
Signed-off-by: Kumar Gala <kumar.gala@linaro.org> | ||
--- | ||
newlib/configure.host | 11 +++++++++++ | ||
1 file changed, 11 insertions(+) | ||
|
||
diff --git a/newlib/configure.host b/newlib/configure.host | ||
index 37d2b9b2e..77e855e85 100644 | ||
--- a/newlib/configure.host | ||
+++ b/newlib/configure.host | ||
@@ -665,6 +665,17 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID | ||
*-*-tirtos*) | ||
newlib_cflags="${newlib_cflags} -D__DYNAMIC_REENT__ -DMALLOC_PROVIDED" | ||
;; | ||
+ *-zephyr-*) | ||
+ syscall_dir=syscalls | ||
+ case "${host}" in | ||
+ arm*-*-*) | ||
+ if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then | ||
+ newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR" | ||
+ fi | ||
+ ;; | ||
+ *) | ||
+ esac | ||
+ ;; | ||
# UDI doesn't have exec, so system() should fail the right way | ||
a29k-amd-udi) | ||
newlib_cflags="${newlib_cflags} -DNO_EXEC" | ||
-- | ||
2.25.4 | ||
|