From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBS
Date: Thu, 27 Feb 2014 10:07:29 -0700 [thread overview]
Message-ID: <530F70D1.9040803@wwwdotorg.org> (raw)
In-Reply-To: <1393511304-9432-3-git-send-email-yamada.m@jp.panasonic.com>
On 02/27/2014 07:28 AM, Masahiro Yamada wrote:
> Before this commit, USE_PRIVATE_LIBS is defined in
> arch-specific config.mk and referenced in
> arch/$(ARCH)/lib/Makefile.
I think you need to s/USE_PRIVATE_LIBS/USE_PRIVATE_LIBGCC/ throughout
the patch subject and description. With that change,
Acked-by: Stephen Warren <swarren@nvidia.com>
> diff --git a/Makefile b/Makefile
....
> +ifdef CONFIG_USE_PRIVATE_LIBGCC
> +ifeq ($(CONFIG_USE_PRIVATE_LIBGCC),y)
> PLATFORM_LIBGCC = arch/$(ARCH)/lib/lib.a
> else
> +PLATFORM_LIBGCC = -L $(CONFIG_USE_PRIVATE_LIBGCC) -lgcc
> endif
> else
Here, it seems that CONFIG_USE_PRIVATE_LIBGCC can be (a) unset (b) set
to y, (c) set to a specific library path name.
> diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
> +lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _divsi3.o \
> + _lshrdi3.o _modsi3.o _udivsi3.o _umodsi3.o div0.o
In case (c) above, that will set variable lib-$(the_library_path_name).
I guess that variable simply won't be used, so that's OK, assuming that
the path name doesn't contain any characters that are illegal as a make
variable name. That's probably true though.
> diff --git a/spl/Makefile b/spl/Makefile
> # Add GCC lib
> +ifeq ($(CONFIG_USE_PRIVATE_LIBGCC),y)
> PLATFORM_LIBGCC = arch/$(ARCH)/lib/lib.a
> PLATFORM_LIBS := $(filter-out %/lib.a, $(filter-out -lgcc, $(PLATFORM_LIBS))) $(PLATFORM_LIBGCC)
> endif
Should the SPL code here also handle case (c) above? I suppose that's a
pre-existing issue, and not related to this patch though, so feel free
to ignore it.
next prev parent reply other threads:[~2014-02-27 17:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 14:28 [U-Boot] [PATCH 0/4] Big acceleration of Kbuild performance Masahiro Yamada
2014-02-27 14:28 ` [U-Boot] [PATCH 1/4] kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED Masahiro Yamada
2014-02-27 14:28 ` [U-Boot] [PATCH 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBS Masahiro Yamada
2014-02-27 17:07 ` Stephen Warren [this message]
2014-02-28 4:50 ` Masahiro Yamada
2014-02-27 14:28 ` [U-Boot] [PATCH 3/4] config.mk: specify the exact path to standalone linker script Masahiro Yamada
2014-02-27 14:28 ` [U-Boot] [PATCH 4/4] kbuild: improve Kbuild speed Masahiro Yamada
2014-02-27 21:00 ` Simon Glass
2014-02-27 19:51 ` [U-Boot] [PATCH 0/4] Big acceleration of Kbuild performance Tom Rini
2014-02-27 21:13 ` Stephen Warren
2014-02-28 4:58 ` Masahiro Yamada
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=530F70D1.9040803@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--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