iman-30 / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

baudcheck bad substitution #85

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Substitution in baudcheck.tmp.sh fails.

root@gateway:~/optiboot/bootloaders/optiboot# make lilypad
make atmega168 AVR_FREQ=8000000L LED_START_FLASHES=3
make[1]: Entering directory `/root/optiboot/bootloaders/optiboot'
baudcheck.tmp.sh: 8: baudcheck.tmp.sh: Bad substitution
make[1]: *** [baudcheck] Error 2
make[1]: Leaving directory `/root/optiboot/bootloaders/optiboot'
make: *** [lilypad] Error 2

root@gateway:~/optiboot/bootloaders/optiboot# uname -a
Linux gateway 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux

Original issue reported on code.google.com by webw...@gmail.com on 22 May 2013 at 9:56

GoogleCodeExporter commented 8 years ago
It looks like the baudcheck shell script gets generated without specifying 
exactly which shell it should use.  I heat that recent Ubuntu uses "dash" 
instead of bash, and that probably doesn't work.
I'll try to fix this (keeping track of which shell specifications will work on 
which OSes is ... obnoxious), but in the meantime you can try this workaround:
  make SHELL=/bin/bash lilypad

Original comment by wes...@gmail.com on 23 May 2013 at 3:55

GoogleCodeExporter commented 8 years ago
Hmm. Not quite

root@gateway:~/optiboot/bootloaders/optiboot# make SHELL=/bin/bash lilypad
make atmega168 AVR_FREQ=8000000L LED_START_FLASHES=3
make[1]: Entering directory `/root/optiboot/bootloaders/optiboot'
/bin/bash: -c: line 0: unexpected EOF while looking for matching ``'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make[1]: *** [baudcheck] Error 1
make[1]: Leaving directory `/root/optiboot/bootloaders/optiboot'
make: *** [lilypad] Error 2
root@gateway:~/optiboot/bootloaders/optiboot# 

Original comment by webw...@gmail.com on 23 May 2013 at 5:45

GoogleCodeExporter commented 8 years ago
As a workaround, I've made the makefile ignore errors in the "baudcheck" step:
http://code.google.com/p/optiboot/source/detail?r=a70f7a426c6498fad8e3f4a8eb2ee9
809ecd0a48

Original comment by wes...@gmail.com on 8 Jun 2013 at 6:37

GoogleCodeExporter commented 8 years ago
https://code.google.com/p/optiboot/source/detail?r=a10ef5c935a11a0e656927cd5e9b3
06937203f52

Original comment by wes...@gmail.com on 28 Jun 2014 at 9:13