[U-Boot] [PATCH 1/2] Don't let the command-line ARCH=powerpc	override our	redefinition to ppc.
    Scott Wood 
    scottwood at freescale.com
       
    Mon Oct 19 23:24:09 CEST 2009
    
    
  
The override keyword is needed for make to take our version over the one
specified on the command line, and remove it from the list of command line
overrides that are passed to submakes.  IMHO, the combination of "export"
and "override" ought to do this automatically, but oh well.
Signed-off-by: Scott Wood <scottwood at freescale.com>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index bed9469..f9e7a50 100644
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,8 @@ unexport CDPATH
 #########################################################################
 
 ifeq ($(ARCH),powerpc)
-ARCH = ppc
+override ARCH = ppc
+MAKEOVERRIDES := $(MAKEOVERRIDES:ARCH%=)
 endif
 
 # The "tools" are needed early, so put this first
-- 
1.6.4.4
    
    
More information about the U-Boot
mailing list