diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-05-18 09:28:34 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-05-21 18:11:56 -0700 |
commit | 5053e4cb25a0006fe47ddd0e99334c450bfd5316 (patch) | |
tree | 99d4bc5f2f8a7b840a73a2ead373b079f00fa740 /conf/nonclangable.conf | |
parent | 869df95b61ba44a7ad6bc57da8a31e459eec5059 (diff) | |
download | meta-clang-5053e4cb25a0006fe47ddd0e99334c450bfd5316.tar.gz |
ffmpeg: Enable zbb manip extensions for rv32/rv64
This is required with clang after the assembly file is added which uses
these instructions. it works with gcc because it uses
.option directive to enable zbb extentions in toolchain on the fly
clang does not have similar option
| <instantiation>:6:21: warning: unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'relax' or 'norelax'
| .option arch, +zbb
This fixes
| src/libavcodec/riscv/bswapdsp_rvb.S:61:9: error: instruction requires the following: 'Zbb' (Basic Bit-Manipulation) or 'Zbkb' (Bitmanip instructions for Cryptography)
| rev8 t0, t0
| ^
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'conf/nonclangable.conf')
-rw-r--r-- | conf/nonclangable.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 2c83f1a..6597bce 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -254,6 +254,9 @@ CFLAGS:append:pn-seatd:toolchain-clang = " -Wno-sign-compare" | |||
254 | CXXFLAGS:remove:pn-mozjs:toolchain-clang = "-fno-tree-vrp" | 254 | CXXFLAGS:remove:pn-mozjs:toolchain-clang = "-fno-tree-vrp" |
255 | CFLAGS:remove:pn-mozjs:toolchain-clang = "-fno-tree-vrp" | 255 | CFLAGS:remove:pn-mozjs:toolchain-clang = "-fno-tree-vrp" |
256 | 256 | ||
257 | CFLAGS:append:pn-ffmpeg:riscv64 = " -march=rv64gczbb" | ||
258 | CFLAGS:append:pn-ffmpeg:riscv32 = " -march=rv32gczbb" | ||
259 | |||
257 | TUNE_CCARGS:remove:pn-omxplayer:toolchain-clang = "-no-integrated-as" | 260 | TUNE_CCARGS:remove:pn-omxplayer:toolchain-clang = "-no-integrated-as" |
258 | TUNE_CCARGS:remove:pn-nfs-utils:toolchain-clang = "-Qunused-arguments" | 261 | TUNE_CCARGS:remove:pn-nfs-utils:toolchain-clang = "-Qunused-arguments" |
259 | 262 | ||