From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] Makefile: allow appending to LIB in sub-makefiles
Date: Thu, 28 Jun 2012 18:45:19 +0200 [thread overview]
Message-ID: <1340901921-9868-2-git-send-email-daniel.schwierzeck@gmail.com> (raw)
In-Reply-To: <1340901921-9868-1-git-send-email-daniel.schwierzeck@gmail.com>
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.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 0197239..b5fafc7 100644
--- a/Makefile
+++ b/Makefile
@@ -225,7 +225,7 @@ endif
OBJS := $(addprefix $(obj),$(OBJS))
-LIBS = lib/libgeneric.o
+LIBS += lib/libgeneric.o
LIBS += lib/lzma/liblzma.o
LIBS += lib/lzo/liblzo.o
LIBS += lib/zlib/libz.o
--
1.7.11.1
next prev parent reply other threads:[~2012-06-28 16:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-28 12:40 [U-Boot] [PATCH] Makefile: change LIB to LIB-y Daniel Schwierzeck
2012-06-28 15:33 ` Wolfgang Denk
2012-06-28 16:45 ` [U-Boot] [PATCH 0/3] replace LIBS by LIBS-y and allow appending to it in sub-makefiles Daniel Schwierzeck
2012-06-28 16:45 ` Daniel Schwierzeck [this message]
2012-07-19 3:27 ` [U-Boot] [PATCH 1/3] Makefile: allow appending to LIB " Mike Frysinger
2012-08-10 21:11 ` Wolfgang Denk
2012-06-28 16:45 ` [U-Boot] [PATCH 2/3] Makefile: replace LIBS by LIBS-y Daniel Schwierzeck
2012-07-19 3:27 ` Mike Frysinger
2012-08-10 21:11 ` Wolfgang Denk
2012-08-14 18:47 ` Marek Vasut
2012-06-28 16:45 ` [U-Boot] [PATCH 3/3] Makefile: cosmetic: optimize usage of LIBS-y Daniel Schwierzeck
2012-07-19 3:31 ` Mike Frysinger
2012-07-19 16:14 ` Daniel Schwierzeck
2012-07-19 23:39 ` [U-Boot] [PATCH v2 " daniel.schwierzeck at gmail.com
2012-08-10 21:17 ` Wolfgang Denk
2012-08-14 13:52 ` Kumar Gala
2012-08-14 21:34 ` Kumar Gala
2012-08-14 19:10 ` [U-Boot] [PATCH " Marek Vasut
2012-07-19 3:26 ` [U-Boot] [PATCH] Makefile: change LIB to LIB-y Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1340901921-9868-2-git-send-email-daniel.schwierzeck@gmail.com \
--to=daniel.schwierzeck@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox