diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2015-06-10 18:27:00 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:59:18 +0100 |
commit | f355baa21aa991b3d25ef1838da25c39e41d0513 (patch) | |
tree | 492d3a0f9c4ccff0a7541db2bb8226a40865424d /meta | |
parent | 346769c12081ede03724bab389a021f8f5180db9 (diff) | |
download | poky-f355baa21aa991b3d25ef1838da25c39e41d0513.tar.gz |
libatomic-ops: 7.2 -> 7.4.2
The backported patch is included in the new version, so dropped the
patch.
Dropped DESCRIPTION, because it was redundant (same as SUMMARY).
Changed HOMEPAGE. libatomic_ops is nowadays maintained by Ivan
Maidanski.
doc/LICENSING.txt changed checksum, but there were only whitespace
changes. COPYING moved from doc/ to the top-level directory, but the
checksum stayed the same.
Dropped PR.
(From OE-Core rev: b93cad476835a29384717f3875ce29c357471357)
Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
3 files changed, 28 insertions, 271 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/files/0001-libatomic_ops-Aarch64-basic-port.patch b/meta/recipes-multimedia/pulseaudio/files/0001-libatomic_ops-Aarch64-basic-port.patch deleted file mode 100644 index a563b8b022..0000000000 --- a/meta/recipes-multimedia/pulseaudio/files/0001-libatomic_ops-Aarch64-basic-port.patch +++ /dev/null | |||
@@ -1,239 +0,0 @@ | |||
1 | From aac120d778ae5fc619b2fb8ef18ea18d3d5d20cc Mon Sep 17 00:00:00 2001 | ||
2 | From: Yvan Roux <yvan.roux@linaro.org> | ||
3 | Date: Wed, 23 Jan 2013 17:14:16 +0100 | ||
4 | Subject: [PATCH] Aarch64 basic port | ||
5 | |||
6 | Adapted-for-OpenEmbedded-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | ||
7 | |||
8 | |||
9 | Upstream-Status: Backport | ||
10 | |||
11 | It is original from | ||
12 | https://github.com/ivmai/libatomic_ops/commit/cbbf86330fcb600cfe0f895cb970d922456005d6 | ||
13 | |||
14 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
15 | --- | ||
16 | src/atomic_ops.h | 4 | ||
17 | src/atomic_ops/sysdeps/Makefile.am | 1 | ||
18 | src/atomic_ops/sysdeps/gcc/aarch64.h | 184 +++++++++++++++++++++++++++++++++++ | ||
19 | 3 files changed, 189 insertions(+) | ||
20 | create mode 100644 src/atomic_ops/sysdeps/gcc/aarch64.h | ||
21 | |||
22 | --- libatomic_ops-7.2.orig/src/atomic_ops.h | ||
23 | +++ libatomic_ops-7.2/src/atomic_ops.h | ||
24 | @@ -242,10 +242,14 @@ | ||
25 | # endif /* __m68k__ */ | ||
26 | # if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) \ | ||
27 | || defined(__powerpc64__) || defined(__ppc64__) | ||
28 | # include "atomic_ops/sysdeps/gcc/powerpc.h" | ||
29 | # endif /* __powerpc__ */ | ||
30 | +# if defined(__aarch64__) | ||
31 | +# include "atomic_ops/sysdeps/gcc/aarch64.h" | ||
32 | +# define AO_CAN_EMUL_CAS | ||
33 | +# endif /* __aarch64__ */ | ||
34 | # if defined(__arm__) && !defined(AO_USE_PTHREAD_DEFS) | ||
35 | # include "atomic_ops/sysdeps/gcc/arm.h" | ||
36 | # define AO_CAN_EMUL_CAS | ||
37 | # endif /* __arm__ */ | ||
38 | # if defined(__cris__) || defined(CRIS) | ||
39 | --- libatomic_ops-7.2.orig/src/atomic_ops/sysdeps/Makefile.am | ||
40 | +++ libatomic_ops-7.2/src/atomic_ops/sysdeps/Makefile.am | ||
41 | @@ -24,10 +24,11 @@ nobase_sysdep_HEADERS= generic_pthread.h | ||
42 | standard_ao_double_t.h \ | ||
43 | README \ | ||
44 | \ | ||
45 | armcc/arm_v6.h \ | ||
46 | \ | ||
47 | + gcc/aarch64.h \ | ||
48 | gcc/alpha.h gcc/arm.h gcc/avr32.h gcc/cris.h \ | ||
49 | gcc/hexagon.h gcc/hppa.h gcc/ia64.h gcc/m68k.h \ | ||
50 | gcc/mips.h gcc/powerpc.h gcc/s390.h \ | ||
51 | gcc/sh.h gcc/sparc.h gcc/x86.h gcc/x86_64.h \ | ||
52 | \ | ||
53 | --- /dev/null | ||
54 | +++ libatomic_ops-7.2/src/atomic_ops/sysdeps/gcc/aarch64.h | ||
55 | @@ -0,0 +1,184 @@ | ||
56 | +/* | ||
57 | + * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. | ||
58 | + * Copyright (c) 1996-1999 by Silicon Graphics. All rights reserved. | ||
59 | + * Copyright (c) 1999-2003 by Hewlett-Packard Company. All rights reserved. | ||
60 | + * | ||
61 | + * | ||
62 | + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED | ||
63 | + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. | ||
64 | + * | ||
65 | + * Permission is hereby granted to use or copy this program | ||
66 | + * for any purpose, provided the above notices are retained on all copies. | ||
67 | + * Permission to modify the code and to distribute modified code is granted, | ||
68 | + * provided the above notices are retained, and a notice that the code was | ||
69 | + * modified is included with the above copyright notice. | ||
70 | + * | ||
71 | + */ | ||
72 | + | ||
73 | +#include "../read_ordered.h" | ||
74 | + | ||
75 | +#include "../test_and_set_t_is_ao_t.h" | ||
76 | + | ||
77 | +AO_INLINE void | ||
78 | +AO_nop_full(void) | ||
79 | +{ | ||
80 | +# ifndef AO_UNIPROCESSOR | ||
81 | +__sync_synchronize (); | ||
82 | +# endif | ||
83 | +} | ||
84 | +#define AO_HAVE_nop_full | ||
85 | + | ||
86 | +AO_INLINE AO_t | ||
87 | +AO_load(const volatile AO_t *addr) | ||
88 | +{ | ||
89 | + return __atomic_load_n (addr, __ATOMIC_RELAXED); | ||
90 | +} | ||
91 | +#define AO_HAVE_load | ||
92 | + | ||
93 | +AO_INLINE AO_t | ||
94 | +AO_load_acquire(const volatile AO_t *addr) | ||
95 | +{ | ||
96 | + return __atomic_load_n (addr, __ATOMIC_ACQUIRE); | ||
97 | +} | ||
98 | +#define AO_HAVE_load_acquire | ||
99 | + | ||
100 | +AO_INLINE void | ||
101 | + AO_store(volatile AO_t *addr, AO_t value) | ||
102 | +{ | ||
103 | + __atomic_store_n(addr, value, __ATOMIC_RELAXED); | ||
104 | +} | ||
105 | +#define AO_HAVE_store | ||
106 | + | ||
107 | +AO_INLINE void | ||
108 | + AO_store_release(volatile AO_t *addr, AO_t value) | ||
109 | +{ | ||
110 | + __atomic_store_n(addr, value, __ATOMIC_RELEASE); | ||
111 | +} | ||
112 | +#define AO_HAVE_store_release | ||
113 | + | ||
114 | +AO_INLINE AO_TS_VAL_t | ||
115 | +AO_test_and_set(volatile AO_TS_t *addr) | ||
116 | +{ | ||
117 | + return __atomic_test_and_set(addr, __ATOMIC_RELAXED); | ||
118 | +} | ||
119 | +# define AO_HAVE_test_and_set | ||
120 | + | ||
121 | +AO_INLINE AO_TS_VAL_t | ||
122 | +AO_test_and_set_acquire(volatile AO_TS_t *addr) | ||
123 | +{ | ||
124 | + return __atomic_test_and_set(addr, __ATOMIC_ACQUIRE); | ||
125 | +} | ||
126 | +# define AO_HAVE_test_and_set_acquire | ||
127 | + | ||
128 | +AO_INLINE AO_TS_VAL_t | ||
129 | +AO_test_and_set_release(volatile AO_TS_t *addr) | ||
130 | +{ | ||
131 | + return __atomic_test_and_set(addr, __ATOMIC_RELEASE); | ||
132 | +} | ||
133 | +# define AO_HAVE_test_and_set_release | ||
134 | + | ||
135 | +AO_INLINE AO_TS_VAL_t | ||
136 | +AO_test_and_set_full(volatile AO_TS_t *addr) | ||
137 | +{ | ||
138 | + return __atomic_test_and_set(addr, __ATOMIC_SEQ_CST); | ||
139 | +} | ||
140 | +# define AO_HAVE_test_and_set_full | ||
141 | + | ||
142 | +AO_INLINE AO_t | ||
143 | +AO_fetch_and_add(volatile AO_t *p, AO_t incr) | ||
144 | +{ | ||
145 | + return __atomic_fetch_add(p, incr, __ATOMIC_RELAXED); | ||
146 | +} | ||
147 | +#define AO_HAVE_fetch_and_add | ||
148 | + | ||
149 | +AO_INLINE AO_t | ||
150 | +AO_fetch_and_add_acquire(volatile AO_t *p, AO_t incr) | ||
151 | +{ | ||
152 | + return __atomic_fetch_add(p, incr, __ATOMIC_ACQUIRE); | ||
153 | +} | ||
154 | +#define AO_HAVE_fetch_and_add_acquire | ||
155 | + | ||
156 | +AO_INLINE AO_t | ||
157 | +AO_fetch_and_add_release(volatile AO_t *p, AO_t incr) | ||
158 | +{ | ||
159 | + return __atomic_fetch_add(p, incr, __ATOMIC_RELEASE); | ||
160 | +} | ||
161 | +#define AO_HAVE_fetch_and_add_release | ||
162 | + | ||
163 | +AO_INLINE AO_t | ||
164 | +AO_fetch_and_add_full(volatile AO_t *p, AO_t incr) | ||
165 | +{ | ||
166 | + return __atomic_fetch_add(p, incr, __ATOMIC_SEQ_CST); | ||
167 | +} | ||
168 | +#define AO_HAVE_fetch_and_add_full | ||
169 | + | ||
170 | +AO_INLINE AO_t | ||
171 | +AO_fetch_and_add1(volatile AO_t *p) | ||
172 | +{ | ||
173 | + return __atomic_fetch_add(p, 1, __ATOMIC_RELAXED); | ||
174 | +} | ||
175 | +#define AO_HAVE_fetch_and_add1 | ||
176 | + | ||
177 | +AO_INLINE AO_t | ||
178 | +AO_fetch_and_add1_acquire(volatile AO_t *p) | ||
179 | +{ | ||
180 | + return __atomic_fetch_add(p, 1, __ATOMIC_ACQUIRE); | ||
181 | +} | ||
182 | +#define AO_HAVE_fetch_and_add1_acquire | ||
183 | + | ||
184 | +AO_INLINE AO_t | ||
185 | +AO_fetch_and_add1_release(volatile AO_t *p) | ||
186 | +{ | ||
187 | + return __atomic_fetch_add(p, 1, __ATOMIC_RELEASE); | ||
188 | +} | ||
189 | +#define AO_HAVE_fetch_and_add1_release | ||
190 | + | ||
191 | +AO_INLINE AO_t | ||
192 | +AO_fetch_and_add1_full(volatile AO_t *p) | ||
193 | +{ | ||
194 | + return __atomic_fetch_add(p, 1, __ATOMIC_SEQ_CST); | ||
195 | +} | ||
196 | +#define AO_HAVE_fetch_and_add1_full | ||
197 | + | ||
198 | +AO_INLINE AO_t | ||
199 | +AO_fetch_and_sub1(volatile AO_t *p) | ||
200 | +{ | ||
201 | + return __atomic_fetch_sub(p, 1, __ATOMIC_RELAXED); | ||
202 | +} | ||
203 | +#define AO_HAVE_fetch_and_sub1 | ||
204 | + | ||
205 | +AO_INLINE AO_t | ||
206 | +AO_fetch_and_sub1_acquire(volatile AO_t *p) | ||
207 | +{ | ||
208 | + return __atomic_fetch_sub(p, 1, __ATOMIC_ACQUIRE); | ||
209 | +} | ||
210 | +#define AO_HAVE_fetch_and_sub1_acquire | ||
211 | + | ||
212 | +AO_INLINE AO_t | ||
213 | +AO_fetch_and_sub1_release(volatile AO_t *p) | ||
214 | +{ | ||
215 | + return __atomic_fetch_sub(p, 1, __ATOMIC_RELEASE); | ||
216 | +} | ||
217 | +#define AO_HAVE_fetch_and_sub1_release | ||
218 | + | ||
219 | +AO_INLINE AO_t | ||
220 | +AO_fetch_and_sub1_full(volatile AO_t *p) | ||
221 | +{ | ||
222 | + return __atomic_fetch_sub(p, 1, __ATOMIC_SEQ_CST); | ||
223 | +} | ||
224 | +#define AO_HAVE_fetch_and_sub1_full | ||
225 | + | ||
226 | +/* Returns nonzero if the comparison succeeded. */ | ||
227 | +AO_INLINE int | ||
228 | +AO_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val) | ||
229 | +{ | ||
230 | + return __sync_bool_compare_and_swap(addr, old_val, new_val); | ||
231 | +} | ||
232 | +# define AO_HAVE_compare_and_swap | ||
233 | + | ||
234 | +AO_INLINE AO_t | ||
235 | +AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val) | ||
236 | +{ | ||
237 | + return __sync_val_compare_and_swap(addr, old_val, new_val); | ||
238 | +} | ||
239 | +# define AO_HAVE_fetch_compare_and_swap | ||
diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb b/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb deleted file mode 100644 index 5a582287b5..0000000000 --- a/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | SUMMARY = "A library for atomic integer operations" | ||
2 | DESCRIPTION = "A library for atomic integer operations" | ||
3 | HOMEPAGE = "http://www.hpl.hp.com/research/linux/atomic_ops/" | ||
4 | SECTION = "optional" | ||
5 | LICENSE = "GPLv2 & MIT" | ||
6 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
7 | file://doc/LICENSING.txt;md5=607073e04548eac7d1f763e480477bab \ | ||
8 | " | ||
9 | PR = "r1" | ||
10 | |||
11 | SRC_URI = "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-${PV}.tar.gz \ | ||
12 | file://0001-libatomic_ops-Aarch64-basic-port.patch \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[md5sum] = "890acdc83a7cd10e2e9536062d3741c8" | ||
16 | SRC_URI[sha256sum] = "c4ee6e0c304c6f13bcc32968453cdb54b2ec233d8bf4cfcf266ee09dc33b4eb5" | ||
17 | |||
18 | S = "${WORKDIR}/libatomic_ops-${PV}" | ||
19 | |||
20 | ALLOW_EMPTY_${PN} = "1" | ||
21 | |||
22 | ARM_INSTRUCTION_SET = "arm" | ||
23 | |||
24 | inherit autotools pkgconfig | ||
25 | |||
26 | do_install_append() { | ||
27 | # those contain only docs, not necessary for now. | ||
28 | install -m 0755 -d ${D}${docdir} | ||
29 | mv ${D}${datadir}/libatomic_ops ${D}${docdir}/${BPN} | ||
30 | } | ||
31 | |||
32 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.4.2.bb b/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.4.2.bb new file mode 100644 index 0000000000..26faabb1bf --- /dev/null +++ b/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.4.2.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | SUMMARY = "A library for atomic integer operations" | ||
2 | HOMEPAGE = "https://github.com/ivmai/libatomic_ops/" | ||
3 | SECTION = "optional" | ||
4 | LICENSE = "GPLv2 & MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
6 | file://doc/LICENSING.txt;md5=e00dd5c8ac03a14c5ae5225a4525fa2d \ | ||
7 | " | ||
8 | |||
9 | SRC_URI = "http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-${PV}.tar.gz" | ||
10 | |||
11 | SRC_URI[md5sum] = "1d6538604b314d2fccdf86915e5c0857" | ||
12 | SRC_URI[sha256sum] = "04fa615f62992547bcbda562260e28b504bc4c06e2f985f267f3ade30304b5dd" | ||
13 | |||
14 | S = "${WORKDIR}/libatomic_ops-${PV}" | ||
15 | |||
16 | ALLOW_EMPTY_${PN} = "1" | ||
17 | |||
18 | ARM_INSTRUCTION_SET = "arm" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
21 | |||
22 | do_install_append() { | ||
23 | # those contain only docs, not necessary for now. | ||
24 | install -m 0755 -d ${D}${docdir} | ||
25 | mv ${D}${datadir}/libatomic_ops ${D}${docdir}/${BPN} | ||
26 | } | ||
27 | |||
28 | BBCLASSEXTEND = "native nativesdk" | ||