diff options
| author | Suji Velupillai <suji.velupillai@broadcom.com> | 2021-02-12 11:25:20 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-13 17:01:13 +0000 |
| commit | b6e67e3d287407c6f022bbe672d9d206d90a12a4 (patch) | |
| tree | 4091c14a1f6ba11d43cc76097842f133502f1559 /meta | |
| parent | fcdd03a1e7319665c7f76c1b8659a8a9fb4d879b (diff) | |
| download | poky-b6e67e3d287407c6f022bbe672d9d206d90a12a4.tar.gz | |
ffmpeg: move ffmpeg config into packageconfig
Move ffmpeg configuration options to Yocto PACKAGECONFIG options.
(From OE-Core rev: 30b68fa0386fa525df92ebce4d63e501598e65fe)
Signed-off-by: Suji Velupillai <suji.velupillai@broadcom.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb index ded8232713..bd21552332 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb | |||
| @@ -46,7 +46,8 @@ DEPENDS = "nasm-native" | |||
| 46 | inherit autotools pkgconfig | 46 | inherit autotools pkgconfig |
| 47 | 47 | ||
| 48 | PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc avresample \ | 48 | PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc avresample \ |
| 49 | alsa bzlib gpl lzma theora x264 zlib \ | 49 | alsa bzlib gpl lzma pic pthreads shared theora x264 zlib \ |
| 50 | ${@bb.utils.contains('AVAILTUNES', 'mips32r2', 'mips32r2', '', d)} \ | ||
| 50 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}" | 51 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}" |
| 51 | 52 | ||
| 52 | # libraries to build in addition to avutil | 53 | # libraries to build in addition to avutil |
| @@ -85,6 +86,13 @@ PACKAGECONFIG[xcb] = "--enable-libxcb,--disable-libxcb,libxcb" | |||
| 85 | PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv" | 86 | PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv" |
| 86 | PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" | 87 | PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" |
| 87 | 88 | ||
| 89 | # other configuration options | ||
| 90 | PACKAGECONFIG[mips32r2] = ",--disable-mipsdsp --disable-mipsdspr2" | ||
| 91 | PACKAGECONFIG[pic] = "--enable-pic" | ||
| 92 | PACKAGECONFIG[pthreads] = "--enable-pthreads,--disable-pthreads" | ||
| 93 | PACKAGECONFIG[shared] = "--enable-shared" | ||
| 94 | PACKAGECONFIG[strip] = ",--disable-stripping" | ||
| 95 | |||
| 88 | # Check codecs that require --enable-nonfree | 96 | # Check codecs that require --enable-nonfree |
| 89 | USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}" | 97 | USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}" |
| 90 | 98 | ||
| @@ -95,10 +103,6 @@ def cpu(d): | |||
| 95 | return 'generic' | 103 | return 'generic' |
| 96 | 104 | ||
| 97 | EXTRA_OECONF = " \ | 105 | EXTRA_OECONF = " \ |
| 98 | --disable-stripping \ | ||
| 99 | --enable-pic \ | ||
| 100 | --enable-shared \ | ||
| 101 | --enable-pthreads \ | ||
| 102 | ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \ | 106 | ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \ |
| 103 | \ | 107 | \ |
| 104 | --cross-prefix=${TARGET_PREFIX} \ | 108 | --cross-prefix=${TARGET_PREFIX} \ |
| @@ -116,7 +120,6 @@ EXTRA_OECONF = " \ | |||
| 116 | --libdir=${libdir} \ | 120 | --libdir=${libdir} \ |
| 117 | --shlibdir=${libdir} \ | 121 | --shlibdir=${libdir} \ |
| 118 | --datadir=${datadir}/ffmpeg \ | 122 | --datadir=${datadir}/ffmpeg \ |
| 119 | ${@bb.utils.contains('AVAILTUNES', 'mips32r2', '', '--disable-mipsdsp --disable-mipsdspr2', d)} \ | ||
| 120 | --cpu=${@cpu(d)} \ | 123 | --cpu=${@cpu(d)} \ |
| 121 | --pkg-config=pkg-config \ | 124 | --pkg-config=pkg-config \ |
| 122 | " | 125 | " |
