[openfirmware] [commit] r1929 - cpu/arm/mmp2/build
repository service
svn at openfirmware.info
Wed Aug 11 07:06:54 CEST 2010
Author: wmb
Date: Wed Aug 11 07:06:53 2010
New Revision: 1929
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1929
Log:
ARM - more tweaking for smooth cross-building.
Modified:
cpu/arm/mmp2/build/Makefile
Modified: cpu/arm/mmp2/build/Makefile
==============================================================================
--- cpu/arm/mmp2/build/Makefile Wed Aug 11 06:55:28 2010 (r1928)
+++ cpu/arm/mmp2/build/Makefile Wed Aug 11 07:06:53 2010 (r1929)
@@ -1,4 +1,10 @@
OS := $(shell uname)
+CPU := $(shell uname -m)
+
+# We only need to build the native wrapper if we are compiling on an ARM host
+ifeq ($CPU, arm)
+ NATIVEWRAPPER=../../${OS}/forth
+endif
BASEDIR= `(cd ../../../..; pwd;)`
TAGFILES= ../../build/*.tag *.tag
@@ -13,7 +19,7 @@
tags: mmp2.tag
@${BASEDIR}/forth/lib/toctags ${BASEDIR} ${TAGFILES}
-mmp2.rom: FORCE build ../../${OS}/forth ${CLIENTPROGS}
+mmp2.rom: FORCE build ${CLIENTPROGS} ${NATIVEWRAPPER}
./build $@
../../${OS}/forth:
More information about the openfirmware
mailing list