The following instructions are for building the latest version of Zephyr, which uses CMake for configuring the build instead of Automake.
git clone https://gitlab.kitware.com/cmake/cmake.git cd cmake/ git tag -l git checkout v3.8.2
./bootstrap && make -j8 sudo make install
type -a cmake dpkg -S /usr/bin/cmake gvim -p ~/.bashrc ~/.profile
alias cmake='/usr/local/bin/cmake'
sudo bash zephyr-sdk-0.9.2-setup.run
git clone <zephyr yada yada yada
#Check Repository name git remote -V
# git pull –rebase zephyr master
http://docs.zephyrproject.org/getting_started/getting_started.html
export ZEPHYR_GCC_VARIANT=zephyr export ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk/
cd zephyr source ./zephyr-env.sh
cd $ZEPHYR_BASE/samples/hello_world
# Make a build directory, and use cmake to configure a Make-based build system: mkdir -p build/disco_l457_iot1 && cd build/disco_l457_iot1 cmake -DBOARD=disco_l475_iot1 ../..
# Now run make on the generated build system: make -j8
cd src/openocd-stm32 source ./setlocal.sh
cat setlocal.sh
stm32_flsh l4 $ZEPHYR_SOURCE/samples/hello_world/build/disco_l475_iot1/zephyr/zephyr.bin
ls -al /dev/ttyACM0 minicom -D /dev/ttyACM0
press reset