[PATCH v5 0/5] nolibc: add part2 of support for rv32

Zhangjin Wu falcon at tinylab.org
Mon Jun 19 05:22:43 PDT 2023


Hi, Willy

This is the revision of the v4 part2 of support for rv32 [1], this
further split the generic KARCH code out of the old rv32 compile patch
and also add kernel specific KARCH and nolibc specific NARCH for
tools/include/nolibc/Makefile too.

This is rebased on the dev.2023.06.14a branch of linux-rcu repo [2] with
basic run-user and run tests.

Changes from v4 -> v5:

* selftests/nolibc: allow customize kernel specific ARCH variable

  The KARCH customize support part splitted out of the old rv32 compile
  patch and removed the one passed to tools/include/nolibc/Makefile.

* tools/nolibc: add kernel and nolibc specific ARCH variables

  Pass original ARCH to tools/include/nolibc/Makefile, add KARCH and
  NARCH for kernel and nolibc respectively.

* selftests/nolibc: riscv: customize makefile for rv32

  Now, it is rv32 specific, no generic code.

Best regards,
Zhangjin
---
[1]: https://lore.kernel.org/linux-riscv/cover.1686128703.git.falcon@tinylab.org/
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/

Zhangjin Wu (5):
  tools/nolibc: fix up #error compile failures with -ENOSYS
  tools/nolibc: fix up undeclared syscall macros with #ifdef and -ENOSYS
  selftests/nolibc: allow customize kernel specific ARCH variable
  tools/nolibc: add kernel and nolibc specific ARCH variables
  selftests/nolibc: riscv: customize makefile for rv32

 tools/include/nolibc/Makefile           | 18 +++++++++---
 tools/include/nolibc/sys.h              | 38 ++++++++++++++++---------
 tools/testing/selftests/nolibc/Makefile | 18 ++++++++++--
 3 files changed, 55 insertions(+), 19 deletions(-)

-- 
2.25.1




More information about the linux-riscv mailing list