Permalink
Browse files

Far fixed a small problem in SConscript.motherboard, added an exit co…

…ndition
  • Loading branch information...
unknown unknown
unknown authored and unknown committed Oct 12, 2011
1 parent d9f4fd8 commit 98a09679c66420f854cfc56787242d077aa81391
Showing with 7 additions and 1 deletion.
  1. +7 −1 firmware/src/SConscript.motherboard
@@ -118,7 +118,13 @@ if (os.environ.has_key('AVR_TOOLS_PATH')):
elif (os.environ.has_key('AVR32_HOME')):
avr_tools_path = os.environ['AVR32_HOME'] + '\\bin'
else:
- avr_tools_path = dirname(os.popen('/usr/bin/which avr-gcc').readlines()[0])
+ lines = os.popen('/usr/bin/which avr-gcc').readlines()
+ if(len(lines) > 0):
+ avr_tools_path = dirname(lines[0])
+ else:
+ print "which gcc failed. avr-gcc path not autodetected"
+ print "set AVR32_HOME or update 'which' and avr-gcc"
+ exit()
if (fived == 'true'):
flags.append('-DFOURTH_STEPPER=1')

0 comments on commit 98a0967

Please sign in to comment.