* [Buildroot] [PATCH] MIPS: add support for M6201 cores
@ 2016-10-18 15:55 Vicente Olivert Riera
2016-10-18 19:46 ` Arnout Vandecappelle
2016-10-19 21:31 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2016-10-18 15:55 UTC (permalink / raw)
To: buildroot
-march=m6201 is not yet supported in GCC upstream, so disabling all
versions when selecting this core.
Note that M6201 implies a MIPS R6 CPU, and some GCC versions are already
disabled for R6, so we don't need to disable those ones for M6201 as
well.
The external Codescape IMG GNU Linux Toolchain has support for this
core.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
arch/Config.in.mips | 5 +++++
package/gcc/Config.in.host | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/Config.in.mips b/arch/Config.in.mips
index f7bfa21..3662fed 100644
--- a/arch/Config.in.mips
+++ b/arch/Config.in.mips
@@ -55,6 +55,10 @@ config BR2_mips_m5101
bool "M5101"
depends on !BR2_ARCH_IS_64
select BR2_MIPS_CPU_MIPS32R5
+config BR2_mips_m6201
+ bool "M6201"
+ depends on !BR2_ARCH_IS_64
+ select BR2_MIPS_CPU_MIPS32R6
config BR2_mips_p5600
bool "P5600"
depends on !BR2_ARCH_IS_64
@@ -131,6 +135,7 @@ config BR2_GCC_TARGET_ARCH
default "interaptiv" if BR2_mips_interaptiv
default "m5100" if BR2_mips_m5100
default "m5101" if BR2_mips_m5101
+ default "m6201" if BR2_mips_m6201
default "p5600" if BR2_mips_p5600
default "mips64" if BR2_mips_64
default "mips64r2" if BR2_mips_64r2
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index df60c65..d204bf7 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -63,7 +63,8 @@ choice
depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
# Unsupported MIPS cores
depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
- !BR2_mips_m5101 && !BR2_mips_i6400 && !BR2_mips_p6600
+ !BR2_mips_m5101 && !BR2_mips_m6201 && !BR2_mips_i6400 && \
+ !BR2_mips_p6600
# musl mips64 unsupported
depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
select BR2_TOOLCHAIN_GCC_AT_LEAST_5
@@ -73,7 +74,7 @@ choice
# Broken or unsupported architectures
depends on !BR2_arc
# Unsupported MIPS cores
- depends on !BR2_mips_p6600
+ depends on !BR2_mips_m6201 && !BR2_mips_p6600
select BR2_TOOLCHAIN_GCC_AT_LEAST_6
endchoice
--
2.10.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] MIPS: add support for M6201 cores
2016-10-18 15:55 [Buildroot] [PATCH] MIPS: add support for M6201 cores Vicente Olivert Riera
@ 2016-10-18 19:46 ` Arnout Vandecappelle
2016-10-19 9:02 ` Vicente Olivert Riera
2016-10-19 21:31 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2016-10-18 19:46 UTC (permalink / raw)
To: buildroot
On 18-10-16 17:55, Vicente Olivert Riera wrote:
> -march=m6201 is not yet supported in GCC upstream, so disabling all
> versions when selecting this core.
>
> Note that M6201 implies a MIPS R6 CPU, and some GCC versions are already
> disabled for R6, so we don't need to disable those ones for M6201 as
> well.
>
> The external Codescape IMG GNU Linux Toolchain has support for this
> core.
However, BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS supports MIPS32R6 and I don't expect
it supports this core...
Regards,
Arnout
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> arch/Config.in.mips | 5 +++++
> package/gcc/Config.in.host | 5 +++--
> 2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/arch/Config.in.mips b/arch/Config.in.mips
> index f7bfa21..3662fed 100644
> --- a/arch/Config.in.mips
> +++ b/arch/Config.in.mips
> @@ -55,6 +55,10 @@ config BR2_mips_m5101
> bool "M5101"
> depends on !BR2_ARCH_IS_64
> select BR2_MIPS_CPU_MIPS32R5
> +config BR2_mips_m6201
> + bool "M6201"
> + depends on !BR2_ARCH_IS_64
> + select BR2_MIPS_CPU_MIPS32R6
> config BR2_mips_p5600
> bool "P5600"
> depends on !BR2_ARCH_IS_64
> @@ -131,6 +135,7 @@ config BR2_GCC_TARGET_ARCH
> default "interaptiv" if BR2_mips_interaptiv
> default "m5100" if BR2_mips_m5100
> default "m5101" if BR2_mips_m5101
> + default "m6201" if BR2_mips_m6201
> default "p5600" if BR2_mips_p5600
> default "mips64" if BR2_mips_64
> default "mips64r2" if BR2_mips_64r2
> diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
> index df60c65..d204bf7 100644
> --- a/package/gcc/Config.in.host
> +++ b/package/gcc/Config.in.host
> @@ -63,7 +63,8 @@ choice
> depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
> # Unsupported MIPS cores
> depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
> - !BR2_mips_m5101 && !BR2_mips_i6400 && !BR2_mips_p6600
> + !BR2_mips_m5101 && !BR2_mips_m6201 && !BR2_mips_i6400 && \
> + !BR2_mips_p6600
> # musl mips64 unsupported
> depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
> select BR2_TOOLCHAIN_GCC_AT_LEAST_5
> @@ -73,7 +74,7 @@ choice
> # Broken or unsupported architectures
> depends on !BR2_arc
> # Unsupported MIPS cores
> - depends on !BR2_mips_p6600
> + depends on !BR2_mips_m6201 && !BR2_mips_p6600
> select BR2_TOOLCHAIN_GCC_AT_LEAST_6
>
> endchoice
>
--
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] 4+ messages in thread
* [Buildroot] [PATCH] MIPS: add support for M6201 cores
2016-10-18 19:46 ` Arnout Vandecappelle
@ 2016-10-19 9:02 ` Vicente Olivert Riera
0 siblings, 0 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2016-10-19 9:02 UTC (permalink / raw)
To: buildroot
Hello Arnout,
On 18/10/16 20:46, Arnout Vandecappelle wrote:
>
>
> On 18-10-16 17:55, Vicente Olivert Riera wrote:
>> -march=m6201 is not yet supported in GCC upstream, so disabling all
>> versions when selecting this core.
>>
>> Note that M6201 implies a MIPS R6 CPU, and some GCC versions are already
>> disabled for R6, so we don't need to disable those ones for M6201 as
>> well.
>>
>> The external Codescape IMG GNU Linux Toolchain has support for this
>> core.
>
> However, BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS supports MIPS32R6 and I don't expect
> it supports this core...
No, that toolchain is disabled for MIPS R6 (both 32 and 64 bit):
From toolchain/toolchain-external/Config.in:
520 config BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS
[snip]
532 # Unsupported for MIPS R6
533 depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
Vincent
> Regards,
> Arnout
>
>>
>> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
>> ---
>> arch/Config.in.mips | 5 +++++
>> package/gcc/Config.in.host | 5 +++--
>> 2 files changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/Config.in.mips b/arch/Config.in.mips
>> index f7bfa21..3662fed 100644
>> --- a/arch/Config.in.mips
>> +++ b/arch/Config.in.mips
>> @@ -55,6 +55,10 @@ config BR2_mips_m5101
>> bool "M5101"
>> depends on !BR2_ARCH_IS_64
>> select BR2_MIPS_CPU_MIPS32R5
>> +config BR2_mips_m6201
>> + bool "M6201"
>> + depends on !BR2_ARCH_IS_64
>> + select BR2_MIPS_CPU_MIPS32R6
>> config BR2_mips_p5600
>> bool "P5600"
>> depends on !BR2_ARCH_IS_64
>> @@ -131,6 +135,7 @@ config BR2_GCC_TARGET_ARCH
>> default "interaptiv" if BR2_mips_interaptiv
>> default "m5100" if BR2_mips_m5100
>> default "m5101" if BR2_mips_m5101
>> + default "m6201" if BR2_mips_m6201
>> default "p5600" if BR2_mips_p5600
>> default "mips64" if BR2_mips_64
>> default "mips64r2" if BR2_mips_64r2
>> diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
>> index df60c65..d204bf7 100644
>> --- a/package/gcc/Config.in.host
>> +++ b/package/gcc/Config.in.host
>> @@ -63,7 +63,8 @@ choice
>> depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
>> # Unsupported MIPS cores
>> depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
>> - !BR2_mips_m5101 && !BR2_mips_i6400 && !BR2_mips_p6600
>> + !BR2_mips_m5101 && !BR2_mips_m6201 && !BR2_mips_i6400 && \
>> + !BR2_mips_p6600
>> # musl mips64 unsupported
>> depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
>> select BR2_TOOLCHAIN_GCC_AT_LEAST_5
>> @@ -73,7 +74,7 @@ choice
>> # Broken or unsupported architectures
>> depends on !BR2_arc
>> # Unsupported MIPS cores
>> - depends on !BR2_mips_p6600
>> + depends on !BR2_mips_m6201 && !BR2_mips_p6600
>> select BR2_TOOLCHAIN_GCC_AT_LEAST_6
>>
>> endchoice
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] MIPS: add support for M6201 cores
2016-10-18 15:55 [Buildroot] [PATCH] MIPS: add support for M6201 cores Vicente Olivert Riera
2016-10-18 19:46 ` Arnout Vandecappelle
@ 2016-10-19 21:31 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-10-19 21:31 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 18 Oct 2016 16:55:25 +0100, Vicente Olivert Riera wrote:
> -march=m6201 is not yet supported in GCC upstream, so disabling all
> versions when selecting this core.
>
> Note that M6201 implies a MIPS R6 CPU, and some GCC versions are already
> disabled for R6, so we don't need to disable those ones for M6201 as
> well.
>
> The external Codescape IMG GNU Linux Toolchain has support for this
> core.
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> arch/Config.in.mips | 5 +++++
> package/gcc/Config.in.host | 5 +++--
> 2 files changed, 8 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-19 21:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 15:55 [Buildroot] [PATCH] MIPS: add support for M6201 cores Vicente Olivert Riera
2016-10-18 19:46 ` Arnout Vandecappelle
2016-10-19 9:02 ` Vicente Olivert Riera
2016-10-19 21:31 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox