summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch27
-rw-r--r--meta-oe/recipes-extended/upm/upm_git.bb2
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch b/meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch
new file mode 100644
index 0000000000..c16b8dbc5a
--- /dev/null
+++ b/meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch
@@ -0,0 +1,27 @@
1From 996d37fc0b7177ee57788399b9140032d5de2765 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 18 Nov 2019 15:50:02 -0800
4Subject: [PATCH] nmea_gps: Link with latomic
5
6clang/x86 ends up with missing symbols for atomics due to atomic<double>
7with libstdc++, it works ok with libc++
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/nmea_gps/CMakeLists.txt | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/nmea_gps/CMakeLists.txt b/src/nmea_gps/CMakeLists.txt
16index b3fb6591..5280bfed 100644
17--- a/src/nmea_gps/CMakeLists.txt
18+++ b/src/nmea_gps/CMakeLists.txt
19@@ -6,4 +6,4 @@ upm_mixed_module_init (NAME nmea_gps
20 CPP_SRC nmea_gps.cxx
21 FTI_SRC nmea_gps_fti.c
22 CPP_WRAPS_C
23- REQUIRES mraa utilities-c ${CMAKE_THREAD_LIBS_INIT})
24+ REQUIRES mraa utilities-c atomic ${CMAKE_THREAD_LIBS_INIT})
25--
262.24.0
27
diff --git a/meta-oe/recipes-extended/upm/upm_git.bb b/meta-oe/recipes-extended/upm/upm_git.bb
index fb22e83359..dbe97370d5 100644
--- a/meta-oe/recipes-extended/upm/upm_git.bb
+++ b/meta-oe/recipes-extended/upm/upm_git.bb
@@ -15,6 +15,8 @@ SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \
15 file://0001-Use-stdint-types.patch \ 15 file://0001-Use-stdint-types.patch \
16 " 16 "
17 17
18SRC_URI_append_toolchain-clang_x86 = " file://0001-nmea_gps-Link-with-latomic.patch "
19
18S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
19 21
20# Depends on mraa which only supports x86 and ARM for now 22# Depends on mraa which only supports x86 and ARM for now