Browse Source

Move scripts to scripts/

pull/5/head
Raphael Assenat 7 years ago
parent
commit
728aef1e5f
  1. 6
      Makefile
  2. 6
      Makefile.stk525
  3. 1
      scripts/enter_bootloader.sh
  4. 0
      scripts/wait_then_flash.sh

6
Makefile

@ -35,11 +35,11 @@ $(PROGNAME).hex: $(PROGNAME).elf @@ -35,11 +35,11 @@ $(PROGNAME).hex: $(PROGNAME).elf
fuse:
flash: $(HEXFILE)
./enter_bootloader.sh
./wait_then_flash.sh $(CPU) $(HEXFILE)
- ./scripts/enter_bootloader.sh
./scripts/wait_then_flash.sh $(CPU) $(HEXFILE)
justflash: $(HEXFILE)
./wait_then_flash.sh $(CPU) $(HEXFILE)
./scripts/wait_then_flash.sh $(CPU) $(HEXFILE)
chip_erase:
dfu-programmer atmega32u2 erase

6
Makefile.stk525

@ -39,11 +39,11 @@ clean: @@ -39,11 +39,11 @@ clean:
fuse:
flash: $(HEXFILE)
./enter_bootloader.sh
./wait_then_flash.sh $(CPU) $(HEXFILE)
- ./scripts/enter_bootloader.sh
./scripts/wait_then_flash.sh $(CPU) $(HEXFILE)
justflash: $(HEXFILE)
./wait_then_flash.sh $(CPU) $(HEXFILE)
./scripts/wait_then_flash.sh $(CPU) $(HEXFILE)
chip_erase:
dfu-programmer atmega32u2 erase

1
enter_bootloader.sh → scripts/enter_bootloader.sh

@ -4,6 +4,7 @@ TOOL=./tool/gcn64ctl @@ -4,6 +4,7 @@ TOOL=./tool/gcn64ctl
if [ -x $TOOL ]; then
$TOOL -f --bootloader
exit 0 # The tool fails, but we should continue
else
echo $TOOL not found. Please compile it to enter bootloader automatically.
fi

0
wait_then_flash.sh → scripts/wait_then_flash.sh

Loading…
Cancel
Save