opkg

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

Commit: 2be3c1e94ca863aa7f5c7c517acdf08c1a407859
Parent: ea70eff974ba9aebd7e5694bdda30819edc7663f
Author: Samuel MarĂ­n Soto
Date:   Thu,  7 May 2026 23:03:58 -0600

strace: build on riscv64

add cflags and syscalls to riscv64 build

Diffstat:
Mpkg/strace/gen.lua | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/pkg/strace/gen.lua b/pkg/strace/gen.lua @@ -3,6 +3,10 @@ local targets = { cflags={'-D AARCH64=1'}, ioctls=1, }, + riscv64={ + cflags={'-D RISCV64=1'}, + ioctls=0, + }, x86_64={ cflags={'-D X86_64=1'}, ioctls=2, @@ -75,7 +79,7 @@ makempers('printers.h', 'printers.awk') makempers('native_printer_decls.h', 'printerdecls.awk') makempers('native_printer_defs.h', 'printerdefs.awk') -build('cpp', '$outdir/syscallent.i', '$srcdir/src/linux/x86_64/syscallent.h') +build('cpp', '$outdir/syscallent.i', '$srcdir/src/linux/'..arch..'/syscallent.h') build('awk', '$outdir/scno-syscallent.h', {'$outdir/syscallent.i', '|', '$dir/scno.awk'}, { expr='-f $dir/scno.awk', }) @@ -86,11 +90,12 @@ local syscalls = expand{'$srcdir/src/linux/', { '32/syscallent.h', '64/syscallent.h', 'arm/syscallent.h', + 'generic/subcallent.h', + 'generic/syscallent-common.h', 'i386/syscallent.h', + 'riscv64/syscallent.h', 'sparc/syscallent.h', 'sparc64/syscallent.h', - 'generic/subcallent.h', - 'generic/syscallent-common.h', 'x86_64/syscallent.h', }} build('awk', '$outdir/sen.h', {syscalls, '|', '$dir/sen.awk'}, {