summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-02-09 12:53:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-12 17:05:35 +0000
commit23ac8859f4f336dead2264f320a382d696b48370 (patch)
tree04fe7501d575fe8716db1331e9678b74759648fa /meta/classes
parent75f9785a2b28eddd1f6ca0c8a6c6507dd97df409 (diff)
downloadpoky-23ac8859f4f336dead2264f320a382d696b48370.tar.gz
cmake: stop FetchContent from fetching content
CMake includes a FetchContent module, which will download further source code at configure time. With the network isolation this will now fail, but as not all environments support network isolation we can tell cmake to not download either for extra safety. (From OE-Core rev: 138df1940fff303de48c98a95ac1bbaef4f120e2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cmake.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 92b9197c48..fac7bbca7a 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -189,6 +189,7 @@ cmake_do_configure() {
189 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ 189 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
190 -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ 190 -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \
191 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \ 191 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \
192 -DFETCHCONTENT_FULLY_DISCONNECTED=ON \
192 ${EXTRA_OECMAKE} \ 193 ${EXTRA_OECMAKE} \
193 -Wno-dev 194 -Wno-dev
194} 195}