* [PATCH] toolchain,glibc: Allow ARC big endian glibc builds
@ 2019-11-01 19:03 Vineet Gupta
2019-11-05 10:19 ` Alexey Brodkin
0 siblings, 1 reply; 5+ messages in thread
From: Vineet Gupta @ 2019-11-01 19:03 UTC (permalink / raw)
To: buildroot; +Cc: Evgeniy Didin, Vineet Gupta, linux-snps-arc, Alexey.Brodkin
Apparently big endian glibc builds just work, if we let the endian
header allow that (which prev was #error).
So this patch bumps glibc to version which fixes the header (this
hopefully will become arc-2019.09-release) and then enables arceb
in glibc toolchain builds
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
package/glibc/glibc.mk | 2 +-
toolchain/toolchain-buildroot/Config.in | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index d46063c5d111..754408881397 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -5,7 +5,7 @@
################################################################################
ifeq ($(BR2_arc),y)
-GLIBC_VERSION = arc-2019.03-release
+GLIBC_VERSION = ec681dddfa99894513c85da7d5d257b60d04f915
GLIBC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,glibc,$(GLIBC_VERSION))
else ifeq ($(BR2_RISCV_32),y)
GLIBC_VERSION = 06983fe52cfe8e4779035c27e8cc5d2caab31531
diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
index c0612bf04176..587e097a9c92 100644
--- a/toolchain/toolchain-buildroot/Config.in
+++ b/toolchain/toolchain-buildroot/Config.in
@@ -48,7 +48,8 @@ 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_arcle && BR2_ARC_ATOMIC_EXT) || BR2_csky
+ ((BR2_arcle || BR2_arceb) && BR2_ARC_ATOMIC_EXT) || \
+ BR2_csky
depends on BR2_USE_MMU
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
--
2.20.1
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [PATCH] toolchain,glibc: Allow ARC big endian glibc builds
2019-11-01 19:03 [PATCH] toolchain,glibc: Allow ARC big endian glibc builds Vineet Gupta
@ 2019-11-05 10:19 ` Alexey Brodkin
2019-11-05 17:35 ` [PATCH v2] " Vineet Gupta
0 siblings, 1 reply; 5+ messages in thread
From: Alexey Brodkin @ 2019-11-05 10:19 UTC (permalink / raw)
To: Vineet Gupta; +Cc: Evgeniy Didin, buildroot, Vineet Gupta, linux-snps-arc
Hi Vineet,
> -----Original Message-----
> From: Vineet Gupta <vgupta@synopsys.com>
> Sent: Friday, November 1, 2019 10:04 PM
> To: buildroot@busybox.net
> Cc: linux-snps-arc@lists.infradead.org; Alexey Brodkin <abrodkin@synopsys.com>; Evgeniy Didin
> <didin@synopsys.com>; Vineet Gupta <vgupta@synopsys.com>
> Subject: [PATCH] toolchain,glibc: Allow ARC big endian glibc builds
>
> Apparently big endian glibc builds just work, if we let the endian
> header allow that (which prev was #error).
>
> So this patch bumps glibc to version which fixes the header (this
> hopefully will become arc-2019.09-release) and then enables arceb
> in glibc toolchain builds
>
> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
> ---
> package/glibc/glibc.mk | 2 +-
> toolchain/toolchain-buildroot/Config.in | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
> index d46063c5d111..754408881397 100644
> --- a/package/glibc/glibc.mk
> +++ b/package/glibc/glibc.mk
> @@ -5,7 +5,7 @@
> ################################################################################
>
> ifeq ($(BR2_arc),y)
> -GLIBC_VERSION = arc-2019.03-release
> +GLIBC_VERSION = ec681dddfa99894513c85da7d5d257b60d04f915
> GLIBC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,glibc,$(GLIBC_VERSION))
> else ifeq ($(BR2_RISCV_32),y)
> GLIBC_VERSION = 06983fe52cfe8e4779035c27e8cc5d2caab31531
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index c0612bf04176..587e097a9c92 100644
> --- a/toolchain/toolchain-buildroot/Config.in
> +++ b/toolchain/toolchain-buildroot/Config.in
> @@ -48,7 +48,8 @@ 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_arcle && BR2_ARC_ATOMIC_EXT) || BR2_csky
> + ((BR2_arcle || BR2_arceb) && BR2_ARC_ATOMIC_EXT) || \
> + BR2_csky
I guess here we may just use "BR2_arc" which is set for both BR2_arcle && BR2_arceb,
see https://git.buildroot.org/buildroot/tree/arch/Config.in.arc#n54
-Alexey
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] toolchain,glibc: Allow ARC big endian glibc builds
2019-11-05 10:19 ` Alexey Brodkin
@ 2019-11-05 17:35 ` Vineet Gupta
2019-11-13 3:41 ` Vineet Gupta
2019-11-21 0:14 ` Vineet Gupta
0 siblings, 2 replies; 5+ messages in thread
From: Vineet Gupta @ 2019-11-05 17:35 UTC (permalink / raw)
To: buildroot; +Cc: linux-snps-arc, Vineet Gupta, Alexey.Brodkin
Apparently big endian glibc builds just work, if we let the endian
header allow that (which prev was #error).
So this patch bumps glibc to version which fixes the header (this
hopefully will become arc-2019.09-release) and then enables arceb
in glibc toolchain builds
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
Changes since v1
- Use BR2_arc iso BR2_arcle && BR2_arcbe
---
package/glibc/glibc.mk | 2 +-
toolchain/toolchain-buildroot/Config.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index d46063c5d111..754408881397 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -5,7 +5,7 @@
################################################################################
ifeq ($(BR2_arc),y)
-GLIBC_VERSION = arc-2019.03-release
+GLIBC_VERSION = ec681dddfa99894513c85da7d5d257b60d04f915
GLIBC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,glibc,$(GLIBC_VERSION))
else ifeq ($(BR2_RISCV_32),y)
GLIBC_VERSION = 06983fe52cfe8e4779035c27e8cc5d2caab31531
diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
index c0612bf04176..327314585b8e 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_arcle && BR2_ARC_ATOMIC_EXT) || BR2_csky
+ (BR2_arc && BR2_ARC_ATOMIC_EXT) || BR2_csky
depends on BR2_USE_MMU
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
--
2.20.1
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] toolchain,glibc: Allow ARC big endian glibc builds
2019-11-05 17:35 ` [PATCH v2] " Vineet Gupta
@ 2019-11-13 3:41 ` Vineet Gupta
2019-11-21 0:14 ` Vineet Gupta
1 sibling, 0 replies; 5+ messages in thread
From: Vineet Gupta @ 2019-11-13 3:41 UTC (permalink / raw)
To: buildroot; +Cc: linux-snps-arc, Alexey Brodkin
Ping !
On 11/5/19 9:35 AM, Vineet Gupta wrote:
> Apparently big endian glibc builds just work, if we let the endian
> header allow that (which prev was #error).
>
> So this patch bumps glibc to version which fixes the header (this
> hopefully will become arc-2019.09-release) and then enables arceb
> in glibc toolchain builds
>
> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
> ---
> Changes since v1
> - Use BR2_arc iso BR2_arcle && BR2_arcbe
> ---
> package/glibc/glibc.mk | 2 +-
> toolchain/toolchain-buildroot/Config.in | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
> index d46063c5d111..754408881397 100644
> --- a/package/glibc/glibc.mk
> +++ b/package/glibc/glibc.mk
> @@ -5,7 +5,7 @@
> ################################################################################
>
> ifeq ($(BR2_arc),y)
> -GLIBC_VERSION = arc-2019.03-release
> +GLIBC_VERSION = ec681dddfa99894513c85da7d5d257b60d04f915
> GLIBC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,glibc,$(GLIBC_VERSION))
> else ifeq ($(BR2_RISCV_32),y)
> GLIBC_VERSION = 06983fe52cfe8e4779035c27e8cc5d2caab31531
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index c0612bf04176..327314585b8e 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_arcle && BR2_ARC_ATOMIC_EXT) || BR2_csky
> + (BR2_arc && BR2_ARC_ATOMIC_EXT) || BR2_csky
> depends on BR2_USE_MMU
> depends on !BR2_STATIC_LIBS
> depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
>
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] toolchain,glibc: Allow ARC big endian glibc builds
2019-11-05 17:35 ` [PATCH v2] " Vineet Gupta
2019-11-13 3:41 ` Vineet Gupta
@ 2019-11-21 0:14 ` Vineet Gupta
1 sibling, 0 replies; 5+ messages in thread
From: Vineet Gupta @ 2019-11-21 0:14 UTC (permalink / raw)
To: Alexey Brodkin, buildroot; +Cc: linux-snps-arc, thomas.petazzoni
ping ^ 2
On 11/5/19 9:35 AM, Vineet Gupta wrote:
> Apparently big endian glibc builds just work, if we let the endian
> header allow that (which prev was #error).
>
> So this patch bumps glibc to version which fixes the header (this
> hopefully will become arc-2019.09-release) and then enables arceb
> in glibc toolchain builds
>
> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
> ---
> Changes since v1
> - Use BR2_arc iso BR2_arcle && BR2_arcbe
> ---
> package/glibc/glibc.mk | 2 +-
> toolchain/toolchain-buildroot/Config.in | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
> index d46063c5d111..754408881397 100644
> --- a/package/glibc/glibc.mk
> +++ b/package/glibc/glibc.mk
> @@ -5,7 +5,7 @@
> ################################################################################
>
> ifeq ($(BR2_arc),y)
> -GLIBC_VERSION = arc-2019.03-release
> +GLIBC_VERSION = ec681dddfa99894513c85da7d5d257b60d04f915
> GLIBC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,glibc,$(GLIBC_VERSION))
> else ifeq ($(BR2_RISCV_32),y)
> GLIBC_VERSION = 06983fe52cfe8e4779035c27e8cc5d2caab31531
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index c0612bf04176..327314585b8e 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_arcle && BR2_ARC_ATOMIC_EXT) || BR2_csky
> + (BR2_arc && BR2_ARC_ATOMIC_EXT) || BR2_csky
> depends on BR2_USE_MMU
> depends on !BR2_STATIC_LIBS
> depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
>
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-11-21 0:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01 19:03 [PATCH] toolchain,glibc: Allow ARC big endian glibc builds Vineet Gupta
2019-11-05 10:19 ` Alexey Brodkin
2019-11-05 17:35 ` [PATCH v2] " Vineet Gupta
2019-11-13 3:41 ` Vineet Gupta
2019-11-21 0:14 ` Vineet Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).