summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-02-21 07:45:59 +0000
committerAndrei Gherzan <andrei@gherzan.ro>2016-03-10 14:58:26 +0100
commit00962adc49f43dd55ffb2e1b6f296ef7272ff386 (patch)
tree999c3d188ad1783e313d507388d15e67d9bd691b
parent370e0f68e65d36f64a4e77700fd5cd3044c74cdc (diff)
downloadmeta-raspberrypi-00962adc49f43dd55ffb2e1b6f296ef7272ff386.tar.gz
userland: Drop extern inline patches
Not needed since the issues have been fixed differently upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-graphics/userland/userland/0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch45
-rw-r--r--recipes-graphics/userland/userland/0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch84
-rw-r--r--recipes-graphics/userland/userland_git.bb2
3 files changed, 0 insertions, 131 deletions
diff --git a/recipes-graphics/userland/userland/0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch b/recipes-graphics/userland/userland/0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch
deleted file mode 100644
index ebeefd3..0000000
--- a/recipes-graphics/userland/userland/0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1From 58e03d60603baabf63137cdc81ed774cc94d26d6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2016 11:00:25 -0800
4Subject: [PATCH 01/13] Fix VCOS_INLINE_DECL to not use extern inlines in
5 declarations
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 interface/vcos/pthreads/vcos_platform_types.h | 2 +-
10 interface/vcos/vcos_types.h | 4 ++--
11 2 files changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/interface/vcos/pthreads/vcos_platform_types.h b/interface/vcos/pthreads/vcos_platform_types.h
14index 17b422d..64fb381 100644
15--- a/interface/vcos/pthreads/vcos_platform_types.h
16+++ b/interface/vcos/pthreads/vcos_platform_types.h
17@@ -61,7 +61,7 @@ vcos_pthreads_logging_assert(const char *file, const char *func, unsigned int li
18 #define VCOS_ASSERT_MSG(...) ((VCOS_ASSERT_LOGGING && !VCOS_ASSERT_LOGGING_DISABLE) ? vcos_pthreads_logging_assert(__FILE__, __func__, __LINE__, __VA_ARGS__) : (void)0)
19
20 #define VCOS_INLINE_BODIES
21-#define VCOS_INLINE_DECL extern __inline__
22+#define VCOS_INLINE_DECL extern
23 #define VCOS_INLINE_IMPL static __inline__
24
25 #ifdef __cplusplus
26diff --git a/interface/vcos/vcos_types.h b/interface/vcos/vcos_types.h
27index 6feb4d2..e64fd99 100644
28--- a/interface/vcos/vcos_types.h
29+++ b/interface/vcos/vcos_types.h
30@@ -121,10 +121,10 @@ typedef enum
31 #if defined(NDEBUG)
32
33 #ifdef __GNUC__
34-# define VCOS_INLINE_DECL extern __inline__
35+# define VCOS_INLINE_DECL extern
36 # define VCOS_INLINE_IMPL static __inline__
37 #else
38-# define VCOS_INLINE_DECL static _VCOS_INLINE /* declare a func */
39+# define VCOS_INLINE_DECL extern
40 # define VCOS_INLINE_IMPL static _VCOS_INLINE /* implement a func inline */
41 #endif
42
43--
442.7.1
45
diff --git a/recipes-graphics/userland/userland/0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch b/recipes-graphics/userland/userland/0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch
deleted file mode 100644
index 4d508d2..0000000
--- a/recipes-graphics/userland/userland/0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch
+++ /dev/null
@@ -1,84 +0,0 @@
1From 7c07db6c640ec4dfc6baec23f86c7b312028c9c6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 23 Aug 2015 13:41:33 -0700
4Subject: [PATCH 04/13] vcos_platform_types: Dont use extern inline with clang
5
6Its very gcc specific implementation here in this code, we cant use
7it with clang as such, so we will use static inline instead which is
8common across gcc and clang starting c99 std onwards
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 interface/vcos/pthreads/vcos_platform_types.h | 4 ----
13 interface/vcos/vcos_timer.h | 5 -----
14 interface/vcos/vcos_types.h | 2 +-
15 3 files changed, 1 insertion(+), 10 deletions(-)
16
17diff --git a/interface/vcos/pthreads/vcos_platform_types.h b/interface/vcos/pthreads/vcos_platform_types.h
18index 64fb381..6ebcaad 100644
19--- a/interface/vcos/pthreads/vcos_platform_types.h
20+++ b/interface/vcos/pthreads/vcos_platform_types.h
21@@ -60,10 +60,6 @@ vcos_pthreads_logging_assert(const char *file, const char *func, unsigned int li
22
23 #define VCOS_ASSERT_MSG(...) ((VCOS_ASSERT_LOGGING && !VCOS_ASSERT_LOGGING_DISABLE) ? vcos_pthreads_logging_assert(__FILE__, __func__, __LINE__, __VA_ARGS__) : (void)0)
24
25-#define VCOS_INLINE_BODIES
26-#define VCOS_INLINE_DECL extern
27-#define VCOS_INLINE_IMPL static __inline__
28-
29 #ifdef __cplusplus
30 }
31 #endif
32diff --git a/interface/vcos/vcos_timer.h b/interface/vcos/vcos_timer.h
33index bdfa657..1de2d46 100644
34--- a/interface/vcos/vcos_timer.h
35+++ b/interface/vcos/vcos_timer.h
36@@ -76,7 +76,6 @@ VCOSPRE_ VCOS_STATUS_T VCOSPOST_ vcos_timer_init(void);
37 * @param context context passed to expiration routine
38 *
39 */
40-VCOS_INLINE_DECL
41 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
42 const char *name,
43 void (*expiration_routine)(void *context),
44@@ -91,24 +90,20 @@ VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
45 * @param timer timer handle
46 * @param delay Delay to wait for, in ms
47 */
48-VCOS_INLINE_DECL
49 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
50
51 /** Stop an already running timer.
52 *
53 * @param timer timer handle
54 */
55-VCOS_INLINE_DECL
56 void vcos_timer_cancel(VCOS_TIMER_T *timer);
57
58 /** Stop a timer and restart it.
59 * @param timer timer handle
60 * @param delay delay in ms
61 */
62-VCOS_INLINE_DECL
63 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
64
65-VCOS_INLINE_DECL
66 void vcos_timer_delete(VCOS_TIMER_T *timer);
67
68 #ifdef __cplusplus
69diff --git a/interface/vcos/vcos_types.h b/interface/vcos/vcos_types.h
70index e64fd99..7d86742 100644
71--- a/interface/vcos/vcos_types.h
72+++ b/interface/vcos/vcos_types.h
73@@ -120,7 +120,7 @@ typedef enum
74
75 #if defined(NDEBUG)
76
77-#ifdef __GNUC__
78+#if defined(__GNUC__) && !defined(__clang__)
79 # define VCOS_INLINE_DECL extern
80 # define VCOS_INLINE_IMPL static __inline__
81 #else
82--
832.7.1
84
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb
index 4eb67fe..accc707 100644
--- a/recipes-graphics/userland/userland_git.bb
+++ b/recipes-graphics/userland/userland_git.bb
@@ -20,10 +20,8 @@ SRCREV = "748b2ba6112435063352d72f48d1d6dcc124bd6f"
20 20
21SRC_URI = "\ 21SRC_URI = "\
22 git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ 22 git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
23 file://0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch \
24 file://0002-set-VMCS_INSTALL_PREFIX-to-usr.patch \ 23 file://0002-set-VMCS_INSTALL_PREFIX-to-usr.patch \
25 file://0003-cmake-generate-and-install-pkgconfig-files.patch \ 24 file://0003-cmake-generate-and-install-pkgconfig-files.patch \
26 file://0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch \
27 file://0005-Allow-applications-to-set-next-resource-handle.patch \ 25 file://0005-Allow-applications-to-set-next-resource-handle.patch \
28 file://0006-wayland-Add-support-for-the-Wayland-winsys.patch \ 26 file://0006-wayland-Add-support-for-the-Wayland-winsys.patch \
29 file://0007-wayland-Add-Wayland-example.patch \ 27 file://0007-wayland-Add-Wayland-example.patch \