Re: ELC-E Zephyr Multiimage BoF - Bob Build Tool
Jan Kloetzke <jan@...>
On Fri, Nov 01, 2019 at 09:24:59AM +0000, Bolivar, Marti wrote:
"Jan Kloetzke via Lists.Zephyrproject.Org"Ok, here it is: https://github.com/jkloetzke/zephyr-example-recipes
There is a README.md with a short overview. Basically you just have to
clone the recipes and build it:
$ git clone https://github.com/jkloetzke/zephyr-example-recipes.git \
$ cd zephyr-example-recipes
$ bob dev demo::zephyr -j
Make sure that you have the latest version of Bob. The demo recipes use
the "layers" feature that has not been released yet. It's best to
install Bob via:
$ pip3 install [--user] git+https://github.com/BobBuildTool/bob
Otherwise have a look at
for further options.
Note that the recipes do not use west but clone the involved
repositories directly and calls cmake itself. This has the advantage
that there is only one tool that fetches/updates sources. Additionally
the OpenAMP sample was put into a dedicated repository because some
refactoring was needed, namely removing the "ExternalProject" link
between the images.
The recipes also show how a toolchain is defined in the recipes. There
is no need for the user to install a toolchain but the right one is
brought in by the recipes automatically. Usually this is done with all
involved tools to maximize reproducibility but this would have just made
the example more complicated.
Sounds great!This is handled well by Bob. The explicit goal of Bob is to feel like
"make" even though Bob controls the build of whole packages.