public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] Makefile: cosmetic: optimize usage of LIBS-y
Date: Tue, 14 Aug 2012 21:10:00 +0200	[thread overview]
Message-ID: <201208142110.00253.marex@denx.de> (raw)
In-Reply-To: <1340901921-9868-4-git-send-email-daniel.schwierzeck@gmail.com>

Dear Daniel Schwierzeck,

> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> ---
>  Makefile | 18 +++++++-----------
>  1 file changed, 7 insertions(+), 11 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 2bde73c..cf3c56d 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -225,15 +225,15 @@ endif
> 
>  OBJS := $(addprefix $(obj),$(OBJS))
> 
> +HAVE_VENDOR_COMMON_LIB := $(shell [ -f board/$(VENDOR)/common/Makefile ] \
> +			&& echo y || echo n)
> +
>  LIBS-y += lib/libgeneric.o
>  LIBS-y += lib/lzma/liblzma.o
>  LIBS-y += lib/lzo/liblzo.o
>  LIBS-y += lib/zlib/libz.o
> -ifeq ($(CONFIG_TIZEN),y)
> -LIBS-y += lib/tizen/libtizen.o
> -endif
> -LIBS-y += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
> -	"board/$(VENDOR)/common/lib$(VENDOR).o"; fi)
> +LIBS-$(CONFIG_TIZEN) += lib/tizen/libtizen.o
> +LIBS-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/lib$(VENDOR).o

It's apparently this change to HAVE_VENDOR_COMMON_LIB that breaks stuff :-(

>  LIBS-y += $(CPUDIR)/lib$(CPU).o
>  ifdef SOC
>  LIBS-y += $(CPUDIR)/$(SOC)/lib$(SOC).o
[...]


Best regards,
Marek Vasut

  parent reply	other threads:[~2012-08-14 19:10 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   ` [U-Boot] [PATCH 1/3] Makefile: allow appending to LIB " Daniel Schwierzeck
2012-07-19  3:27     ` 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     ` Marek Vasut [this message]
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=201208142110.00253.marex@denx.de \
    --to=marex@denx.de \
    --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