From 5e0cdc8eacea397b8413af9990a4d955e93f1545 Mon Sep 17 00:00:00 2001 From: Leon Woestenberg Date: Sat, 28 Mar 2009 16:32:07 +0100 Subject: x264: now uses upstream revision number. added --extra-cflags for beagleboard. Allows for easier optimizing the build using ECFLAGS. Tested-by: Leon Woestenberg Tested-by: Stanislav Popov --- recipes/vlc/x264_r2245.bb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 recipes/vlc/x264_r2245.bb (limited to 'recipes/vlc') diff --git a/recipes/vlc/x264_r2245.bb b/recipes/vlc/x264_r2245.bb new file mode 100644 index 0000000000..f7d43eaba5 --- /dev/null +++ b/recipes/vlc/x264_r2245.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "H.264 encoder" +LICENSE = "GPL" +PR = "r1" + +X264PV = "snapshot-20090127-2245" + +SRC_URI = "http://download.videolan.org/pub/videolan/x264/snapshots/x264-${X264PV}.tar.bz2" + +S = "${WORKDIR}/${PN}-${X264PV}" + +inherit autotools lib_package + +# default --extra-cflags +X264_ECFLAGS = "" + +# optimizing --extra-cflags for beagleboard +X264_ECFLAGS_beagleboard = " \ + -s -save-temps -static -Wall -O3 -march=armv7-a \ + -mtune=cortex-a8 -mcpu=cortex-a8 -mfloat-abi=softfp \ + -mfpu=neon -ftree-vectorize -fomit-frame-pointer -ffast-math \ +" + +# disable use of assembler written functions +X264_DISABLE_ASM = "--disable-asm" +# use assembler written functions for those archs supporting this +#X264_DISABLE_ASM_x86 = "" + +EXTRA_OECONF = "--enable-shared ${X264_DISABLE_ASM} --extra-cflags="${X264_ECFLAGS}"" + +do_stage() { + autotools_stage_all +} + +do_configure() { + ${S}/configure ${EXTRA_OECONF} +} + -- cgit v1.2.3 From 308bbb0a550a70439701834dae44447f24383fa7 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 28 Mar 2009 18:40:37 +0100 Subject: x264: fix a few bugs * quoting EXTRA_OECONF = "something"$FOO"" is wrong * passing --enable-shared and then doing CFLAGS += -static is wrong as well * the beagleboard 'optimizations' were duplicating flags already there, and worse passed in O3 when O4 was the default * adding machine optimizations without changing package arch is wrong as well --- recipes/vlc/x264_r2245.bb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'recipes/vlc') diff --git a/recipes/vlc/x264_r2245.bb b/recipes/vlc/x264_r2245.bb index f7d43eaba5..e16e96b8b6 100644 --- a/recipes/vlc/x264_r2245.bb +++ b/recipes/vlc/x264_r2245.bb @@ -1,6 +1,6 @@ DESCRIPTION = "H.264 encoder" LICENSE = "GPL" -PR = "r1" +PR = "r2" X264PV = "snapshot-20090127-2245" @@ -13,19 +13,12 @@ inherit autotools lib_package # default --extra-cflags X264_ECFLAGS = "" -# optimizing --extra-cflags for beagleboard -X264_ECFLAGS_beagleboard = " \ - -s -save-temps -static -Wall -O3 -march=armv7-a \ - -mtune=cortex-a8 -mcpu=cortex-a8 -mfloat-abi=softfp \ - -mfpu=neon -ftree-vectorize -fomit-frame-pointer -ffast-math \ -" - # disable use of assembler written functions X264_DISABLE_ASM = "--disable-asm" # use assembler written functions for those archs supporting this #X264_DISABLE_ASM_x86 = "" -EXTRA_OECONF = "--enable-shared ${X264_DISABLE_ASM} --extra-cflags="${X264_ECFLAGS}"" +EXTRA_OECONF = '--enable-shared ${X264_DISABLE_ASM} --extra-cflags="${X264_ECFLAGS}"' do_stage() { autotools_stage_all -- cgit v1.2.3 From 0ee45495fb0e27961b5d5cdb5dd192b314908833 Mon Sep 17 00:00:00 2001 From: Leon Woestenberg Date: Sun, 29 Mar 2009 00:06:23 +0100 Subject: x264: Enable using yasm-native for x86 machine. Results in using optimized assembler functions instead of their C equivalent. The x264 encoder has many x86/SSE optimizations, this will increase its performance much. --- recipes/vlc/x264_r2245.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'recipes/vlc') diff --git a/recipes/vlc/x264_r2245.bb b/recipes/vlc/x264_r2245.bb index e16e96b8b6..a662b56240 100644 --- a/recipes/vlc/x264_r2245.bb +++ b/recipes/vlc/x264_r2245.bb @@ -16,7 +16,8 @@ X264_ECFLAGS = "" # disable use of assembler written functions X264_DISABLE_ASM = "--disable-asm" # use assembler written functions for those archs supporting this -#X264_DISABLE_ASM_x86 = "" +X264_DISABLE_ASM_x86 = "" +DEPENDS_x86 = "yasm-native" EXTRA_OECONF = '--enable-shared ${X264_DISABLE_ASM} --extra-cflags="${X264_ECFLAGS}"' -- cgit v1.2.3