opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 33cd68c359e367a9ee84b5938228b852c46008a7
Parent: a48e77eb0e516d9dbc036023daeacffeab07a372
Author: Samuel MarĂ­n Soto
Date:   Sat,  2 May 2026 20:20:42 -0600

linux-headers: build on riscv64

add riscv64 to arches and generated riscv.lua, just like with aarch64
and x86_64.

Diffstat:
Mpkg/linux-headers/gen.lua | 1+
Apkg/linux-headers/riscv.lua | 34++++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/pkg/linux-headers/gen.lua b/pkg/linux-headers/gen.lua @@ -1,6 +1,7 @@ local arch = ({ aarch64='arm64', x86_64='x86', + riscv64='riscv', })[config.target.platform:match('[^-]*')] sub('tools.ninja', function() toolchain(config.host) diff --git a/pkg/linux-headers/riscv.lua b/pkg/linux-headers/riscv.lua @@ -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={}, +}