1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
| | From cfc87289d7636f439e2b91d88e35430949b29c0f Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sat, 31 Jul 2021 05:58:40 +0200
Subject: [PATCH] Remove network connectivity
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c15d9510..a4d891444 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.1.0)
project(librealsense2 LANGUAGES CXX C)
include(CMake/lrs_options.cmake)
-include(CMake/connectivity_check.cmake)
#Deprecation message, should be removed in future releases
if(${FORCE_LIBUVC} OR ${FORCE_WINUSB_UVC} OR ${ANDROID_USB_HOST_UVC})
@@ -12,14 +11,12 @@ if(${FORCE_LIBUVC} OR ${FORCE_WINUSB_UVC} OR ${ANDROID_USB_HOST_UVC})
endif()
# Checking Internet connection, as TM2 needs to download the FW from amazon cloud
-if(BUILD_WITH_TM2 AND NOT INTERNET_CONNECTION)
- message(WARNING "No internet connection, disabling BUILD_WITH_TM2")
+if(BUILD_WITH_TM2)
set(BUILD_WITH_TM2 OFF)
endif()
# Checking Internet connection, as DEPTH CAM needs to download the FW from amazon cloud
-if(IMPORT_DEPTH_CAM_FW AND NOT INTERNET_CONNECTION)
- message(WARNING "No internet connection, disabling IMPORT_DEPTH_CAM_FW")
+if(IMPORT_DEPTH_CAM_FW)
set(IMPORT_DEPTH_CAM_FW OFF)
endif()
diff --git a/common/fw/CMakeLists.txt b/common/fw/CMakeLists.txt
index 32b1dd29a..9961e4d1d 100644
--- a/common/fw/CMakeLists.txt
+++ b/common/fw/CMakeLists.txt
@@ -6,8 +6,6 @@ project(fw)
file(READ "firmware-version.h" ver)
-message(STATUS "Fetching recommended firmwares:")
-
set(REALSENSE_FIRMWARE_URL "https://librealsense.intel.com" CACHE STRING
"URL to download firmware binaries from")
@@ -51,16 +49,6 @@ set_target_properties (${PROJECT_NAME} PROPERTIES FOLDER Resources)
function(target_binary url version sha1 symbol ext)
set(binary "${CMAKE_CURRENT_BINARY_DIR}/${symbol}-${version}${ext}")
- message(STATUS "${url}/${symbol}-${version}${ext}")
- file(DOWNLOAD "${url}/${symbol}-${version}${ext}" "${binary}"
- EXPECTED_HASH SHA1=${sha1}
- STATUS status)
- list(GET status 0 error_code)
- if (NOT ${error_code} EQUAL 0)
- message(FATAL_ERROR "Download firmwnare (${status}) - ${url}")
- else()
- message(STATUS "Download firmware ${status} for ${symbol}-${version}${ext}")
- endif()
string(TOUPPER ${symbol} SYMBOL)
string(REPLACE "." "," version_commas ${version})
string(REPLACE "\\" "\\\\" binary_escaped "${binary}")
--
2.32.0
|