* [Buildroot] [PATCH v2] toolchain: Enable Glibc for all little-endian ARCs with atomic ops
@ 2018-11-09 20:09 Alexey Brodkin
2018-11-09 21:03 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Brodkin @ 2018-11-09 20:09 UTC (permalink / raw)
To: buildroot
Initially we had a port only for ARCv2 cores but
then with a simple change ARCompact cores got supported as well.
So we generalize from BR2_archs to BR2_arcle as we haven't tried
to get glibc working on big-endian ARCs yet.
Also we never bothered to check avaialbility of atomic
instructions in the core but in case of Glibc for ARC this is
really a must, so we add this check here.
Note in case of uClibc we may have system w/o HW atomics but:
1. Only single-core systems are allowed
2. Atomic instructions are emulated via arc_usr_cmpxchg syscall
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
---
Changes v1 -> v2
* Merge both conditions in one place [Thomas]
toolchain/toolchain-buildroot/Config.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
index 7d9428c70ed0..beb17a218b57 100644
--- a/toolchain/toolchain-buildroot/Config.in
+++ b/toolchain/toolchain-buildroot/Config.in
@@ -48,7 +48,7 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC
BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
BR2_riscv || BR2_sh || BR2_sparc64 || \
BR2_x86_64 || BR2_microblaze || BR2_nios2 || \
- BR2_archs38
+ (BR2_arcle && BR2_ARC_ATOMIC_EXT)
depends on BR2_USE_MMU
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
--
2.19.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2] toolchain: Enable Glibc for all little-endian ARCs with atomic ops
2018-11-09 20:09 [Buildroot] [PATCH v2] toolchain: Enable Glibc for all little-endian ARCs with atomic ops Alexey Brodkin
@ 2018-11-09 21:03 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-11-09 21:03 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 9 Nov 2018 23:09:49 +0300, Alexey Brodkin wrote:
> Initially we had a port only for ARCv2 cores but
> then with a simple change ARCompact cores got supported as well.
>
> So we generalize from BR2_archs to BR2_arcle as we haven't tried
> to get glibc working on big-endian ARCs yet.
>
> Also we never bothered to check avaialbility of atomic
> instructions in the core but in case of Glibc for ARC this is
> really a must, so we add this check here.
>
> Note in case of uClibc we may have system w/o HW atomics but:
> 1. Only single-core systems are allowed
> 2. Atomic instructions are emulated via arc_usr_cmpxchg syscall
>
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> ---
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-09 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-09 20:09 [Buildroot] [PATCH v2] toolchain: Enable Glibc for all little-endian ARCs with atomic ops Alexey Brodkin
2018-11-09 21:03 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox