I'm working on automating some of our builds for the nRF5340 in our CI, and
Currently, we can build these locally (on MacOS) with the NCS Connect VSCode toolchain, version 1.4.99-dev1 (historical reasons).
I'm able to demonstrate builds from command line locally with `west build -p -b nrf5340dk_nrf5340_cpuapp`, and so I'm fairly sure it *should* be possible to replicate it.
When I try to do the same with
```
ncs -
nrf
nrfxlib
zephyr
apprepo
```
However, after a few days of on-and-off experimenting with this, it seems like there are some differences in the way that command line
In the Docker image, I've tried both setting up a manual image based on these instructions and Ubuntu 20.04, as well as the `fw-nrfconnect-nrf-docker` image (github.com/.../fw-nrfconnect-nrf-docker). In both cases, I see the same result when I attempt to build:
Unsuccessful build in Docker using nrf-sdk:
```
ZEPHYR_BASE=/Users/joshua.milburn/Projects/drydock/parentdir/zephyr (origin: configfile)
-- west build: generating a build system
cmake version 3.22.1 is OK; minimum version is 3.13.1
Running CMake: /usr/local/bin/cmake -DWEST_PYTHON=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -B/Users/joshua.milburn/Projects/drydock/parentdir/i2c-lsm6dsl-driver/build -S/Users/joshua.milburn/Projects/drydock/parentdir/i2c-lsm6dsl-driver -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp
Including boilerplate (Zephyr base): /Users/joshua.milburn/Projects/drydock/parentdir/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at /Users/joshua.milburn/Projects/drydock/parentdir/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
The OLD behavior for policy CMP0079 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
/Users/joshua.milburn/Projects/drydock/parentdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/joshua.milburn/Projects/drydock/parentdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:38 (find_package)
-- Application: /Users/joshua.milburn/Projects/drydock/parentdir/i2c-lsm6dsl-driver
-- Using NCS Toolchain 1.4.0 for building. (/opt/nordic/ncs/v1.8.0/toolchain/cmake)
-- Zephyr version: 2.4.99 (/Users/joshua.milburn/Projects/drydock/parentdir/zephyr)
-- Found Python3: /opt/nordic/ncs/v1.8.0/toolchain/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")