Thanks Khem, good that it can be done without patches. Alex
On Tue, 11 May 2021 at 03:11, Khem Raj <[email protected]> wrote: > 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 > > Signed-off-by: Khem Raj <[email protected]> > Cc: Alexander Kanavin <[email protected]> > --- > meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb | 22 +++++++++++++------- > 1 file 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 = " \ > \ > --cross-prefix=${TARGET_PREFIX} \ > \ > - --ld="${CCLD}" \ > - --cc="${CC}" \ > - --cxx="${CXX}" \ > + --ld='${CCLD}' \ > + --cc='${CC}' \ > + --cxx='${CXX}' \ > --arch=${TARGET_ARCH} \ > - --target-os="linux" \ > + --target-os='linux' \ > --enable-cross-compile \ > - --extra-cflags="${CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \ > - --extra-ldflags="${LDFLAGS}" \ > - --sysroot="${STAGING_DIR_TARGET}" \ > + --extra-cflags='${CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}' \ > + --extra-ldflags='${LDFLAGS}' \ > + --sysroot='${STAGING_DIR_TARGET}' \ > ${EXTRA_FFCONF} \ > --libdir=${libdir} \ > --shlibdir=${libdir} \ > @@ -121,6 +121,14 @@ EXTRA_OECONF = " \ > " > > EXTRA_OECONF_append_linux-gnux32 = " --disable-asm" > + > +EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', > '--disable-mips64r2 --disable-mips32r2', '', d)}" > +EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r2', > '--disable-mips64r6 --disable-mips32r6', '', d)}" > +EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r2', > '--disable-mips64r6 --disable-mips32r6', '', d)}" > +EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r6', > '--disable-mips64r2 --disable-mips32r2', '', d)}" > +EXTRA_OECONF_append_mips = " --extra-libs=-latomic --disable-mips32r5 > --disable-mipsdsp --disable-mipsdspr2 \ > + --disable-loongson2 --disable-loongson3 > --disable-mmi --disable-msa --disable-msa2" > + > # gold crashes on x86, another solution is to --disable-asm but thats > more hacky > # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684 > > -- > 2.31.1 > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#151591): https://lists.openembedded.org/g/openembedded-core/message/151591 Mute This Topic: https://lists.openembedded.org/mt/82736264/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
