[oe] [PATCH 2/3] ffmpeg: pass --sysroot to configure script directly

Tom Rini tom_rini at mentor.com
Fri Feb 25 01:22:12 UTC 2011


On 02/24/2011 04:39 PM, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko<denys at ti.com>
>
> 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} \
>   "


-- 
Tom Rini
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list