[oe-commits] Denys Dmytriyenko : ffmpeg: pass --sysroot to configure script directly

git version control git at git.openembedded.org
Fri Feb 25 02:06:28 UTC 2011


Module: openembedded.git
Branch: master
Commit: 93bb226b98706b22c952a1a49981d5066abbf3c1
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=93bb226b98706b22c952a1a49981d5066abbf3c1

Author: Denys Dmytriyenko <denys at ti.com>
Date:   Fri Feb 25 07:39:17 2011 +0000

ffmpeg: pass --sysroot to configure script directly

ffmpeg's custom configure script fails some checks for specific headers, even
though we pass --sysroot through CFLAGS. Use configure's specific --sysroot
option to fix that.

Signed-off-by: Denys Dmytriyenko <denys at ti.com>
Acked-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/ffmpeg/ffmpeg_0.5.bb   |    3 ++-
 recipes/ffmpeg/ffmpeg_0.6.1.bb |    3 ++-
 recipes/ffmpeg/ffmpeg_git.bb   |    3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/recipes/ffmpeg/ffmpeg_0.5.bb b/recipes/ffmpeg/ffmpeg_0.5.bb
index f3a6d21..623c369 100644
--- a/recipes/ffmpeg/ffmpeg_0.5.bb
+++ b/recipes/ffmpeg/ffmpeg_0.5.bb
@@ -2,7 +2,7 @@ require ffmpeg.inc
 
 DEPENDS += "schroedinger libgsm"
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 DEFAULT_PREFERENCE = "1"
 
@@ -47,6 +47,7 @@ EXTRA_OECONF = " \
         --enable-cross-compile \
         --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
         --extra-ldflags="${TARGET_LDFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
+        --sysroot="${STAGING_DIR_TARGET}" \
         --enable-hardcoded-tables \
         ${EXTRA_FFCONF} \
 "
diff --git a/recipes/ffmpeg/ffmpeg_0.6.1.bb b/recipes/ffmpeg/ffmpeg_0.6.1.bb
index fb941a5..74a1161 100644
--- a/recipes/ffmpeg/ffmpeg_0.6.1.bb
+++ b/recipes/ffmpeg/ffmpeg_0.6.1.bb
@@ -2,7 +2,7 @@ require ffmpeg.inc
 
 LICENSE = "LGPLv2.1+"
 DEPENDS += "schroedinger libgsm"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI = "http://ffmpeg.org/releases/ffmpeg-${PV}.tar.bz2"
 SRC_URI[md5sum] = "4f5d732d25eedfb072251b5314ba2093"
@@ -26,6 +26,7 @@ EXTRA_OECONF = " \
         --enable-swscale \
         --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
         --extra-ldflags="${TARGET_LDFLAGS}" \
+        --sysroot="${STAGING_DIR_TARGET}" \
         --prefix=${prefix}/ \
         --target-os=linux \
         ${EXTRA_FFCONF} \
diff --git a/recipes/ffmpeg/ffmpeg_git.bb b/recipes/ffmpeg/ffmpeg_git.bb
index 27e88ea..24c81ea 100644
--- a/recipes/ffmpeg/ffmpeg_git.bb
+++ b/recipes/ffmpeg/ffmpeg_git.bb
@@ -6,7 +6,7 @@ DEPENDS += "virtual/libsdl schroedinger libgsm libvpx"
 SRCREV = "a4f5af13fb00d7f55946470bb0f52e1dbf5f3c6a"
 
 PV = "0.6.1+${PR}+gitr${SRCPV}"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_angstrom = "1"
@@ -47,6 +47,7 @@ EXTRA_OECONF = " \
         --enable-cross-compile \
         --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
         --extra-ldflags="${TARGET_LDFLAGS}" \
+        --sysroot="${STAGING_DIR_TARGET}" \
         --enable-hardcoded-tables \
         ${EXTRA_FFCONF} \
 "





More information about the Openembedded-commits mailing list