mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-14 10:13:59 -09:00
package/ffmpeg: fix build on riscv32
Ported patch from OpenEmbedded:010b068bcc"ffmpeg 6.0 has added assembly routines which uses rv64i ISA unconditionally, ideally it should check for ISA before using those instructions." Fixes: https://autobuild.buildroot.org/results/8a7082a0f24ebcf264aeac5e0fea704dc6a6bb1c/ Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commit9e84f38be8) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
985d126cd7
commit
7babcd8937
@@ -529,6 +529,11 @@ else
|
||||
FFMPEG_CONF_OPTS += --disable-altivec
|
||||
endif
|
||||
|
||||
# Fix build failure on several missing assembly instructions
|
||||
ifeq ($(BR2_RISCV_32),y)
|
||||
FFMPEG_CONF_OPTS += --disable-rvv --disable-asm
|
||||
endif
|
||||
|
||||
# Uses __atomic_fetch_add_4
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
FFMPEG_CONF_OPTS += --extra-libs=-latomic
|
||||
|
||||
Reference in New Issue
Block a user