From: Wolfgang Denk Date: Thu, 28 Jun 2012 17:33:07 +0200 Subject: [U-Boot] [PATCH] Makefile: change LIB to LIB-y In-Reply-To: <1340887200-535-1-git-send-email-daniel.schwierzeck@gmail.com> References: <1340887200-535-1-git-send-email-daniel.schwierzeck@gmail.com> Message-ID: <20120628153307.D96672026AB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Daniel Schwierzeck, In message <1340887200-535-1-git-send-email-daniel.schwierzeck@gmail.com> you wrote: > Use LIB-y and LIB-$(xxx) for appending libraries. Also allow appending > to LIB-y in sub-makefiles. > > The top Makefile and the SPL Makefile have lines like those: > > ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),) > LIBS-y += $(CPUDIR)/omap-common/libomap-common.o > endif > > ifeq ($(SOC),mx5) > LIBS-y += $(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. Please split into two patches: one that introduces LIBS-y, and another one, that adds the extensions. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Nobody will ever need more than 640k RAM!" -- Bill Gates, 1981 "Windows 95 needs at least 8 MB RAM." -- Bill Gates, 1996 "Nobody will ever need Windows 95." -- logical conclusion