
Dear Jörg,
On 05/18/2016 02:06 AM, Joerg.Scheuermann@continental-corporation.com wrote:
Von: Masahiro Yamada yamada.masahiro@socionext.com Datum: 14.05.2016 11:11
2016-05-14 7:41 GMT+09:00 James Chargin jimccrown@gmail.com:
Hi,
On 05/13/2016 01:50 PM, Fabio Estevam wrote:
Hi Jörg,
On Fri, May 13, 2016 at 1:57 PM, Joerg.Scheuermann@continental-corporation.com wrote:
Hello,
I am using u-boot 2015.04 and have a mechanism implemented in the board-specific Makefile for our board, which uses xsltproc to generate header-files from xml input files -
this
part is working by now.
what is still not working is the removal of those generated files
upon
calling "make clean", and after some initial inspection I found out, that the
board-specific
directories are completely ignored when calling "make clean"! ...
Hi again,
I 'solved' my case now by generating those headers into include/generated
- as there is some existing magic already, that purges this directory upon
"make distclean" (which actually is all I needed...)
Nice hack, good work.
is that ok that way or are there some "rules" to not write board-specific stuff into this directory perhaps? (this may not work when building consecutive u-boots for different boards WITHOUT "make distclean" in between
- but in my understanding this needs to be done in this case anyway,
correct?)
In a U-Boot 2015.07 build I've got, the other files I see in include/generated seem like they have been derived from the "make <my-board>_config".
So, your work seems to me to be compatible with the way things work more recently (I shouldn't be considered an authority on this).
I can't speak to what "rules" might say about it. I can't find any documented, which seems pretty much like "there are no rules" :)
best regards, Jörg
p.s. just a thought: maybe the reason for "make clean" ignoring the board-specific directories is to make it functional without the need to have a valid configuration at hand? (in other words: "make all" requires a "make xyz_config" before - "make clean/distclean/mrproper" does not)
This is an excellent observation, thanks.
I'd guess it means that if changes are ever made so "make clean" visits board directories, those changes will have be tolerant of there being no configuration established.
Best regards, Jim