Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit fc3154d

Browse files
authored
Merge pull request #236 from pohly/merge-prs
Combined PR
2 parents 58e3343 + e7aed51 commit fc3154d

6 files changed

Lines changed: 114 additions & 5 deletions

File tree

docker/publish-project.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ _DEPL=${_BRESULT}/deploy
5858

5959
# create publishing destination structure and copy
6060
create_remote_dirs ${RSYNC_PUBLISH_DIR}/builds ${JOB_NAME}/${CI_BUILD_ID}
61-
[ -d ${_DEPL}/images ] && create_remote_dirs ${_RSYNC_DEST} images && rsync -avS ${_DEPL}/images/${TARGET_MACHINE} ${_RSYNC_DEST}/images/
61+
# no uses for stored plain .wic files, skip storing on server, saving big part of space and transfer time
62+
[ -d ${_DEPL}/images ] && create_remote_dirs ${_RSYNC_DEST} images && rsync -avS --exclude '*.wic' ${_DEPL}/images/${TARGET_MACHINE} ${_RSYNC_DEST}/images/
6263
[ -d ${_DEPL}/licenses ] && create_remote_dirs ${_RSYNC_DEST} licenses && rsync -az --ignore-existing ${_DEPL}/licenses ${_RSYNC_DEST}/
6364
[ -d ${_DEPL}/sources ] && create_remote_dirs ${_RSYNC_DEST} sources && rsync -av --ignore-existing ${_DEPL}/sources ${_RSYNC_DEST}/
6465
[ -d ${_DEPL}/tools ] && create_remote_dirs ${_RSYNC_DEST} tools && rsync -av --ignore-existing ${_DEPL}/tools ${_RSYNC_DEST}/
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 7b1581644c5fbdec3a22cd512557b391dc74ebf0 Mon Sep 17 00:00:00 2001
2+
From: Till Hofmann <thofmann@fedoraproject.org>
3+
Date: Wed, 22 Mar 2017 14:23:24 +0100
4+
Subject: [PATCH] Add missing includes for <functional>
5+
6+
Newer GCC versions (>=7) fail with an error if the header is not
7+
included an std::function is used.
8+
9+
Upstream-Status: Backport [https://github.com/IntelRealSense/librealsense/commit/7b1581644c5fbdec3a22cd512557b391dc74ebf0]
10+
11+
---
12+
src/device.cpp | 1 +
13+
src/types.h | 1 +
14+
2 files changed, 2 insertions(+)
15+
16+
diff --git a/src/device.cpp b/src/device.cpp
17+
index 2194769..8918cb1 100644
18+
--- a/src/device.cpp
19+
+++ b/src/device.cpp
20+
@@ -11,6 +11,7 @@
21+
#include <algorithm>
22+
#include <sstream>
23+
#include <iostream>
24+
+#include <functional>
25+
26+
using namespace rsimpl;
27+
using namespace rsimpl::motion_module;
28+
diff --git a/src/types.h b/src/types.h
29+
index 0455c83..a964bf3 100644
30+
--- a/src/types.h
31+
+++ b/src/types.h
32+
@@ -22,6 +22,7 @@
33+
#include <atomic>
34+
#include <map>
35+
#include <algorithm>
36+
+#include <functional>
37+
38+
const uint8_t RS_STREAM_NATIVE_COUNT = 5;
39+
const int RS_USER_QUEUE_SIZE = 20;
40+
--
41+
2.1.4
42+

meta-refkit-computervision/recipes-computervision/librealsense/librealsense_%.bbappend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ PACKAGES_df-refkit-computervision = "${PN} ${PN}-dbg ${PN}-dev ${PN}-examples ${
1010
SRC_URI_append_df-refkit-computervision = " \
1111
file://0001-scripts-removed-bashisms.patch \
1212
file://0001-examples-control-building-of-the-graphical-examples.patch \
13+
file://0001-Add-missing-includes-for-functional.patch \
1314
"
1415

1516
RDEPENDS_${PN}_remove_df-refkit-computervision = "bash"

meta-refkit-core/conf/distro/include/refkit-config.inc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ REFKIT_DEFAULT_DISTRO_FEATURES += "refkit-firewall"
4747
# Reconfigure several upstream recipes for the computer vision profile.
4848
REFKIT_DEFAULT_DISTRO_FEATURES += "refkit-computervision"
4949

50+
# Reconfigure/patch upstream recipes for the gateway vision profile.
51+
REFKIT_DEFAULT_DISTRO_FEATURES += "refkit-gateway"
52+
5053
# Reconfigure several upstream recipes for the industrial profile.
5154
REFKIT_DEFAULT_DISTRO_FEATURES += "refkit-industrial"
5255

@@ -76,10 +79,6 @@ DISTRO_FEATURES_OVERRIDES += " \
7679
# Global distro settings.
7780
#########################################################################
7881

79-
# Several components that refkit depends on aren't ready for gcc7 yet.
80-
# Can be overridden in local.conf with GCCVERSION_df-refkit-config = "7.%"
81-
GCCVERSION_df-refkit-config ??= "6.3%"
82-
8382
# refkit images distinguish between development and production mode.
8483
# Features that are useful only for development and dangerous
8584
# when used on real devices are not enabled in production mode (example:
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
From 26c2798188497da22e0a70efebc47991dd755db2 Mon Sep 17 00:00:00 2001
2+
From: Philippe Coval <philippe.coval@osg.samsung.com>
3+
Date: Wed, 28 Jun 2017 04:54:05 +0200
4+
Subject: [PATCH] resource: Include functional header for g++-7.1.0
5+
6+
It was tested on yocto poky master on iotivity-1.2.1 (and later):
7+
8+
resource/include/OCUtilities.h: \
9+
In function 'OCStackResult OC::nil_guard(PtrT&&, FnT&&, ParamTs&& ...)':
10+
resource/include/OCUtilities.h:85:21: \
11+
error: 'bind' is not a member of 'std'
12+
return std::bind(fn, p, std::ref(params)...)();
13+
14+
resource/include/OCApi.h: At global scope:
15+
resource/include/OCApi.h:362:18: \
16+
error: 'function' in namespace 'std' does not name a template type
17+
typedef std::function<void(std::shared_ptr<OCResource>)> FindCallback;
18+
19+
Change-Id: Ie1cab497c33fde394f77490a1d636eb36a563396
20+
Origin: https://gerrit.iotivity.org/gerrit/#/c/21069/
21+
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
22+
Reviewed-on: https://gerrit.iotivity.org/gerrit/21067
23+
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
24+
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
25+
26+
Upstream-Status: Backport [https://gerrit.iotivity.org/gerrit/gitweb?p=iotivity.git;a=commit;h=cedb81a54e08e56f4a0ffac9c318a0b1b1623239]
27+
28+
---
29+
resource/include/OCApi.h | 2 --
30+
resource/include/OCUtilities.h | 1 +
31+
2 files changed, 1 insertion(+), 2 deletions(-)
32+
33+
diff --git a/resource/include/OCApi.h b/resource/include/OCApi.h
34+
index 4e14f29..af97215 100644
35+
--- a/resource/include/OCApi.h
36+
+++ b/resource/include/OCApi.h
37+
@@ -27,9 +27,7 @@
38+
#include <map>
39+
#include <memory>
40+
#include <iterator>
41+
-#if defined(_MSC_VER)
42+
#include <functional>
43+
-#endif
44+
45+
#include "iotivity_config.h"
46+
#include "iotivity_debug.h"
47+
diff --git a/resource/include/OCUtilities.h b/resource/include/OCUtilities.h
48+
index 85039d0..f1c9304 100644
49+
--- a/resource/include/OCUtilities.h
50+
+++ b/resource/include/OCUtilities.h
51+
@@ -26,6 +26,7 @@
52+
#include <memory>
53+
#include <utility>
54+
#include <exception>
55+
+#include <functional>
56+
57+
#include <OCException.h>
58+
#include <StringConstants.h>
59+
--
60+
2.1.4
61+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2+
3+
SRC_URI_append_df-refkit-gateway = " \
4+
file://0001-resource-Include-functional-header-for-g-7.1.0.patch \
5+
"

0 commit comments

Comments
 (0)