summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuji Velupillai <suji.velupillai@broadcom.com>2021-02-12 11:25:20 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-13 17:01:13 +0000
commitb6e67e3d287407c6f022bbe672d9d206d90a12a4 (patch)
tree4091c14a1f6ba11d43cc76097842f133502f1559
parentfcdd03a1e7319665c7f76c1b8659a8a9fb4d879b (diff)
downloadpoky-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>
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb15
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"
46inherit autotools pkgconfig 46inherit autotools pkgconfig
47 47
48PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc avresample \ 48PACKAGECONFIG ??= "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"
85PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv" 86PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv"
86PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" 87PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
87 88
89# other configuration options
90PACKAGECONFIG[mips32r2] = ",--disable-mipsdsp --disable-mipsdspr2"
91PACKAGECONFIG[pic] = "--enable-pic"
92PACKAGECONFIG[pthreads] = "--enable-pthreads,--disable-pthreads"
93PACKAGECONFIG[shared] = "--enable-shared"
94PACKAGECONFIG[strip] = ",--disable-stripping"
95
88# Check codecs that require --enable-nonfree 96# Check codecs that require --enable-nonfree
89USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}" 97USE_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
97EXTRA_OECONF = " \ 105EXTRA_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"