[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ffeea73d-35e1-44b7-b90d-c1b45f85376b@t-8ch.de>
Date: Wed, 25 Jun 2025 16:13:26 +0200
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Rob Landley <rob@...dley.net>
Cc: Yoshinori Sato <ysato@...rs.sourceforge.jp>,
Rich Felker <dalias@...c.org>, John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>,
Willy Tarreau <w@....eu>, Shuah Khan <shuah@...nel.org>, linux-sh@...r.kernel.org,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/3] tools/nolibc: add support for SuperH
Hi Rob,
On 2025-06-24 21:41:14-0500, Rob Landley wrote:
> On 6/9/25 04:28, Thomas Weißschuh wrote:
> > Add support for SuperH/"sh" to nolibc.
> > Only sh4 is tested for now.
> >
> > This is only tested on QEMU so far.
> > Additional testing would be very welcome.
>
> I ran this by Jeff Dionne (the j-core architect) who said:
>
> > Looks correct to me. There are no endian assumptions that I can see.
>
> So you can put
>
> Acked-by: Rob Landley <rob@...dley.net>
> Acked-by: D. Jeff Dionne <jeff@...esemi.io>
Thanks!
> But neither of us really have a build environment set up to do much with it.
> Is there a howto for this, or is just to run the kernel tests?
v2 of the series [0] has some test instructions.
These should also work with v1, except that "-f Makefile.nolibc" needs
to be removed.
$ cd tools/testings/selftests/nolibc/
$ make -f Makefile.nolibc ARCH=sh CROSS_COMPILE=sh4-linux- nolibc-test
$ file nolibc-test
nolibc-test: ELF 32-bit LSB executable, Renesas SH, version 1 (SYSV), statically linked, not stripped
$ ./nolibc-test
Running test 'startup'
0 argc = 1 [OK]
...
Total number of errors: 0
Exiting with status 0
[0] https://lore.kernel.org/lkml/20250623-nolibc-sh-v2-0-0f5b4b303025@weissschuh.net/
Powered by blists - more mailing lists