[U-Boot] [PATCH 0/3] Makefile: rework / cleanup
Wolfgang Denk
wd at denx.de
Sun May 16 02:35:30 CEST 2010
The top level Makefile is growing and growing. Once, wehn we suppoted
only a few tens of boards, it was possible to implement board
configuration logic in the Makefile, but it quickly turned out that
this doesn't scale. Also, it is not really needed (at least not any
more) - we noch have mechanisnms in place, that allow for more
efficient code.
The following patch series is an attempt to start some cleanup and
reduce the size of the top level Makefile. The solution is neither
perfect nor complete - there are quite a lot of boards that resist
such a cleanup and need more thorough cleanup. But it's an initial
step, showing what could and should be done, which boards have
problems, and why this is the case. Eentually this paves the ground
for a more friendly way to add new board configurations.
1/3:
Fix printing of make targets, simplify Makefile
Makefile | 740 ++++++++++++++++++++-----------------------------------------
1 files changed, 243 insertions(+), 497 deletions(-)
2/3:
Makefile: simplify handling of build target names
Makefile | 774 ++++++++++++++++++++++++++++++--------------------------------
mkconfig | 4 +-
2 files changed, 379 insertions(+), 399 deletions(-)
3/3:
Makefile: simplify handling of common board configurations
Makefile | 1436 ++++++++++++++++++++++++++------------------------------------
1 files changed, 607 insertions(+), 829 deletions(-)
More information about the U-Boot
mailing list