[U-Boot] [PATCH 0/3] replace LIBS by LIBS-y and allow appending to it in sub-makefiles

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Thu Jun 28 18:45:18 CEST 2012


The top Makefile and the SPL Makefile have lines like those:

ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
LIBS += $(CPUDIR)/omap-common/libomap-common.o
endif

ifeq ($(SOC),mx5)
LIBS += $(CPUDIR)/imx-common/libimx-common.o
endif

This should be done in the arch/CPU/SoC specific sub-makefiles to
keep the top Makefiles clean. This patch also allows adding of new
arch/CPU/SoC specific libraries in the future without touching
the top Makefiles.

This series splits the patch in http://patchwork.ozlabs.org/patch/167866/
as demanded by Wolfgang.

Daniel Schwierzeck (3):
  Makefile: allow appending to LIB in sub-makefiles
  Makefile: replace LIBS by LIBS-y
  Makefile: cosmetic: optimize usage of LIBS-y

 Makefile | 144 +++++++++++++++++++++++++++++++--------------------------------
 1 file changed, 70 insertions(+), 74 deletions(-)

--
1.7.11.1



More information about the U-Boot mailing list