Skip to content

Commit

Permalink
Escape some quotes and fix binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
pingswept committed Jun 2, 2011
1 parent d9cc284 commit de5ddf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen-rascal-binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
hostname = 'rascal' + serial[2:6].lstrip('0')

bootargs ='\'#define CONFIG_RASCAL_BOOTARGS "console=ttyS0,115200 ip=::::{0}:: pwhash={1}"\''.format(hostname, pwhash)
ethaddr = '#define CONFIG_RASCAL_ETHADDR {0}'.format(mac)
ethaddr = '\'#define CONFIG_RASCAL_ETHADDR {0}\''.format(mac)

commands = [
'cp include/configs/rascal.h rascal.h.orig',
'echo ' + bootargs + ' >> include/configs/rascal.h',
'echo ' + ethaddr + ' >> include/configs/rascal.h',
'make distclean; make rascal_config; make all',
'cp u-boot.bin ../u-boot-{0}'.format(serial.lower()),
'cp u-boot.bin ~/Desktop/Dropbox/Rascal/Software/useful-binaries/u-boot-{0}.bin'.format(serial.lower()),
'cp rascal.h.orig include/configs/rascal.h',
]
for cmd in commands:
Expand Down

0 comments on commit de5ddf6

Please sign in to comment.