diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-05-10 18:11:01 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-12 23:06:05 +0100 |
commit | c553b55a48af077ce25480abcadac289c91051b5 (patch) | |
tree | 51d088ff63490f32f6f9dce97b2b4ace5ca804aa /meta/recipes-multimedia | |
parent | 2153aa26e38c905593f8da6615a4d7cdc8d708f9 (diff) | |
download | poky-c553b55a48af077ce25480abcadac289c91051b5.tar.gz |
ffmpeg: Fix build on mips
configure is not able to decode, right options to compiler, it needs to
be set according to default tune manually. Fixes build issue on mips
e.g.
{standard input}: Assembler messages:
| {standard input}:2162: Error: opcode not supported on this processor: mips32r2 (mips32r2) `dmult $22,$22'
| {standard input}:2164: Error: opcode not supported on this processor: mips32r2 (mips32r2) `dsrl $5,$5,32'
| make: *** [/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux/ffmpeg/4.4-r0/ffmpeg-4.4/ffbuild/common.mak:67: libavcodec/aptxenc.o] Error 1
(From OE-Core rev: b254db634fc888ae75e843c8a9108e71ffff3f77)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb index 19a8e58370..384e07362a 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb | |||
@@ -103,15 +103,15 @@ EXTRA_OECONF = " \ | |||
103 | \ | 103 | \ |
104 | --cross-prefix=${TARGET_PREFIX} \ | 104 | --cross-prefix=${TARGET_PREFIX} \ |
105 | \ | 105 | \ |
106 | --ld="${CCLD}" \ | 106 | --ld='${CCLD}' \ |
107 | --cc="${CC}" \ | 107 | --cc='${CC}' \ |
108 | --cxx="${CXX}" \ | 108 | --cxx='${CXX}' \ |
109 | --arch=${TARGET_ARCH} \ | 109 | --arch=${TARGET_ARCH} \ |
110 | --target-os="linux" \ | 110 | --target-os='linux' \ |
111 | --enable-cross-compile \ | 111 | --enable-cross-compile \ |
112 | --extra-cflags="${CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \ | 112 | --extra-cflags='${CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}' \ |
113 | --extra-ldflags="${LDFLAGS}" \ | 113 | --extra-ldflags='${LDFLAGS}' \ |
114 | --sysroot="${STAGING_DIR_TARGET}" \ | 114 | --sysroot='${STAGING_DIR_TARGET}' \ |
115 | ${EXTRA_FFCONF} \ | 115 | ${EXTRA_FFCONF} \ |
116 | --libdir=${libdir} \ | 116 | --libdir=${libdir} \ |
117 | --shlibdir=${libdir} \ | 117 | --shlibdir=${libdir} \ |
@@ -121,6 +121,14 @@ EXTRA_OECONF = " \ | |||
121 | " | 121 | " |
122 | 122 | ||
123 | EXTRA_OECONF_append_linux-gnux32 = " --disable-asm" | 123 | EXTRA_OECONF_append_linux-gnux32 = " --disable-asm" |
124 | |||
125 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', '--disable-mips64r2 --disable-mips32r2', '', d)}" | ||
126 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r2', '--disable-mips64r6 --disable-mips32r6', '', d)}" | ||
127 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r2', '--disable-mips64r6 --disable-mips32r6', '', d)}" | ||
128 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r6', '--disable-mips64r2 --disable-mips32r2', '', d)}" | ||
129 | EXTRA_OECONF_append_mips = " --extra-libs=-latomic --disable-mips32r5 --disable-mipsdsp --disable-mipsdspr2 \ | ||
130 | --disable-loongson2 --disable-loongson3 --disable-mmi --disable-msa --disable-msa2" | ||
131 | |||
124 | # gold crashes on x86, another solution is to --disable-asm but thats more hacky | 132 | # gold crashes on x86, another solution is to --disable-asm but thats more hacky |
125 | # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684 | 133 | # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684 |
126 | 134 | ||