Message ID | 20211201035221.18817-2-yinshiyou-hf@loongson.cn |
---|---|
State | Accepted |
Commit | 07f8f78a5fb8b6a28f7b9d79fae6e411a17114ee |
Headers | show |
Series | [FFmpeg-devel,v2,1/3] configure: Add support for loongarch. | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
LGTM "yinshiyou-hf@loongson.cn" <yinshiyou-hf@loongson.cn>写道: > 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 > --- > Changelog | 1 + > configure | 23 +++++++++++++++++++++++ > 2 files changed, 24 insertions(+) > > diff --git a/Changelog b/Changelog > index 56faa7f9f5..648079ab64 100644 > --- a/Changelog > +++ b/Changelog > @@ -35,6 +35,7 @@ version <next>: > - bitpacked encoder > - VideoToolbox VP9 hwaccel > - VideoToolbox ProRes hwaccel > +- support loongarch. > > > version 4.4: > diff --git a/configure b/configure > index d8b5be8bbb..aa94c39419 100755 > --- a/configure > +++ b/configure > @@ -2032,6 +2032,9 @@ ARCH_LIST=" > avr32_uc > bfin > ia64 > + loongarch > + loongarch32 > + loongarch64 > m68k > mips > mips64 > @@ -4959,6 +4962,9 @@ case "$arch" in > arm*|iPad*|iPhone*) > arch="arm" > ;; > + loongarch*) > + arch="loongarch" > + ;; > mips*|IP*) > case "$arch" in > *el) > @@ -5106,6 +5112,18 @@ elif enabled bfin; then > > 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 > > if [ "$cpu" != "generic" ]; then > @@ -5362,6 +5380,11 @@ case "$arch" in > aarch64|alpha|ia64) > enabled shared && enable_weak pic > ;; > + loongarch) > + check_64bit loongarch32 loongarch64 > + enabled loongarch64 && disable loongarch32 > + enabled shared && enable_weak pic > + ;; > mips) > check_64bit mips mips64 '_MIPS_SIM > 1' > enabled shared && enable_weak pic > -- > 2.20.1 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". 本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。 This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it.
diff --git a/Changelog b/Changelog index 56faa7f9f5..648079ab64 100644 --- a/Changelog +++ b/Changelog @@ -35,6 +35,7 @@ version <next>: - bitpacked encoder - VideoToolbox VP9 hwaccel - VideoToolbox ProRes hwaccel +- support loongarch. version 4.4: diff --git a/configure b/configure index d8b5be8bbb..aa94c39419 100755 --- a/configure +++ b/configure @@ -2032,6 +2032,9 @@ ARCH_LIST=" avr32_uc bfin ia64 + loongarch + loongarch32 + loongarch64 m68k mips mips64 @@ -4959,6 +4962,9 @@ case "$arch" in arm*|iPad*|iPhone*) arch="arm" ;; + loongarch*) + arch="loongarch" + ;; mips*|IP*) case "$arch" in *el) @@ -5106,6 +5112,18 @@ elif enabled bfin; then 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 if [ "$cpu" != "generic" ]; then @@ -5362,6 +5380,11 @@ case "$arch" in aarch64|alpha|ia64) enabled shared && enable_weak pic ;; + loongarch) + check_64bit loongarch32 loongarch64 + enabled loongarch64 && disable loongarch32 + enabled shared && enable_weak pic + ;; mips) check_64bit mips mips64 '_MIPS_SIM > 1' enabled shared && enable_weak pic