Message ID | 20240504195407.1409466-2-contact@artur-rojek.eu |
---|---|
State | New |
Headers | show |
Series | Reintroduce SH3 support | expand |
On Sat, May 04, 2024 at 09:54:04PM GMT, Artur Rojek wrote: > This restores support for the little-endian SH3 based CPUs. > > Signed-off-by: Artur Rojek <contact@artur-rojek.eu> > --- > arch/Config.in.sh | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/arch/Config.in.sh b/arch/Config.in.sh > index d3acc8ccf8e6..686789265e04 100644 > --- a/arch/Config.in.sh > +++ b/arch/Config.in.sh > @@ -13,9 +13,13 @@ config BR2_sh4a > bool "sh4a (SH4A little endian)" > config BR2_sh4aeb > bool "sh4aeb (SH4A big endian)" > +config BR2_sh3 > + bool "sh3 (SH3 little endian)" > + select BR2_SOFT_FLOAT > endchoice > > config BR2_ARCH > + default "sh3" if BR2_sh3 > default "sh4" if BR2_sh4 > default "sh4eb" if BR2_sh4eb > default "sh4a" if BR2_sh4a > @@ -25,7 +29,7 @@ config BR2_NORMALIZED_ARCH > default "sh" > > config BR2_ENDIAN > - default "LITTLE" if BR2_sh4 || BR2_sh4a > + default "LITTLE" if BR2_sh3 || BR2_sh4 || BR2_sh4a > default "BIG" if BR2_sh4eb || BR2_sh4aeb > > config BR2_READELF_ARCH_NAME As requested on IRC I gave it a spin on my HP Jornada 680, seems to run just fine, tested with linux 6.9-rc7, musl, gcc13, it ran htop, busybox vi, perl without problems. Building was done on amd64. Tested-by: socksinspace <socks-in.space@mailbox.org>
diff --git a/arch/Config.in.sh b/arch/Config.in.sh index d3acc8ccf8e6..686789265e04 100644 --- a/arch/Config.in.sh +++ b/arch/Config.in.sh @@ -13,9 +13,13 @@ config BR2_sh4a bool "sh4a (SH4A little endian)" config BR2_sh4aeb bool "sh4aeb (SH4A big endian)" +config BR2_sh3 + bool "sh3 (SH3 little endian)" + select BR2_SOFT_FLOAT endchoice config BR2_ARCH + default "sh3" if BR2_sh3 default "sh4" if BR2_sh4 default "sh4eb" if BR2_sh4eb default "sh4a" if BR2_sh4a @@ -25,7 +29,7 @@ config BR2_NORMALIZED_ARCH default "sh" config BR2_ENDIAN - default "LITTLE" if BR2_sh4 || BR2_sh4a + default "LITTLE" if BR2_sh3 || BR2_sh4 || BR2_sh4a default "BIG" if BR2_sh4eb || BR2_sh4aeb config BR2_READELF_ARCH_NAME
This restores support for the little-endian SH3 based CPUs. Signed-off-by: Artur Rojek <contact@artur-rojek.eu> --- arch/Config.in.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)