export variant: cd ~/zephyr/source/zephyr export ZEPHYR_TOOLCHAIN_VARIANT=zephyr export ZEPHYR_SDK_INSTALL_DIR=~/zephyr/sdk source zephyr-env.sh
build sample: cd samples/bluetooth/hci_uart/ mkdir build && cd build cmake -GNinja -DBOARD=nrf52_pca10040 ..
output: Zephyr version: 1.14.99 -- Selected BOARD nrf52_pca10040 -- Found west: /home/jeremy/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6") -- Loading /home/jeremy/zephyr/source/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040.dts as base -- Overlaying /home/jeremy/zephyr/source/zephyr/dts/common/common.dts -- Overlaying /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/nrf52_pca10040.overlay Parsing Kconfig tree in /home/jeremy/zephyr/source/zephyr/Kconfig Loading /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config as base Configuration written to '/home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config' -- Cache files will be written to: /home/jeremy/.cache/zephyr Including module: tinycbor in path: /home/jeremy/zephyr/source/modules/lib/tinycbor Including module: qmsi in path: /home/jeremy/zephyr/source/modules/hal/qmsi -- Configuring done -- Generating done -- Build files have been written to: /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build
ninja output: [137/142] Linking C executable zephyr/zephyr_prebuilt.elf Memory region Used Size Region Size %age Used FLASH: 73191 B 512 KB 13.96% SRAM: 18908 B 64 KB 28.85% IDT_LIST: 136 B 2 KB 6.64% [142/142] Linking C executable zephyr/zephyr.elf
jeremy@jeremy:~/zephyr/source/zephyr/samples/bluetooth/hci_uart/build$ ninja menuconfig [0/1] cd /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/...urce/zephyr/scripts/kconfig/menuconfig.py /home/jeremy/zephyr/source/zephyr/Kconfig Using existing configuration '/home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config' as base No changes to save (for '/home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config')