summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2024-05-16 13:26:39 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-28 09:38:23 +0100
commitedce7b6ee5786b90da0cb17b9777afe5bab064b1 (patch)
tree6de2d3db9e1563397af27530d51389458335c7cf /meta
parentc0c78a4cd12e81ed598f4992adbd3b543d9a3138 (diff)
downloadpoky-edce7b6ee5786b90da0cb17b9777afe5bab064b1.tar.gz
x264: update to latest revision on official git
The mirror was out of date; meanwhile x264 remains in active development. Drop unsuitable x32 patch and declare x264 incompatible with the target (by every sign it's an extinct target; if not so please work with upstream to develop a solution there). Replace don-t-default-to-cortex-a9-with-neon.patch with a configure option passing in target compiler options so that configure can make correct decisions and we don't have to patch it. (From OE-Core rev: 1018619f1b18f8045ae84d65d16becf3fe21ffe0) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-multimedia/x264/x264/Fix-X32-build-by-disabling-asm.patch51
-rw-r--r--meta/recipes-multimedia/x264/x264/don-t-default-to-cortex-a9-with-neon.patch33
-rw-r--r--meta/recipes-multimedia/x264/x264_git.bb9
3 files changed, 5 insertions, 88 deletions
diff --git a/meta/recipes-multimedia/x264/x264/Fix-X32-build-by-disabling-asm.patch b/meta/recipes-multimedia/x264/x264/Fix-X32-build-by-disabling-asm.patch
deleted file mode 100644
index cb771fb0bf..0000000000
--- a/meta/recipes-multimedia/x264/x264/Fix-X32-build-by-disabling-asm.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 7bc25f4d1aaa5186d2eff3e2326c7245fcd7e7f3 Mon Sep 17 00:00:00 2001
2From: Christopher Larson <chris_larson@mentor.com>
3Date: Tue, 13 Dec 2016 14:22:32 -0700
4Subject: [PATCH] Fix X32 build by disabling asm
5
6This applies gentoo's x32 patch, adjusted slightly, which disables asm support
7for x32 as well as correcting -m.
8
9Debian has a different patch which does the same, and there's a superior yet
10out of date patch series on the x264 list which keeps asm support enabled, but
11doesn't successfully build at this time, and my assembly is very rusty.
12
13Upstream-Status: Pending
14Signed-off-by: Christopher Larson <chris_larson@mentor.com>
15
16---
17 configure | 14 ++++++++++++--
18 1 file changed, 12 insertions(+), 2 deletions(-)
19
20diff --git a/configure b/configure
21index 51b128d..6ea9469 100755
22--- a/configure
23+++ b/configure
24@@ -754,7 +754,13 @@ case $host_cpu in
25 AS_EXT=".asm"
26 ASFLAGS="$ASFLAGS -DARCH_X86_64=1 -I\$(SRCPATH)/common/x86/"
27 stack_alignment=16
28- [ $compiler = GNU ] && CFLAGS="-m64 $CFLAGS" && LDFLAGS="-m64 $LDFLAGS"
29+ if [ $compiler = GNU ]; then
30+ if cpp_check "" "" "__ILP32__" ; then
31+ CFLAGS="-mx32 $CFLAGS" && LDFLAGS="-mx32 $LDFLAGS"
32+ else
33+ CFLAGS="-m64 $CFLAGS" && LDFLAGS="-m64 $LDFLAGS"
34+ fi
35+ fi
36 if [ "$SYS" = MACOSX ]; then
37 ASFLAGS="$ASFLAGS -f macho64 -DPREFIX"
38 if cc_check '' "-arch x86_64"; then
39@@ -773,7 +779,11 @@ case $host_cpu in
40 RCFLAGS="--target=pe-x86-64 $RCFLAGS"
41 fi
42 else
43- ASFLAGS="$ASFLAGS -f elf64"
44+ if cpp_check "" "" "__ILP32__" ; then
45+ asm=no
46+ else
47+ ASFLAGS="$ASFLAGS -f elf64"
48+ fi
49 fi
50 ;;
51 powerpc*)
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
deleted file mode 100644
index 065e3b35b7..0000000000
--- a/meta/recipes-multimedia/x264/x264/don-t-default-to-cortex-a9-with-neon.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From a72bf499a0674fc75eedf15008b424e28f67e4bd Mon Sep 17 00:00:00 2001
2From: Andrei Gherzan <andrei@gherzan.ro>
3Date: Fri, 2 Feb 2018 15:10:08 +0200
4Subject: [PATCH] dont default to cortex-a9 with neon
5
6-march flag is not in CFLAGS so this will always default to
7 -mcpu=cortex-a8 -mfpu=neon.
8
9Upstream-Status: Pending
10
11Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
12Signed-off-by: Maxin B. John <maxin.john@intel.com>
13---
14 configure | 3 ---
15 1 file changed, 3 deletions(-)
16
17diff --git a/configure b/configure
18index 0e3ef23..955b993 100755
19--- a/configure
20+++ b/configure
21@@ -911,9 +911,6 @@ if [ $asm = auto -a \( $ARCH = X86 -o $ARCH = X86_64 \) ] ; then
22 fi
23
24 if [ $asm = auto -a $ARCH = ARM ] ; then
25- # set flags so neon is built by default
26- [ $compiler == CL ] || echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon"
27-
28 cc_check '' '' '__asm__("add r0, r1, r2");' && define HAVE_ARM_INLINE_ASM
29 if [ $compiler = CL ] && cpp_check '' '' 'defined(_M_ARM) && _M_ARM >= 7' ; then
30 define HAVE_ARMV6
31--
322.4.0
33
diff --git a/meta/recipes-multimedia/x264/x264_git.bb b/meta/recipes-multimedia/x264/x264_git.bb
index e7d9e75e8d..fae88d24d1 100644
--- a/meta/recipes-multimedia/x264/x264_git.bb
+++ b/meta/recipes-multimedia/x264/x264_git.bb
@@ -8,13 +8,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
8 8
9DEPENDS = "nasm-native" 9DEPENDS = "nasm-native"
10 10
11SRC_URI = "git://github.com/mirror/x264;branch=stable;protocol=https \ 11SRC_URI = "git://code.videolan.org/videolan/x264.git;branch=stable;protocol=https \
12 file://don-t-default-to-cortex-a9-with-neon.patch \
13 file://Fix-X32-build-by-disabling-asm.patch \
14 " 12 "
15UPSTREAM_CHECK_COMMITS = "1" 13UPSTREAM_CHECK_COMMITS = "1"
16 14
17SRCREV = "baee400fa9ced6f5481a728138fed6e867b0ff7f" 15SRCREV = "31e19f92f00c7003fa115047ce50978bc98c3a0d"
18 16
19PV = "r3039+git" 17PV = "r3039+git"
20 18
@@ -41,6 +39,7 @@ EXTRA_OECONF = '--prefix=${prefix} \
41 --disable-opencl \ 39 --disable-opencl \
42 --enable-pic \ 40 --enable-pic \
43 ${X264_DISABLE_ASM} \ 41 ${X264_DISABLE_ASM} \
42 --extra-cflags="${TUNE_CCARGS}" \
44 ' 43 '
45 44
46do_configure() { 45do_configure() {
@@ -54,3 +53,5 @@ do_install() {
54} 53}
55 54
56AS[unexport] = "1" 55AS[unexport] = "1"
56
57COMPATIBLE_HOST:x86-x32 = "null"