Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: CheryDan via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: CheryDan <code@ffmpeg.org>
Subject: [FFmpeg-devel] [PATCH] Fix build on RISC-V: resolve undefined reference to ff_rv_zbb_supported in fftools/ffmpeg_filter (PR #21296)
Date: Thu, 25 Dec 2025 09:25:02 -0000
Message-ID: <176665470294.25.15010308030409696903@4457048688e7> (raw)

PR #21296 opened by CheryDan
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21296
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21296.patch


>From 54140e0b97a802431a65a720f3f4d0812da2bd7f Mon Sep 17 00:00:00 2001
From: daichengrong <daichengrong@iscas.ac.cn>
Date: Thu, 25 Dec 2025 17:11:08 +0800
Subject: [PATCH] Fix build on RISC-V: resolve undefined reference to
 ff_rv_zbb_supported in fftools/ffmpeg_filter

---
 fftools/Makefile           | 5 ++++-
 fftools/riscv/Makefile     | 1 +
 fftools/riscv/cpu_common.c | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 fftools/riscv/Makefile
 create mode 100644 fftools/riscv/cpu_common.c

diff --git a/fftools/Makefile b/fftools/Makefile
index 01b16fa8f4..e472c43024 100644
--- a/fftools/Makefile
+++ b/fftools/Makefile
@@ -10,6 +10,7 @@ ALLAVPROGS   = $(AVBASENAMES:%=%$(PROGSSUF)$(EXESUF))
 ALLAVPROGS_G = $(AVBASENAMES:%=%$(PROGSSUF)_g$(EXESUF))
 
 include $(SRC_PATH)/fftools/resources/Makefile
+include $(SRC_PATH)/fftools/riscv/Makefile
 
 OBJS-ffmpeg +=                  \
     fftools/ffmpeg_dec.o        \
@@ -37,6 +38,7 @@ OBJS-ffmpeg +=                  \
     fftools/textformat/tw_stdout.o    \
     $(OBJS-resman)                    \
     $(RESOBJS)                        \
+    $(OBJS-CPU_COMMON-yes)              \
 
 OBJS-ffprobe +=                       \
     fftools/textformat/avtextformat.o \
@@ -60,7 +62,7 @@ ifdef HAVE_GNU_WINDRES
 OBJS-$(1) += fftools/fftoolsres.o
 endif
 $(1)$(PROGSSUF)_g$(EXESUF): $$(OBJS-$(1))
-$$(OBJS-$(1)): | fftools fftools/textformat fftools/resources fftools/graph
+$$(OBJS-$(1)): | fftools fftools/textformat fftools/resources fftools/graph fftools/riscv
 $$(OBJS-$(1)): CFLAGS  += $(CFLAGS-$(1))
 $(1)$(PROGSSUF)_g$(EXESUF): LDFLAGS += $(LDFLAGS-$(1))
 $(1)$(PROGSSUF)_g$(EXESUF): FF_EXTRALIBS += $(EXTRALIBS-$(1))
@@ -76,6 +78,7 @@ OUTDIRS += fftools
 OUTDIRS += fftools/textformat
 OUTDIRS += fftools/resources
 OUTDIRS += fftools/graph
+OUTDIRS += fftools/riscv
 
 ifdef AVPROGS
 install: install-progs install-data
diff --git a/fftools/riscv/Makefile b/fftools/riscv/Makefile
new file mode 100644
index 0000000000..f187b3d92e
--- /dev/null
+++ b/fftools/riscv/Makefile
@@ -0,0 +1 @@
+OBJS-CPU_COMMON-$(HAVE_RV) += fftools/riscv/cpu_common.o
diff --git a/fftools/riscv/cpu_common.c b/fftools/riscv/cpu_common.c
new file mode 100644
index 0000000000..17c9b392c9
--- /dev/null
+++ b/fftools/riscv/cpu_common.c
@@ -0,0 +1 @@
+#include "libavutil/riscv/cpu_common.c"
-- 
2.49.1

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

                 reply	other threads:[~2025-12-25  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=176665470294.25.15010308030409696903@4457048688e7 \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=code@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git