From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: James Hilliard <james.hilliard1@gmail.com>,
Buildroot List <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH 1/5] arch/Config.in.sh: fixup MMU selection
Date: Sun, 24 Apr 2022 10:56:14 +0200 [thread overview]
Message-ID: <20220424085614.GT2730@scaer> (raw)
In-Reply-To: <20220419213450.887728-1-thomas.petazzoni@bootlin.com>
Thomas, All,
On 2022-04-19 23:34 +0200, Thomas Petazzoni via buildroot spake thusly:
> BR2_sh selects BR2_ARCH_HAS_MMU_OPTIONAL, which means that it's up to
> the user to decide whether he wants to use MMU or not on SuperH
> platforms.
>
> However:
>
> - On SH2A, there is no MMU at all, so being to select "Use MMU"
> doesn't make any sense.
>
> - On SH4, there is no support for *not* using the MMU, so disabling
> "Use MMU" will cause the build to fail.
>
> In order to fix this, we move the MMU selection to arch/Config.in.sh:
>
> - BR2_sh2a selects nothing, so that it's always noMMU
>
> - BR2_sh4* select BR2_ARCH_HAS_MMU_MANDATORY so that the MMU is
> always used.
>
> Fixes:
>
> http://autobuild.buildroot.net/results/f4d52cabee61ee0f234b03c1ec1bd02e85e7bb20/ (FLAT
> selected with sh4aeb)
>
> http://autobuild.buildroot.net/results/d1b1dfe449f82944bd48215da3cdffd05797e2e9/ (FLAT
> selected with sh4a)
>
> http://autobuild.buildroot.net/results/45bc90fd2dde7bb201d7f999db1a8024cf889a06/ (FLAT
> selected with sh4)
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Whole series of 5 patches applied to master.
I reorganised them to apply all the Super-H patches together, then the
ARM patches, as I thought it made more sense to group by architecture
than by "MMU fixup".
Regards,
Yann E. MORIN.
> ---
> arch/Config.in | 1 -
> arch/Config.in.sh | 4 ++++
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/Config.in b/arch/Config.in
> index 98b0e40d51..e51ef60f40 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -228,7 +228,6 @@ config BR2_s390x
>
> config BR2_sh
> bool "SuperH"
> - select BR2_ARCH_HAS_MMU_OPTIONAL
> help
> SuperH (or SH) is a 32-bit reduced instruction set computer
> (RISC) instruction set architecture (ISA) developed by
> diff --git a/arch/Config.in.sh b/arch/Config.in.sh
> index c1ba449dd5..a012cbf491 100644
> --- a/arch/Config.in.sh
> +++ b/arch/Config.in.sh
> @@ -9,12 +9,16 @@ config BR2_sh2a
> bool "sh2a (SH2A big endian)"
> config BR2_sh4
> bool "sh4 (SH4 little endian)"
> + select BR2_ARCH_HAS_MMU_MANDATORY
> config BR2_sh4eb
> bool "sh4eb (SH4 big endian)"
> + select BR2_ARCH_HAS_MMU_MANDATORY
> config BR2_sh4a
> bool "sh4a (SH4A little endian)"
> + select BR2_ARCH_HAS_MMU_MANDATORY
> config BR2_sh4aeb
> bool "sh4aeb (SH4A big endian)"
> + select BR2_ARCH_HAS_MMU_MANDATORY
> endchoice
>
> config BR2_ARCH
> --
> 2.35.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-04-24 8:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-19 21:34 [Buildroot] [PATCH 1/5] arch/Config.in.sh: fixup MMU selection Thomas Petazzoni via buildroot
2022-04-19 21:34 ` [Buildroot] [PATCH 2/5] arch/Config.in: remove BR2_ARCH_HAS_MMU_MANDATORY from BR2_aarch64* Thomas Petazzoni via buildroot
2022-04-19 21:34 ` [Buildroot] [PATCH 3/5] arch/Config.in.arm: re-organize MMU selection Thomas Petazzoni via buildroot
2022-05-18 20:24 ` Romain Naour
2022-05-18 21:35 ` Thomas Petazzoni via buildroot
2022-05-26 9:49 ` Peter Korsgaard
2022-04-19 21:34 ` [Buildroot] [PATCH 4/5] arch: drop support for SH2A Thomas Petazzoni via buildroot
2022-04-24 8:54 ` Yann E. MORIN
2022-04-19 21:34 ` [Buildroot] [PATCH 5/5] arch/Config.in.sh: move BR2_ARCH_HAS_MMU_MANDATORY one level up Thomas Petazzoni via buildroot
2022-05-26 9:46 ` Peter Korsgaard
2022-04-24 8:56 ` Yann E. MORIN [this message]
2022-05-26 9:44 ` [Buildroot] [PATCH 1/5] arch/Config.in.sh: fixup MMU selection Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220424085614.GT2730@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=james.hilliard1@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox