Building Zephyr like there's no CMake


Paul Sokolovsky
 

Hello,

This post is long overdue, it should have been posted at the time of
1.10 release. It's possible that now it's not much relevant for many
people which undergo a pain^W chore^W process of converting their
workflow to "type more than one command to go along with CMake".

Anyway, there's a patch,
https://github.com/zephyrproject-rtos/zephyr/pull/5201 , which
introduces a "zephyr-make" wrapper which allows you to build Zephyr
(in-tree) applications (samples and tests) largely as before:

zephyr-make BOARD=frdm_k64f CONF=prj_frdm_k64f.conf
zephyr-make BOARD=qemu_cortex_m3 # Uses prj.conf
zephyr-make # Uses qemu_x86

As the review comments show, the common assessment was that if the
mainline switches to CMake, then it makes sense to switch to it, and
don't promote any wrappers. I expect that the PR will be closed, but I
intend to push any fixes made to that branch.

And, as a note to maintainers, if you were concerned that with the
documentation switching to use "ninja" in examples, "make" support for
CMake build process will go unexercised and untested, no worries,
people still use it ;-).


--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog

Join devel@lists.zephyrproject.org to automatically receive all group messages.