[PATCH v3 0/7] Basic support for Armada 370/XP SOCs

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun May 12 06:41:42 EDT 2013


Dear Sascha Hauer,

On Sun, 12 May 2013 12:24:04 +0200, Sascha Hauer wrote:

> How about a warning like:
> 
> "Warning: 'plathome-openblocks-ax3-binary.0' does not exist. Not building barebox.kwb"
> 
> Also not an ideal solution, but I think there is no really good way to
> solve this other than including the binary in the tree which probably
> has some licensing issues.

The problem is that the Makefile doesn't know that kwbimage will need
plathome-openblocks-ax3-binary.0, it would have to parse the
kwbimage.cfg file to know about this.

Also, not all .kwb images will require this binary blob. Kirkwood and
Dove do not require such a binary blob, and a kwb image can be built
with just the kwbimage.cfg and barebox.bin. So it is really a
per-kwbimage.cfg knowledge.

Another solution is to add an option to kwbimage that allows it to list
which files are needed to make the build succeed. Then
arch/arm/Makefile can call this, check that we have the needed files.
If not, it shows a warning, otherwise it goes on with the build.

Other ideas welcome, of course.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the barebox mailing list