From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 20 Apr 2009 15:49:18 -0500 Subject: [U-Boot] [PATCH] Default to HOSTARCH if ARCH isn't specified In-Reply-To: <20090420203600.5297A83420E8@gemini.denx.de> References: <1240247017-1069-1-git-send-email-galak@kernel.crashing.org> <20090420203600.5297A83420E8@gemini.denx.de> Message-ID: <49ECDFCE.4080700@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > Dear Kumar Gala, > > In message <1240247017-1069-1-git-send-email-galak@kernel.crashing.org> you wrote: >> diff --git a/Makefile b/Makefile >> index e91c051..c56d6db 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -137,6 +137,10 @@ ifeq ($(ARCH),powerpc) >> ARCH = ppc >> endif >> >> +ifndef ARCH >> +ARCH = $(HOSTARCH) >> +endif >> + > > In current mainline U-Boot, such a patch is not needed (which is just a > friendly version of saying it does not make sense :-), because ARCH > gets loaded from include/config.mk after running "make _config". In which case, we should probably add "override" to the place where it is set, so as to avoid interference from any ARCH variable that might be set (we could then remove the powerpc->ppc bit). -Scott