Chromium Code Reviews| 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 |