[U-Boot] [PATCH v3 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC

Simon Glass sjg at chromium.org
Fri Mar 7 23:15:15 CET 2014


On 5 March 2014 00:59, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
> Before this commit, USE_PRIVATE_LIBGCC was defined in
> arch-specific config.mk and referenced in
> arch/$(ARCH)/lib/Makefile.
>
> We are not happy about parsing config.mk again and again.
> We have to keep the same behavior with a different way.
>
> By adding "CONFIG_" prefix, this macro appears
> in include/autoconf.mk, include/spl-autoconf.mk.
> (And treating USE_PRIVATE_LIBGCC as CONFIG macro
> is reasonable enough.)
>
> Tegra SoC family defined USE_PRIVATE_LIBGCC as "yes"
> in arch/arm/cpu/arm720t/tegra*/config.mk,
> whereas did not define it in arch/arm/cpu/armv7/tegra*/config.mk.
>
> It means Tegra enables PRIVATE_LIBGCC only for SPL.
> We can describe the same behavior by adding
>
>   #ifdef CONFIG_SPL_BUILD
>   # define CONFIG_USE_PRIVATE_LIBGCC
>   #endif
>
> to include/configs/tegra-common.h.
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Cc: Tom Warren <twarren at nvidia.com>
> Cc: Simon Glass <sjg at chromium.org>
> Acked-by: Stephen Warren <swarren at nvidia.com>

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list