| Message ID | 20261127161454.2880456-1-khem.raj@oss.qualcomm.com |
|---|---|
| State | New |
| Headers | show |
| Series | ffmpeg: Use the external assembler for RISC-V with clang | expand |
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_9.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_9.1.bb index 8413b16c25..5d58ae4b90 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_9.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_9.1.bb @@ -33,6 +33,10 @@ ARM_INSTRUCTION_SET:armv4 = "arm" ARM_INSTRUCTION_SET:armv5 = "arm" ARM_INSTRUCTION_SET:armv6 = "arm" +# ASM code for RISCV is not internal assembler ready +CFLAGS:append:toolchain-clang:riscv64 = " -fno-integrated-as" +CFLAGS:append:toolchain-clang:riscv32 = " -fno-integrated-as" + # Should be API compatible with libav (which was a fork of ffmpeg) PROVIDES = "libav"
ffmpeg's RISC-V assembly is not ready for the LLVM integrated assembler; for example libavcodec/riscv/h264_intrapred_rvv.S uses .irp without a comma after the symbol name, which GNU as accepts and the integrated assembler rejects with "expected comma". Pass -fno-integrated-as for riscv32 and riscv64 when building with clang. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- meta/recipes-multimedia/ffmpeg/ffmpeg_9.1.bb | 4 ++++ 1 file changed, 4 insertions(+)