newlib fails to compile for nios2 architecture.  Work around this by
using glibc instead.

Signed-off-by: Jon Mason <[email protected]>
Signed-off-by: Naveen Saini <[email protected]>
---
 meta-zephyr-bsp/conf/machine/qemu-nios2.conf | 2 ++
 meta-zephyr-core/conf/distro/zephyr.conf     | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-zephyr-bsp/conf/machine/qemu-nios2.conf 
b/meta-zephyr-bsp/conf/machine/qemu-nios2.conf
index de20320..c41f505 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-nios2.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-nios2.conf
@@ -14,3 +14,5 @@ QB_OPT_APPEND = "-nographic"
 QB_CPU = "-cpu nios2"
 
 ARCH:qemu-nios2 = "nios2"
+
+TCLIBC = "glibc"
diff --git a/meta-zephyr-core/conf/distro/zephyr.conf 
b/meta-zephyr-core/conf/distro/zephyr.conf
index 6ecd421..bdf1821 100644
--- a/meta-zephyr-core/conf/distro/zephyr.conf
+++ b/meta-zephyr-core/conf/distro/zephyr.conf
@@ -4,7 +4,7 @@ DISTRO_VERSION = "1.0"
 
 TARGET_VENDOR = "-yocto"
 
-TCLIBC = "newlib"
+TCLIBC ?= "newlib"
 
 TEST_TARGET = "QemuTargetZephyr"
 TEST_SUITES = "zephyr"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57745): https://lists.yoctoproject.org/g/yocto/message/57745
Mute This Topic: https://lists.yoctoproject.org/mt/92774466/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to