[oe-commits] Leon Woestenberg : x264: now uses upstream revision number. added --extra-cflags for beagleboard.

GIT User account git at amethyst.openembedded.net
Sat Mar 28 15:37:05 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5e0cdc8eacea397b8413af9990a4d955e93f1545
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5e0cdc8eacea397b8413af9990a4d955e93f1545

Author: Leon Woestenberg <leon at witty.(none)>
Date:   Sat Mar 28 16:32:07 2009 +0100

x264: now uses upstream revision number. added --extra-cflags for beagleboard.

Allows for easier optimizing the build using ECFLAGS.

Tested-by: Leon Woestenberg <leon at sidebranch.com>
Tested-by: Stanislav Popov <s.popov at rsc.bg>

---

 recipes/vlc/x264_r2245.bb |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/recipes/vlc/x264_r2245.bb b/recipes/vlc/x264_r2245.bb
new file mode 100644
index 0000000..f7d43ea
--- /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}
+}
+





More information about the Openembedded-commits mailing list