Hi,
attached patch improves various aspects in the build system:
make only needs to read Makefile.incs once, thanks to the SECONDEXPANSION feature of GNU make (and we rely on GNU make for lots of things already)
File paths are relative to the root directory, which simplifies debugging (make V=1 gives shorter command lines) and helps ccache finding matches for checkouts in different directories (even though it should normalize paths itself)
It's abuild tested.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de
Does this patch make sense?
Am 28.03.2010 23:47, schrieb Stefan Reinauer:
Does this patch make sense?
Yes, I messed up that bit while trying to make things work with romcc until we fix the -include issue.
Is it possible to include build.h where it is needed instead of passing it in with -include? That might be a better workaround than the abspath hack.
But for now, this is good, so Acked-by: Patrick Georgi patrick.georgi@coresystems.de