Skip to content
3 changes: 2 additions & 1 deletion pkg/dav1d/gen.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local arch = config.target.platform:match('[^-]*')
cflags{
'-Wall', '-Wno-maybe-uninitialized',
'-D _XOPEN_SOURCE=700',
Expand All @@ -6,7 +7,7 @@ cflags{
'-I $srcdir/tools',
'-I $outdir',
'-I $outdir/include/dav1d',
'-I $dir',
arch == 'riscv64' and '-I $dir/riscv' or '-I $dir',
}
nasmflags{
'-i $srcdir/src/',
Expand Down
17 changes: 17 additions & 0 deletions pkg/dav1d/riscv/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#define ARCH_AARCH64 0
#define ARCH_ARM 0
#define ARCH_PPC64LE 0
#define ARCH_X86 0
#define ARCH_X86_32 0
#define ARCH_X86_64 0
#define CONFIG_16BPC 1
#define CONFIG_8BPC 1
#define CONFIG_LOG 1
#define ENDIANNESS_BIG 0
#define HAVE_ASM 1
Comment thread
michaelforney marked this conversation as resolved.
Outdated
#define HAVE_AVX512ICL 1
#define HAVE_CLOCK_GETTIME 1
#define HAVE_DLSYM 1
#define HAVE_POSIX_MEMALIGN 1
#define HAVE_UNISTD_H 1
#define STACK_ALIGNMENT 32