Checking in binutils to enable ppc cross compile.
This commit is contained in:
parent
e0951d012e
commit
e37821cf36
|
@ -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
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 21047d50a8d6b430dfcdb09dd81ffa158406205f
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue