From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 7 Mar 2014 17:29:17 -0500 Subject: [U-Boot] [U-Boot, v3, 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC In-Reply-To: <1394006380-14192-3-git-send-email-yamada.m@jp.panasonic.com> References: <1394006380-14192-3-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140307222917.GR16805@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 05, 2014 at 04:59:38PM +0900, Masahiro Yamada 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 > Cc: Tom Warren > Cc: Simon Glass > Acked-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: