linux-headers: build on riscv64

add riscv64 to arches and generated riscv.lua, just like with aarch64
and x86_64.
This commit is contained in:
Samuel Marín Soto
2026-05-02 20:20:42 -06:00
committed by Michael Forney
parent b4b0e5564e
commit 6bd9bceedb
2 changed files with 35 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
local arch = ({
aarch64='arm64',
x86_64='x86',
riscv64='riscv',
})[config.target.platform:match('[^-]*')]
sub('tools.ninja', function()
toolchain(config.host)
+34
View File
@@ -0,0 +1,34 @@
return {
-- <cd src/arch/riscv/include/uapi && find * -name '*.h' -exec printf "\t'%s',\n" {} + | LC_COLLATE=C sort
'asm/auxvec.h',
'asm/bitsperlong.h',
'asm/bpf_perf_event.h',
'asm/byteorder.h',
'asm/elf.h',
'asm/hwcap.h',
'asm/hwprobe.h',
'asm/kvm.h',
'asm/perf_regs.h',
'asm/ptrace.h',
'asm/setup.h',
'asm/sigcontext.h',
'asm/ucontext.h',
'asm/unistd.h',
'asm/vendor/mips.h',
'asm/vendor/sifive.h',
'asm/vendor/thead.h',
unistd = {
-- arch/riscv/kernel/Makefile.syscalls
{
dst='unistd_32.h',
src='scripts/syscall.tbl',
abi='common|32|riscv|memfd_secret',
},
{
dst='unistd_64.h',
src='scripts/syscall.tbl',
abi='common|64|riscv|rlimit|memfd_secret',
},
},
generic={},
}