[oe-commits] Richard Purdie : gst-ffmpeg: Add explict getVar expansion parameter

git at git.openembedded.org git at git.openembedded.org
Wed Jul 15 09:41:32 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: c287088fefab91a641fa5dd59b5dc7ad7b043803
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=c287088fefab91a641fa5dd59b5dc7ad7b043803

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Jul  8 18:00:54 2015 +0100

gst-ffmpeg: Add explict getVar expansion parameter

Bitbake is likely to require this parameter in future, add
the default value.

Patch generated with the command:

sed -e 's:\(getVar([^,()]*\)\s*):\1, False):g' -i `grep -ril getVar *`

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../recipes-multimedia/gstreamer-0.10/gst-ffmpeg_0.10.13.bb           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/gstreamer-0.10/gst-ffmpeg_0.10.13.bb b/meta-multimedia/recipes-multimedia/gstreamer-0.10/gst-ffmpeg_0.10.13.bb
index 7bd7ec3..8909f37 100644
--- a/meta-multimedia/recipes-multimedia/gstreamer-0.10/gst-ffmpeg_0.10.13.bb
+++ b/meta-multimedia/recipes-multimedia/gstreamer-0.10/gst-ffmpeg_0.10.13.bb
@@ -79,8 +79,8 @@ GSTREAMER_DEBUG ?= "--disable-debug"
 FFMPEG_EXTRA_CONFIGURE = "--with-ffmpeg-extra-configure"
 # pass --cpu for powerpc. get cpu name by stripping "ppc" or "ppc64"
 # from DEFAULTTUNE
-FFMPEG_CPU_powerpc = "--cpu=${@d.getVar('DEFAULTTUNE')[3:]}"
-FFMPEG_CPU_powerpc64 = "--cpu=${@d.getVar('DEFAULTTUNE')[5:]}"
+FFMPEG_CPU_powerpc = "--cpu=${@d.getVar('DEFAULTTUNE', False)[3:]}"
+FFMPEG_CPU_powerpc64 = "--cpu=${@d.getVar('DEFAULTTUNE', False)[5:]}"
 FFMPEG_EXTRA_CONFIGURE_COMMON_ARG = "--target-os=linux ${FFMPEG_CPU} \
   --cc='${CC}' --as='${CC}' --ld='${CC}' --nm='${NM}' --ar='${AR}' \
   --ranlib='${RANLIB}' \



More information about the Openembedded-commits mailing list