diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-multimedia/x264 | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-multimedia/x264')
-rw-r--r-- | meta/recipes-multimedia/x264/x264/don-t-default-to-cortex-a9-with-neon.patch | 20 | ||||
-rw-r--r-- | meta/recipes-multimedia/x264/x264_git.bb | 55 |
2 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/x264/x264/don-t-default-to-cortex-a9-with-neon.patch b/meta/recipes-multimedia/x264/x264/don-t-default-to-cortex-a9-with-neon.patch new file mode 100644 index 0000000000..b844d88fe8 --- /dev/null +++ b/meta/recipes-multimedia/x264/x264/don-t-default-to-cortex-a9-with-neon.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | -march flag is not in CFLAGS so this will always default to -mcpu=cortex-a8 | ||
2 | -mfpu=neon. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
6 | |||
7 | Index: git/configure | ||
8 | =================================================================== | ||
9 | --- git.orig/configure 2013-02-10 16:26:40.666343682 +0200 | ||
10 | +++ git/configure 2013-02-10 16:27:49.198341677 +0200 | ||
11 | @@ -703,9 +703,6 @@ | ||
12 | fi | ||
13 | |||
14 | if [ $asm = auto -a $ARCH = ARM ] ; then | ||
15 | - # set flags so neon is built by default | ||
16 | - echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon" | ||
17 | - | ||
18 | if cc_check '' '' '__asm__("rev ip, ip");' ; then define HAVE_ARMV6 | ||
19 | cc_check '' '' '__asm__("movt r0, #0");' && define HAVE_ARMV6T2 | ||
20 | cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON | ||
diff --git a/meta/recipes-multimedia/x264/x264_git.bb b/meta/recipes-multimedia/x264/x264_git.bb new file mode 100644 index 0000000000..0e856b3ba1 --- /dev/null +++ b/meta/recipes-multimedia/x264/x264_git.bb | |||
@@ -0,0 +1,55 @@ | |||
1 | SUMMARY = "H.264/MPEG-4 AVC video encoder" | ||
2 | DESCRIPTION = "A free software library and application for encoding video streams into the H.264/MPEG-4 AVC format." | ||
3 | HOMEPAGE = "http://www.videolan.org/developers/x264.html" | ||
4 | |||
5 | LICENSE = "GPLv2" | ||
6 | LICENSE_FLAGS = "commercial" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
8 | |||
9 | DEPENDS = "yasm-native" | ||
10 | |||
11 | SRC_URI = "git://git.videolan.org/x264.git \ | ||
12 | file://don-t-default-to-cortex-a9-with-neon.patch \ | ||
13 | " | ||
14 | |||
15 | SRCREV = "ffc3ad4945da69f3caa2b40e4eed715a9a8d9526" | ||
16 | |||
17 | PV = "r2265+git${SRCPV}" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | inherit lib_package pkgconfig perlnative | ||
22 | |||
23 | X264_DISABLE_ASM = "" | ||
24 | X264_DISABLE_ASM_armv4 = "--disable-asm" | ||
25 | X264_DISABLE_ASM_armv5 = "--disable-asm" | ||
26 | X264_DISABLE_ASM_powerpc = "${@bb.utils.contains("TUNE_FEATURES", "spe", "--disable-asm", "", d)}" | ||
27 | |||
28 | EXTRA_OECONF = '--prefix=${prefix} \ | ||
29 | --host=${HOST_SYS} \ | ||
30 | --libdir=${libdir} \ | ||
31 | --cross-prefix=${TARGET_PREFIX} \ | ||
32 | --sysroot=${STAGING_DIR_TARGET} \ | ||
33 | --enable-shared \ | ||
34 | --enable-static \ | ||
35 | --disable-lavf \ | ||
36 | --disable-swscale \ | ||
37 | --enable-pic \ | ||
38 | ${X264_DISABLE_ASM} \ | ||
39 | ' | ||
40 | |||
41 | do_configure() { | ||
42 | ./configure ${EXTRA_OECONF} | ||
43 | } | ||
44 | |||
45 | # Get rid of -e | ||
46 | EXTRA_OEMAKE = "" | ||
47 | AS = "${TARGET_PREFIX}gcc" | ||
48 | |||
49 | do_install() { | ||
50 | oe_runmake install DESTDIR=${D} | ||
51 | } | ||
52 | |||
53 | # PIC can't be enabled for 32-bit x86 | ||
54 | INSANE_SKIP_${PN}_append_i586 = " textrel" | ||
55 | |||