We are trying to setup a build server for build the torizon-docker image with our own customizations but are running into some errors most likely due to our company firewall. When we try to build the image we get the following error:
bitbake torizon-docker
Loading cache: 100% |#####################################################################| Time: 0:00:01
Loaded 2112 entries from dependency cache.
WARNING: /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc
WARNING: /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb: Error during finalise of /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb
ERROR: ExpansionError during parsing /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb
bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/bamboo/Documents/torizon_test/layers/openembedded-core/scripts:/home/bamboo/Documents/torizon_test/build-torizon/tmp/work/apalis_imx8-tdx-linux/linux-toradex-upstream/mainline/recipe-sysroot-native/usr/bin/aarch64-tdx-linux:/home/bamboo/Documents/torizon_test/build-torizon/tmp/work/apalis_imx8-tdx-linux/linux-toradex-upstream/mainline/recipe-sysroot/usr/bin/crossscripts:/home/bamboo/Documents/torizon_test/build-torizon/tmp/work/apalis_imx8-tdx-linux/linux-toradex-upstream/mainline/recipe-sysroot-native/usr/sbin:/home/bamboo/Documents/torizon_test/build-torizon/tmp/work/apalis_imx8-tdx-linux/linux-toradex-upstream/mainline/recipe-sysroot-native/usr/bin:/home/bamboo/Documents/torizon_test/build-torizon/tmp/work/apalis_imx8-tdx-linux/linux-toradex-upstream/mainline/recipe-sysroot-native/sbin:/home/bamboo/Documents/torizon_test/build-torizon/tmp/work/apalis_imx8-tdx-linux/linux-toradex-upstream/mainline/recipe-sysroot-native/bin:/home/bamboo/Documents/torizon_test/layers/openembedded-core/bitbake/bin:/home/bamboo/Documents/torizon_test/build-torizon/tmp/hosttools"; export HOME="/home/bamboo"; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git failed with exit code 128, output:
fatal: unable to access 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/': server certificate verification failed. CAfile: none CRLfile: none
The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue]
ERROR: Parsing halted due to errors, see error messages above
WARNING: /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_mainline.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc
WARNING: /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_mainline.bb: Error during finalise of /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_mainline.bb
Summary: There were 4 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
Our network has some issues with the network sanity check as well as fetching recipes that use “http://git.*” as the source
In the past, we have gotten around this by copying over the downloads manually and adding CONNECTIVITY_CHECK_URIS = “” and BB_NO_NETWORK = “1” to the local.conf. However, when we add these options to the torizon build, we get the following error.
$ bitbake torizon-docker
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
WARNING: /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc
WARNING: /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb: Error during finalise of /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb
ERROR: ExpansionError during parsing /home/bamboo/Documents/torizon_test/build-torizon/conf/../../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb
bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} which triggered exception NetworkAccess: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git (for url https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git)
The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue]
ERROR: Parsing halted due to errors, see error messages above
Summary: There were 2 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
Is there a way to setup the torizon yocto build to build offline? Are there a different set of options we can use to get around these network checks?