From c6b347d3e6cff0b3438d54c3ff430deb7e7bbe5c Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 11 Feb 2022 10:56:06 +0000 Subject: [PATCH] arm/trusted-firmware-m: stop FetchContent from fetching TF-M uses FetchContent to download further sources at configure time, but this is bad form as the sources and licenses are not tracked or archived. This should now be blocked by the network isolation but as this doesn't work in some environments (such as Docker containers) we can tell cmake to never fetch to be sure that all of the sources used are declared in SRC_URI. Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- .../recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.5.0.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.5.0.bb b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.5.0.bb index c0eee5cc..619162be 100644 --- a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.5.0.bb +++ b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.5.0.bb @@ -78,6 +78,9 @@ PACKAGECONFIG[cc-armclang] = "-DTFM_TOOLCHAIN_FILE=${S}/toolchain_ARMCLANG.cmake PACKAGECONFIG[test-secure] = "-DTEST_S=ON,-DTEST_S=OFF" PACKAGECONFIG[test-nonsecure] = "-DTEST_NS=ON,-DTEST_NS=OFF" +# Don't let FetchContent download more sources during do_configure +EXTRA_OECMAKE += "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" + # Add platform parameters EXTRA_OECMAKE += "-DTFM_PLATFORM=${TFM_PLATFORM}"