[Buildroot] [PATCH 1/1] boot/barebox: add renaming functionality to barebox image copy

Steinhilber, Markus Markus.Steinhilber at erbe-med.com
Tue Feb 19 11:03:52 UTC 2019


Hello Thomas,

>> Until now barebox images are copied to the output/images directory
>> with their default name. This is a problem if the barebox and
>> barebox-aux images have the same name.
> Could you describe a specific case/situation where this would happen ?
> The main reason we have barebox vs. barebox-aux is because you sometimes need to build a full-blown Barebox, and a smaller Barebox that serves a first stage bootloader. From what I remember the generated images had different names, don't they ?

In our case it's happening, because we are building a barebox to be used with the device normally and use the barebox-aux to build a barebox which we use with the serial downloader mode of our board to do initial setup and programming. Those images have the same name and the second file overwrites the first without this patch. I understand that the usual case for barebox-aux may be to build a first stage bootloader, but I think it should not be limited to that case. The description of the barebox-aux package is " Build barebox with an auxiliary configuration" and for this, you can't be sure that the image files have different names. As soon as you are building 2 barebox images of the same type(SPL/TPL), but different config (which I think is quite useful) you will have this problem. I don't know if you may also have it in some cases when the type is different. Also, you can leave the setting empty and it will work just like before.

>> Also, you need to rename the images in a post-build script if you need
>> certain file names.
> That is a pretty normal thing in Buildroot. We just install things as they are installed by the upstream build system, and leave it up to custom post-build script to further rename/move/adjust to match the specific requirements of the project/user.

I understand. In this case I see it as some kind of nice-to-have function you can achieve. The main reason is the one above.

Thanks,
Markus
________________________________

Erbe Elektromedizin GmbH Firmensitz: 72072 Tuebingen Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede Registergericht: Stuttgart HRB 380137




More information about the buildroot mailing list