You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
configure: Add support for loongarch.
For la464 cpu: ./configure --cpu=la464 With cross-compiler: ./configure --cross-prefix=loongarch64-linux-gnu- \ --enable-cross-compile --arch=loongarch64 \ --target-os=linux --cpu=la464 Reviewed-by: 陈昊 <chenhao@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
12f8293c02
commit
07f8f78a5f
@@ -35,6 +35,7 @@ version <next>:
|
|||||||
- bitpacked encoder
|
- bitpacked encoder
|
||||||
- VideoToolbox VP9 hwaccel
|
- VideoToolbox VP9 hwaccel
|
||||||
- VideoToolbox ProRes hwaccel
|
- VideoToolbox ProRes hwaccel
|
||||||
|
- support loongarch.
|
||||||
|
|
||||||
|
|
||||||
version 4.4:
|
version 4.4:
|
||||||
|
23
configure
vendored
23
configure
vendored
@@ -2032,6 +2032,9 @@ ARCH_LIST="
|
|||||||
avr32_uc
|
avr32_uc
|
||||||
bfin
|
bfin
|
||||||
ia64
|
ia64
|
||||||
|
loongarch
|
||||||
|
loongarch32
|
||||||
|
loongarch64
|
||||||
m68k
|
m68k
|
||||||
mips
|
mips
|
||||||
mips64
|
mips64
|
||||||
@@ -4959,6 +4962,9 @@ case "$arch" in
|
|||||||
arm*|iPad*|iPhone*)
|
arm*|iPad*|iPhone*)
|
||||||
arch="arm"
|
arch="arm"
|
||||||
;;
|
;;
|
||||||
|
loongarch*)
|
||||||
|
arch="loongarch"
|
||||||
|
;;
|
||||||
mips*|IP*)
|
mips*|IP*)
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
*el)
|
*el)
|
||||||
@@ -5106,6 +5112,18 @@ elif enabled bfin; then
|
|||||||
|
|
||||||
cpuflags="-mcpu=$cpu"
|
cpuflags="-mcpu=$cpu"
|
||||||
|
|
||||||
|
elif enabled loongarch; then
|
||||||
|
|
||||||
|
enable local_aligned
|
||||||
|
enable simd_align_32
|
||||||
|
enable fast_64bit
|
||||||
|
enable fast_clz
|
||||||
|
enable fast_unaligned
|
||||||
|
case $cpu in
|
||||||
|
la464)
|
||||||
|
cpuflags="-march=$cpu"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
elif enabled mips; then
|
elif enabled mips; then
|
||||||
|
|
||||||
if [ "$cpu" != "generic" ]; then
|
if [ "$cpu" != "generic" ]; then
|
||||||
@@ -5362,6 +5380,11 @@ case "$arch" in
|
|||||||
aarch64|alpha|ia64)
|
aarch64|alpha|ia64)
|
||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
;;
|
;;
|
||||||
|
loongarch)
|
||||||
|
check_64bit loongarch32 loongarch64
|
||||||
|
enabled loongarch64 && disable loongarch32
|
||||||
|
enabled shared && enable_weak pic
|
||||||
|
;;
|
||||||
mips)
|
mips)
|
||||||
check_64bit mips mips64 '_MIPS_SIM > 1'
|
check_64bit mips mips64 '_MIPS_SIM > 1'
|
||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
|
Reference in New Issue
Block a user