Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: tools/build.py

Issue 12726011: Enables cross-compilation of the VM for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/build.py
===================================================================
--- tools/build.py (revision 21221)
+++ tools/build.py (working copy)
@@ -15,11 +15,15 @@
HOST_OS = utils.GuessOS()
HOST_CPUS = utils.GuessCpus()
-armcompilerlocation = '/opt/codesourcery/arm-2009q1'
SCRIPT_DIR = os.path.dirname(sys.argv[0])
DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..'))
THIRD_PARTY_ROOT = os.path.join(DART_ROOT, 'third_party')
+# To make sure that you have arm cross compilation tools installed run:
+# $ wget http://src.chromium.org/chrome/trunk/src/build/install-build-deps.sh
+# $ ./install-build-deps.sh --arm
kustermann 2013/04/15 11:59:22 This doesn't quite work (at least on my machine).
zra 2013/04/15 17:52:58 Was the problem that './linux/install-chromeos-fon
+DEFAULT_ARM_CROSS_COMPILER_PATH = '/usr'
+
def BuildOptions():
result = optparse.OptionParser()
result.add_option("-m", "--mode",
@@ -107,14 +111,14 @@
def SetTools(arch, toolchainprefix):
toolsOverride = None
if arch == 'arm' and toolchainprefix == None:
- toolchainprefix = armcompilerlocation + "/bin/arm-none-linux-gnueabi"
+ toolchainprefix = DEFAULT_ARM_CROSS_COMPILER_PATH + "/bin/arm-linux-gnueabi"
if toolchainprefix:
toolsOverride = {
- "CC" : toolchainprefix + "-gcc",
- "CXX" : toolchainprefix + "-g++",
- "AR" : toolchainprefix + "-ar",
- "LINK": toolchainprefix + "-g++",
- "NM" : toolchainprefix + "-nm",
+ "CC.target" : toolchainprefix + "-gcc",
+ "CXX.target" : toolchainprefix + "-g++",
+ "AR.target" : toolchainprefix + "-ar",
+ "LINK.target": toolchainprefix + "-g++",
+ "NM.target" : toolchainprefix + "-nm",
}
return toolsOverride

Powered by Google App Engine
This is Rietveld 408576698