]> git.dujemihanovic.xyz Git - u-boot.git/commit
kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 5 Mar 2014 07:59:38 +0000 (16:59 +0900)
committerTom Rini <trini@ti.com>
Fri, 7 Mar 2014 15:59:06 +0000 (10:59 -0500)
commitcd2e46cb38d5aeada2b2c2f881cdc6baa672dc09
tree7dd1790284f07b4eff2197043c81a3aa644407e6
parente91df49fbb56858003ebe61191ae07b223a7b866
kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC

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@jp.panasonic.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
12 files changed:
Makefile
arch/arm/cpu/arm720t/tegra114/config.mk [deleted file]
arch/arm/cpu/arm720t/tegra124/config.mk [deleted file]
arch/arm/cpu/arm720t/tegra20/config.mk [deleted file]
arch/arm/cpu/arm720t/tegra30/config.mk [deleted file]
arch/arm/lib/Makefile
arch/mips/lib/Makefile
arch/powerpc/lib/Makefile
arch/sh/lib/Makefile
arch/x86/config.mk
include/configs/tegra-common.h
spl/Makefile