Accepting request 702706 from home:olh:branches:multimedia:libs

- disable armv7 asm for armv6 builds

OBS-URL: https://build.opensuse.org/request/show/702706
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/dav1d?expand=0&rev=18
This commit is contained in:
Luigi Baldoni 2019-05-13 20:36:22 +00:00 committed by Git OBS Bridge
parent ae8d812158
commit 62084be817
3 changed files with 25 additions and 1 deletions

18
dav1d.armv6.patch Normal file
View File

@ -0,0 +1,18 @@
--- a/tests/checkasm/checkasm.h
+++ b/tests/checkasm/checkasm.h
@@ -145,6 +145,7 @@ static inline uint64_t readtime(void) {
#define readtime readtime
#endif
#elif ARCH_ARM && !defined(_MSC_VER)
+#if __ARM_ARCH > 6
static inline uint64_t readtime(void) {
uint32_t cycle_counter;
/* This requires enabling user mode access to the cycle counter (which
@@ -156,6 +157,7 @@ static inline uint64_t readtime(void) {
}
#define readtime readtime
#endif
+#endif
/* Verifies that clobbered callee-saved registers
* are properly saved and restored */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 13 19:48:51 UTC 2019 - olaf@aepfle.de
- disable armv7 asm for armv6 builds
-------------------------------------------------------------------
Sat May 11 16:06:40 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -26,6 +26,7 @@ Group: Productivity/Multimedia/Video/Editors and Convertors
URL: https://code.videolan.org/videolan/dav1d
Source0: https://code.videolan.org/videolan/dav1d/-/archive/%{version}/dav1d-%{version}.tar.gz
Source99: baselibs.conf
Patch0: dav1d.armv6.patch
BuildRequires: meson >= 0.47.0
BuildRequires: nasm
BuildRequires: pkgconfig
@ -60,7 +61,7 @@ Group: System/Libraries
%{name} is an AV1 decoder library.
%prep
%setup -q
%autosetup -p1
%build
%meson