[OE-core] [PATCH] ffmpeg: disable cpu autodetection
Andreas Oberritter
obi at opendreambox.org
Mon Jan 30 23:40:08 UTC 2017
On Mon, 30 Jan 2017 18:21:10 -0500
Denys Dmytriyenko <denis at denix.org> wrote:
> On Mon, Jan 30, 2017 at 10:59:50PM +0100, Andreas Oberritter wrote:
> > Just pass the correct -mcpu= configure switch (fallback to generic).
> >
> > Avoids warnings like:
> > | warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
>
> That is actually a valid warning - cortex-a15 is armv7ve, not armv7a...
Agreed. That's why I decided to fix it with this patch.
Regards,
Andreas
> > Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
> > ---
> > meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.2.bb | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.2.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.2.bb
> > index 66718c4..c376d82 100644
> > --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.2.bb
> > +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.2.bb
> > @@ -66,6 +66,12 @@ PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv"
> > # Check codecs that require --enable-nonfree
> > USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}"
> >
> > +def cpu(d):
> > + for arg in (d.getVar('TUNE_CCARGS') or '').split():
> > + if arg.startswith('-mcpu='):
> > + return arg[6:]
> > + return 'generic'
> > +
> > EXTRA_OECONF = " \
> > --disable-stripping \
> > --enable-pic \
> > @@ -90,6 +96,7 @@ EXTRA_OECONF = " \
> > --shlibdir=${libdir} \
> > --datadir=${datadir}/ffmpeg \
> > ${@bb.utils.contains('AVAILTUNES', 'mips32r2', '', '--disable-mipsdsp --disable-mipsdspr2', d)} \
> > + --cpu=${@cpu(d)} \
> > "
> >
> > EXTRA_OECONF_append_linux-gnux32 = " --disable-asm"
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list