All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gcc: rename option for ARC gcc
@ 2016-08-11 13:25 Thomas Petazzoni
  2016-08-11 18:15 ` Baruch Siach
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2016-08-11 13:25 UTC (permalink / raw)
  To: buildroot

The ARC gcc version is now based on gcc 6.x and no longer gcc 4.8.x,
which makes the option BR2_GCC_VERSION_4_8_ARC a bit irrelevant, as is
the prompt of this option.

This commit therefore renames this option to BR2_GCC_VERSION_ARC, and
adjust its prompt as well.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 Config.in.legacy                       |  7 +++++++
 package/gcc/Config.in.host             | 10 +++++-----
 package/gcc/gcc-initial/gcc-initial.mk |  2 +-
 3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Config.in.legacy b/Config.in.legacy
index 746b80a..892a836 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -145,6 +145,13 @@ endif
 ###############################################################################
 comment "Legacy options removed in 2016.08"
 
+config BR2_GCC_VERSION_4_8_ARC
+	bool "gcc arc option renamed"
+	select BR2_LEGACY
+	help
+	  The option is select the gcc version for the ARC
+	  architecture has been renamed to BR2_GCC_VERSION_ARC.
+
 config BR2_PACKAGE_SYSTEMD_COMPAT
 	bool "systemd compatibility libraries have been removed"
 	select BR2_LEGACY
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index 8b2b00a..38902fe 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -8,7 +8,7 @@ config BR2_GCC_SUPPORTS_GRAPHITE
 
 choice
 	prompt "GCC compiler Version"
-	default BR2_GCC_VERSION_4_8_ARC if BR2_arc
+	default BR2_GCC_VERSION_ARC if BR2_arc
 	default BR2_GCC_VERSION_4_9_X
 	help
 	  Select the version of gcc you wish to use.
@@ -50,12 +50,12 @@ choice
 		select BR2_GCC_SUPPORTS_GRAPHITE
 		select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
 
-	config BR2_GCC_VERSION_4_8_ARC
-		bool "gcc 4.8-arc"
+	config BR2_GCC_VERSION_ARC
+		bool "gcc arc (6.x)"
 		# Only supported architecture
 		depends on BR2_arc
 		select BR2_GCC_NEEDS_MPC
-		select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+		select BR2_TOOLCHAIN_GCC_AT_LEAST_6
 
 
 	config BR2_GCC_VERSION_4_9_X
@@ -107,7 +107,7 @@ config BR2_GCC_VERSION
 	default "4.9.4"     if BR2_GCC_VERSION_4_9_X
 	default "5.4.0"     if BR2_GCC_VERSION_5_X
 	default "6.1.0" if BR2_GCC_VERSION_6_X
-	default "arc-2016.09-eng008" if BR2_GCC_VERSION_4_8_ARC
+	default "arc-2016.09-eng008" if BR2_GCC_VERSION_ARC
 
 config BR2_EXTRA_GCC_CONFIG_OPTIONS
 	string "Additional gcc options"
diff --git a/package/gcc/gcc-initial/gcc-initial.mk b/package/gcc/gcc-initial/gcc-initial.mk
index 1e58d8b..aa88a68 100644
--- a/package/gcc/gcc-initial/gcc-initial.mk
+++ b/package/gcc/gcc-initial/gcc-initial.mk
@@ -29,7 +29,7 @@ HOST_GCC_INITIAL_PRE_CONFIGURE_HOOKS += HOST_GCC_CONFIGURE_SYMLINK
 # available (--with-newlib is passed, and therefore inhibit_libc is
 # defined), it tries to use the C library for the libgmon
 # library. Since it's not needed in gcc-initial, we disabled it here.
-ifeq ($(BR2_GCC_VERSION_4_8_ARC),y)
+ifeq ($(BR2_GCC_VERSION_ARC),y)
 define HOST_GCC_INITIAL_DISABLE_LIBGMON
 	$(SED) 's/crtbeginS.o libgmon.a crtg.o/crtbeginS.o crtg.o/' \
 		$(@D)/libgcc/config.host
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] gcc: rename option for ARC gcc
  2016-08-11 13:25 [Buildroot] [PATCH] gcc: rename option for ARC gcc Thomas Petazzoni
@ 2016-08-11 18:15 ` Baruch Siach
  2016-08-12 12:45 ` Vlad Zakharov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Baruch Siach @ 2016-08-11 18:15 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Thu, Aug 11, 2016 at 03:25:38PM +0200, Thomas Petazzoni wrote:
> +config BR2_GCC_VERSION_4_8_ARC
> +	bool "gcc arc option renamed"
> +	select BR2_LEGACY
> +	help
> +	  The option is select the gcc version for the ARC

Maybe: "The option that selects..."

baruch

> +	  architecture has been renamed to BR2_GCC_VERSION_ARC.

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] gcc: rename option for ARC gcc
  2016-08-11 13:25 [Buildroot] [PATCH] gcc: rename option for ARC gcc Thomas Petazzoni
  2016-08-11 18:15 ` Baruch Siach
@ 2016-08-12 12:45 ` Vlad Zakharov
  2016-08-13 15:06 ` Arnout Vandecappelle
  2016-09-20 19:23 ` Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Vlad Zakharov @ 2016-08-12 12:45 UTC (permalink / raw)
  To: buildroot

All seems to be ok.

Thank you for this contribution.?

-- 
Best regards,
Vlad Zakharov <vzakhar@synopsys.com>

On Thu, 2016-08-11 at 15:25 +0200, Thomas Petazzoni wrote:
> The ARC gcc version is now based on gcc 6.x and no longer gcc 4.8.x,
> which makes the option BR2_GCC_VERSION_4_8_ARC a bit irrelevant, as is
> the prompt of this option.
> 
> This commit therefore renames this option to BR2_GCC_VERSION_ARC, and
> adjust its prompt as well.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> ?Config.in.legacy???????????????????????|??7 +++++++
> ?package/gcc/Config.in.host?????????????| 10 +++++-----
> ?package/gcc/gcc-initial/gcc-initial.mk |??2 +-
> ?3 files changed, 13 insertions(+), 6 deletions(-)
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 746b80a..892a836 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -145,6 +145,13 @@ endif
> ?###############################################################################
> ?comment "Legacy options removed in 2016.08"
> ?
> +config BR2_GCC_VERSION_4_8_ARC
> +	bool "gcc arc option renamed"
> +	select BR2_LEGACY
> +	help
> +	??The option is select the gcc version for the ARC
> +	??architecture has been renamed to BR2_GCC_VERSION_ARC.
> +
> ?config BR2_PACKAGE_SYSTEMD_COMPAT
> ?	bool "systemd compatibility libraries have been removed"
> ?	select BR2_LEGACY
> diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
> index 8b2b00a..38902fe 100644
> --- a/package/gcc/Config.in.host
> +++ b/package/gcc/Config.in.host
> @@ -8,7 +8,7 @@ config BR2_GCC_SUPPORTS_GRAPHITE
> ?
> ?choice
> ?	prompt "GCC compiler Version"
> -	default BR2_GCC_VERSION_4_8_ARC if BR2_arc
> +	default BR2_GCC_VERSION_ARC if BR2_arc
> ?	default BR2_GCC_VERSION_4_9_X
> ?	help
> ?	??Select the version of gcc you wish to use.
> @@ -50,12 +50,12 @@ choice
> ?		select BR2_GCC_SUPPORTS_GRAPHITE
> ?		select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
> ?
> -	config BR2_GCC_VERSION_4_8_ARC
> -		bool "gcc 4.8-arc"
> +	config BR2_GCC_VERSION_ARC
> +		bool "gcc arc (6.x)"
> ?		# Only supported architecture
> ?		depends on BR2_arc
> ?		select BR2_GCC_NEEDS_MPC
> -		select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
> +		select BR2_TOOLCHAIN_GCC_AT_LEAST_6
> ?
> ?
> ?	config BR2_GCC_VERSION_4_9_X
> @@ -107,7 +107,7 @@ config BR2_GCC_VERSION
> ?	default "4.9.4"?????if BR2_GCC_VERSION_4_9_X
> ?	default "5.4.0"?????if BR2_GCC_VERSION_5_X
> ?	default "6.1.0" if BR2_GCC_VERSION_6_X
> -	default "arc-2016.09-eng008" if BR2_GCC_VERSION_4_8_ARC
> +	default "arc-2016.09-eng008" if BR2_GCC_VERSION_ARC
> ?
> ?config BR2_EXTRA_GCC_CONFIG_OPTIONS
> ?	string "Additional gcc options"
> diff --git a/package/gcc/gcc-initial/gcc-initial.mk b/package/gcc/gcc-initial/gcc-initial.mk
> index 1e58d8b..aa88a68 100644
> --- a/package/gcc/gcc-initial/gcc-initial.mk
> +++ b/package/gcc/gcc-initial/gcc-initial.mk
> @@ -29,7 +29,7 @@ HOST_GCC_INITIAL_PRE_CONFIGURE_HOOKS += HOST_GCC_CONFIGURE_SYMLINK
> ?# available (--with-newlib is passed, and therefore inhibit_libc is
> ?# defined), it tries to use the C library for the libgmon
> ?# library. Since it's not needed in gcc-initial, we disabled it here.
> -ifeq ($(BR2_GCC_VERSION_4_8_ARC),y)
> +ifeq ($(BR2_GCC_VERSION_ARC),y)
> ?define HOST_GCC_INITIAL_DISABLE_LIBGMON
> ?	$(SED) 's/crtbeginS.o libgmon.a crtg.o/crtbeginS.o crtg.o/' \
> ?		$(@D)/libgcc/config.host

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] gcc: rename option for ARC gcc
  2016-08-11 13:25 [Buildroot] [PATCH] gcc: rename option for ARC gcc Thomas Petazzoni
  2016-08-11 18:15 ` Baruch Siach
  2016-08-12 12:45 ` Vlad Zakharov
@ 2016-08-13 15:06 ` Arnout Vandecappelle
  2016-09-20 19:23 ` Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-08-13 15:06 UTC (permalink / raw)
  To: buildroot

On 11-08-16 15:25, Thomas Petazzoni wrote:
> The ARC gcc version is now based on gcc 6.x and no longer gcc 4.8.x,
> which makes the option BR2_GCC_VERSION_4_8_ARC a bit irrelevant, as is
> the prompt of this option.
> 
> This commit therefore renames this option to BR2_GCC_VERSION_ARC, and
> adjust its prompt as well.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  Config.in.legacy                       |  7 +++++++
>  package/gcc/Config.in.host             | 10 +++++-----
>  package/gcc/gcc-initial/gcc-initial.mk |  2 +-
>  3 files changed, 13 insertions(+), 6 deletions(-)
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 746b80a..892a836 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -145,6 +145,13 @@ endif
>  ###############################################################################
>  comment "Legacy options removed in 2016.08"
>  
> +config BR2_GCC_VERSION_4_8_ARC
> +	bool "gcc arc option renamed"
> +	select BR2_LEGACY

 You forgot to select BR2_GCC_VERSION_ARC.

 Otherwise: Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>


 Regards,
 Arnout

> +	help
> +	  The option is select the gcc version for the ARC
> +	  architecture has been renamed to BR2_GCC_VERSION_ARC.
> +
>  config BR2_PACKAGE_SYSTEMD_COMPAT
>  	bool "systemd compatibility libraries have been removed"
>  	select BR2_LEGACY

[snip]

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] gcc: rename option for ARC gcc
  2016-08-11 13:25 [Buildroot] [PATCH] gcc: rename option for ARC gcc Thomas Petazzoni
                   ` (2 preceding siblings ...)
  2016-08-13 15:06 ` Arnout Vandecappelle
@ 2016-09-20 19:23 ` Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2016-09-20 19:23 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 11 Aug 2016 15:25:38 +0200, Thomas Petazzoni wrote:
> The ARC gcc version is now based on gcc 6.x and no longer gcc 4.8.x,
> which makes the option BR2_GCC_VERSION_4_8_ARC a bit irrelevant, as is
> the prompt of this option.
> 
> This commit therefore renames this option to BR2_GCC_VERSION_ARC, and
> adjust its prompt as well.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  Config.in.legacy                       |  7 +++++++
>  package/gcc/Config.in.host             | 10 +++++-----
>  package/gcc/gcc-initial/gcc-initial.mk |  2 +-
>  3 files changed, 13 insertions(+), 6 deletions(-)

I've applied to master, after taking into account the comments made by
Arnout and Baruch.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-20 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 13:25 [Buildroot] [PATCH] gcc: rename option for ARC gcc Thomas Petazzoni
2016-08-11 18:15 ` Baruch Siach
2016-08-12 12:45 ` Vlad Zakharov
2016-08-13 15:06 ` Arnout Vandecappelle
2016-09-20 19:23 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.