diff options
| -rw-r--r-- | meta-multimedia/recipes-multimedia/openh264/openh264/0001-meson.build-Enable-PIC-in-x86-assembly-code.patch | 27 | ||||
| -rw-r--r-- | meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb | 5 |
2 files changed, 30 insertions, 2 deletions
diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264/0001-meson.build-Enable-PIC-in-x86-assembly-code.patch b/meta-multimedia/recipes-multimedia/openh264/openh264/0001-meson.build-Enable-PIC-in-x86-assembly-code.patch new file mode 100644 index 0000000000..6a195672f3 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/openh264/openh264/0001-meson.build-Enable-PIC-in-x86-assembly-code.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From f1ce79e51ae06aee550d86832070172772523633 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 7 Jan 2025 20:09:39 -0800 | ||
| 4 | Subject: [PATCH] meson.build: Enable PIC in x86 assembly code | ||
| 5 | |||
| 6 | This is needed especially when using asm code and nasm | ||
| 7 | assembler to compile it. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/cisco/openh264/pull/3831] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | meson.build | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/meson.build b/meson.build | ||
| 16 | index 5dbefa43..b5e2fabf 100644 | ||
| 17 | --- a/meson.build | ||
| 18 | +++ b/meson.build | ||
| 19 | @@ -68,7 +68,7 @@ if ['linux', 'android', 'ios', 'darwin'].contains(system) | ||
| 20 | endif | ||
| 21 | if cpu_family == 'x86' | ||
| 22 | asm_format = asm_format32 | ||
| 23 | - asm_args += ['-DX86_32', '-DHAVE_AVX2'] | ||
| 24 | + asm_args += ['-DX86_32', '-DX86_32_PICASM', '-DHAVE_AVX2'] | ||
| 25 | add_project_arguments('-DHAVE_AVX2', language: 'cpp') | ||
| 26 | add_project_arguments('-DHAVE_AVX2', '-DX86_ASM', '-DX86_32_ASM', language: 'c') | ||
| 27 | asm_inc = join_paths(meson.current_source_dir(), 'codec', 'common', 'x86', '') | ||
diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb index 5ea7825fa0..94594d8916 100644 --- a/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb +++ b/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb | |||
| @@ -14,8 +14,9 @@ inherit meson pkgconfig | |||
| 14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
| 15 | SRCREV = "8c7008aeb6335e7d36ab0d9a023a63f82a8eaac0" | 15 | SRCREV = "8c7008aeb6335e7d36ab0d9a023a63f82a8eaac0" |
| 16 | BRANCH = "openh264v${PV}" | 16 | BRANCH = "openh264v${PV}" |
| 17 | SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH}" | 17 | SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH} \ |
| 18 | file://0001-meson.build-Enable-PIC-in-x86-assembly-code.patch \ | ||
| 19 | " | ||
| 18 | 20 | ||
| 19 | COMPATIBLE_MACHINE:powerpc64le = "null" | 21 | COMPATIBLE_MACHINE:powerpc64le = "null" |
| 20 | COMPATIBLE_MACHINE:riscv32 = "null" | 22 | COMPATIBLE_MACHINE:riscv32 = "null" |
| 21 | |||
