mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
After transiton to meson build for gstreamer series,
for gstreamer1.0-plugins-base, with below two commits
introduced:
238080ed89 gstreamer: Remove unused common files and patches
20614408dc gstreamer1.0-plugins-base: Transition to meson based builds
With below config in local.conf
MACHINE ??= "qemumips64"
require conf/multilib.conf
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
MULTILIBS ?= "multilib:lib32 multilib:libn32"
DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
there comes below failure:
$ bitbake lib32-gstreamer1.0-plugins-base
[snip]
mips-pokymllib32-linux-gcc -meb -mabi=32 -mhard-float -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/mybuild/tmp/work/mips-pokymllib32-linux/lib32-gstreamer1.0-plugins-base/1.16.1-r0/lib32-recipe-sysroot -Itests/check/7d01337@@orc_video@exe -Itests/check -I../gst-plugins-base-1.16.1/tests/check -I/mybuild/tmp/work/mips-pokymllib32-linux/lib32-gstreamer1.0-plugins-base/1.16.1-r0/lib32-recipe-sysroot/usr/include/orc-0.4 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wmissing-declarations -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -Wmissing-prototypes -Wdeclaration-after-statement -O2 -g -feliminate-unused-debug-types -fmacro-prefix-map=/mybuild/tmp/work/mips-pokymllib32-linux/lib32-gstreamer1.0-plugins-base/1.16.1-r0=/u
sr/src/debug/lib32-gstreamer1.0-plugins-base/1.16.1-r0 -fdebug-prefix-map=/mybuild/tmp/work/mips-pokymllib32-linux/lib32-gstreamer1.0-plugins-base/1.16.1-r0=/usr/src/debug/lib32-gstreamer1.0-plugins-base/1.16.1-r0 -fdebug-prefix-map=/mybuild/tmp/work/mips-pokymllib32-linux/lib32-gstreamer1.0-plugins-base/1.16.1-r0/lib32-recipe-sysroot= -fdebug-prefix-map=/mybuild/tmp/work/mips-pokymllib32-linux/lib32-gstreamer1.0-plugins-base/1.16.1-r0/recipe-sysroot-native= -MD -MQ 'tests/check/7d01337@@orc_video@exe/meson-generated_.._orc_video.c.o' -MF 'tests/check/7d01337@@orc_video@exe/meson-generated_.._orc_video.c.o.d' -o 'tests/check/7d01337@@orc_video@exe/meson-generated_.._orc_video.c.o' -c tests/check/orc_video.c
FAILED: tests/check/7d01337@@orc_video@exe/meson-generated_.._orc_video.c.o
{standard input}: Assembler messages:
{standard input}:46587: Error: branch out of range
{standard input}:46613: Error: branch out of range
[snip]
BTW, gstreamer1.0-plugins-good also occurs
the same build failure as above.
Disable orc as workaround to fix the above issue
(From OE-Core rev: 2b65c49bcaa863d87de6cd8728878768ddeed1b8)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
51 lines
1.9 KiB
PHP
51 lines
1.9 KiB
PHP
# This .inc file contains the common setup for the gstreamer1.0-plugins-*
|
|
# plugin set recipes.
|
|
|
|
# SUMMARY is set in the actual .bb recipes
|
|
HOMEPAGE = "https://gstreamer.freedesktop.org/"
|
|
BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
|
|
SECTION = "multimedia"
|
|
|
|
DEPENDS = "gstreamer1.0 glib-2.0-native"
|
|
|
|
inherit gettext meson pkgconfig upstream-version-is-even
|
|
|
|
require gstreamer1.0-plugins-packaging.inc
|
|
|
|
# Orc enables runtime JIT compilation of data processing routines from Orc
|
|
# bytecode to SIMD instructions for various architectures (currently SSE, MMX,
|
|
# MIPS, Altivec and NEON are supported).
|
|
# This value is used in the PACKAGECONFIG values for each plugin set recipe.
|
|
# By modifying it, Orc can be enabled/disabled in all of these recipes at once.
|
|
GSTREAMER_ORC ?= "orc"
|
|
# workaround to disable orc on mips to fix the build failure
|
|
# {standard input}: Assembler messages:
|
|
# {standard input}:46587: Error: branch out of range
|
|
GSTREAMER_ORC_mips = ""
|
|
PACKAGECONFIG[orc] = "-Dorc=enabled,-Dorc=disabled,orc orc-native"
|
|
|
|
# TODO: put this in a gettext.bbclass patch (with variables to allow for
|
|
# configuring the option name and the enabled/disabled values).
|
|
def gettext_oemeson(d):
|
|
if d.getVar('USE_NLS') == 'no':
|
|
return '-Dnls=disabled'
|
|
# Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
|
|
if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
|
|
return '-Dnls=disabled'
|
|
return '-Dnls=enabled'
|
|
|
|
# Not all plugin sets contain examples, so the -Dexamples
|
|
# option needs to be added conditionally.
|
|
GST_PLUGIN_SET_HAS_EXAMPLES ?= "1"
|
|
|
|
EXTRA_OEMESON += " \
|
|
${@bb.utils.contains('GST_PLUGIN_SET_HAS_EXAMPLES', '1', '-Dexamples=disabled', '', d)} \
|
|
${@gettext_oemeson(d)} \
|
|
"
|
|
|
|
GIR_MESON_ENABLE_FLAG = "enabled"
|
|
GIR_MESON_DISABLE_FLAG = "disabled"
|
|
|
|
# Dynamically generate packages for all enabled plugins
|
|
PACKAGES_DYNAMIC = "^${PN}-.*"
|