Checking in binutils to enable ppc cross compile.

This commit is contained in:
Ben Vanik 2013-01-27 00:22:59 -08:00
parent e0951d012e
commit e37821cf36
3 changed files with 24 additions and 0 deletions

3
.gitmodules vendored
View File

@ -10,3 +10,6 @@
[submodule "third_party/gflags"] [submodule "third_party/gflags"]
path = third_party/gflags path = third_party/gflags
url = https://github.com/benvanik/gflags.git url = https://github.com/benvanik/gflags.git
[submodule "third_party/binutils"]
path = third_party/binutils
url = http://sourceware.org/git/binutils.git

1
third_party/binutils vendored Submodule

@ -0,0 +1 @@
Subproject commit 21047d50a8d6b430dfcdb09dd81ffa158406205f

View File

@ -223,6 +223,26 @@ class SetupCommand(Command):
return 1 return 1
print '' print ''
# Binutils.
print '- binutils...'
if not os.path.exists('build/binutils'):
os.makedirs('build/binutils')
os.chdir('build/binutils')
shell_call(' '.join([
'../../third_party/binutils/configure',
'--disable-debug',
'--disable-dependency-tracking',
'--disable-werror',
'--enable-interwork',
'--enable-multilib',
'--target=powerpc-none-elf',
'--with-gnu-ld',
'--with-gnu-as',
]))
shell_call('make')
os.chdir(cwd)
print ''
# LLVM. # LLVM.
print '- preparing llvm...' print '- preparing llvm...'
#generator = 'Visual Studio 10 Win64' #generator = 'Visual Studio 10 Win64'