I'm trying to use nrfutil as part of a script that sets up the toolchain environment automatically using direnv.
For example:
nrfutil sdk-manager toolchain env --as-script --toolchain-bundle-id $TOOLCHAIN_BUNDLE_ID
I'd like to know how the bundle ID can be read/calculated assuming that the script has access to the files in a specific NCS SDK release. I thought the bundle ID might be the toolchain checksum, but when I run ./nrf/scripts/print_toolchain_checksum.sh it does not match the bundle ID.
For example, when I check out this app: https://github.com/hello-nrfcloud/firmware
❯ cat nrf/VERSION 2.8.0-rc2 ❯ nrfutil sdk-manager toolchain list Version Toolchain v2.8.0-rc2 /opt/nordic/ncs/toolchains/15b490767d ❯ ./nrf/scripts/print_toolchain_checksum.sh b81a7cd864
How can the toolchain bundle ID be calculated from the files in the SDK release?