mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-08 21:34:54 +02:00
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:
committed by
Michael Forney
parent
b4b0e5564e
commit
6bd9bceedb
@@ -1,6 +1,7 @@
|
||||
local arch = ({
|
||||
aarch64='arm64',
|
||||
x86_64='x86',
|
||||
riscv64='riscv',
|
||||
})[config.target.platform:match('[^-]*')]
|
||||
sub('tools.ninja', function()
|
||||
toolchain(config.host)
|
||||
|
||||
@@ -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={},
|
||||
}
|
||||
Reference in New Issue
Block a user