From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sun, 19 Jul 2009 21:36:22 +0200 Subject: [U-Boot] [PATCH] push CROSS_COMPILE out to $(ARCH)_config.mk In-Reply-To: <1245036794-7396-1-git-send-email-vapier@gentoo.org> References: <1245036794-7396-1-git-send-email-vapier@gentoo.org> Message-ID: <20090719193622.94AF7832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1245036794-7396-1-git-send-email-vapier@gentoo.org> you wrote: > Each arch should handle setting a proper default CROSS_COMPILE value in > their own config.mk file rather than having to maintain a large ugly list > in the Makefile. By using conditional assignment, we don't have to worry > about the variable already being set (env/cmdline/etc...). > > The common config.mk file takes care of exporting CROSS_COMPILE already, > and while a few variables (toolchain ones) utilize CROSS_COMPILE before > including the arch config.mk, they do so with deferred assignment. > > Signed-off-by: Mike Frysinger > --- > Makefile | 44 ++------------------------------------------ > arm_config.mk | 2 ++ > avr32_config.mk | 2 ++ > blackfin_config.mk | 2 ++ > i386_config.mk | 2 ++ > m68k_config.mk | 2 ++ > microblaze_config.mk | 2 ++ > mips_config.mk | 2 ++ > nios2_config.mk | 2 ++ > nios_config.mk | 2 ++ > ppc_config.mk | 2 ++ > sh_config.mk | 2 ++ > sparc_config.mk | 2 ++ > 13 files changed, 26 insertions(+), 42 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I read part of it all the way through.