diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-08-09 11:33:43 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-09 22:33:38 +0100 |
| commit | b997e4dc9cce85afeddf5c53b094e00379f7caae (patch) | |
| tree | 00d4fe67aaeee1c69b41cffbaa54b9daa47e8ae8 /meta/recipes-multimedia/ffmpeg | |
| parent | 9b2c1ef3192e4208cc0af1331ec636968c408c8b (diff) | |
| download | poky-b997e4dc9cce85afeddf5c53b094e00379f7caae.tar.gz | |
ffmpeg: fix build with binutils 2.43 on arm with commerical codecs
binutils 2.43 is stricter with label names, so rename a label to stop
assembler errors.
[ YOCTO #15570 ]
(From OE-Core rev: 06d29af58521b94518c924468db34d0eed1cb056)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/ffmpeg')
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch | 52 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
2 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch new file mode 100644 index 0000000000..2551eb17d7 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From 0b541aa54b9573d8eef7401a0cc58c422fe60a9a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Thu, 8 Aug 2024 18:04:17 +0100 | ||
| 4 | Subject: [PATCH] libavcodec/arm/mlpdsp_armv5te: fix label format to work with | ||
| 5 | binutils 2.43 | ||
| 6 | |||
| 7 | binutils 2.43 has stricter validation for labels[1] and results in errors | ||
| 8 | when building ffmpeg for armv5: | ||
| 9 | |||
| 10 | src/libavcodec/arm/mlpdsp_armv5te.S:232: Error: junk at end of line, first unrecognized character is `0' | ||
| 11 | |||
| 12 | Remove the leading zero in the "01" label to resolve this error. | ||
| 13 | |||
| 14 | [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=226749d5a6ff0d5c607d6428d6c81e1e7e7a994b | ||
| 15 | |||
| 16 | Upstream-Status: Submitted [https://ffmpeg.org//pipermail/ffmpeg-devel/2024-August/332149.html] | ||
| 17 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 18 | --- | ||
| 19 | libavcodec/arm/mlpdsp_armv5te.S | 6 +++--- | ||
| 20 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/libavcodec/arm/mlpdsp_armv5te.S b/libavcodec/arm/mlpdsp_armv5te.S | ||
| 23 | index 4f9aa48..d315686 100644 | ||
| 24 | --- a/libavcodec/arm/mlpdsp_armv5te.S | ||
| 25 | +++ b/libavcodec/arm/mlpdsp_armv5te.S | ||
| 26 | @@ -229,7 +229,7 @@ A .endif | ||
| 27 | .endif | ||
| 28 | |||
| 29 | // Begin loop | ||
| 30 | -01: | ||
| 31 | +1: | ||
| 32 | .if TOTAL_TAPS == 0 | ||
| 33 | // Things simplify a lot in this case | ||
| 34 | // In fact this could be pipelined further if it's worth it... | ||
| 35 | @@ -241,7 +241,7 @@ A .endif | ||
| 36 | str ST0, [PST, #-4]! | ||
| 37 | str ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)] | ||
| 38 | str ST0, [PSAMP], #4 * MAX_CHANNELS | ||
| 39 | - bne 01b | ||
| 40 | + bne 1b | ||
| 41 | .else | ||
| 42 | .if \fir_taps & 1 | ||
| 43 | .set LOAD_REG, 1 | ||
| 44 | @@ -333,7 +333,7 @@ T orr AC0, AC0, AC1 | ||
| 45 | str ST3, [PST, #-4]! | ||
| 46 | str ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)] | ||
| 47 | str ST3, [PSAMP], #4 * MAX_CHANNELS | ||
| 48 | - bne 01b | ||
| 49 | + bne 1b | ||
| 50 | .endif | ||
| 51 | b 99f | ||
| 52 | |||
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb index dea1f54580..fe34b87ccf 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | |||
| @@ -27,6 +27,7 @@ SRC_URI = " \ | |||
| 27 | file://av1_ordering_info.patch \ | 27 | file://av1_ordering_info.patch \ |
| 28 | file://vulkan_av1_stable_API.patch \ | 28 | file://vulkan_av1_stable_API.patch \ |
| 29 | file://vulkan_fix_gcc14.patch \ | 29 | file://vulkan_fix_gcc14.patch \ |
| 30 | file://0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch \ | ||
| 30 | " | 31 | " |
| 31 | 32 | ||
| 32 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 33 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |
