Commit 203fc975 authored by Sebastian Neuser's avatar Sebastian Neuser

Add make target for .bob3 file for Bobdude

parent 8850c87a
......@@ -34,8 +34,25 @@ OBJS := $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(C_FILES)))
%.program: %.hex
$(AVRDUDE) -p $(MCU) -c $(PGM_TYPE) -P $(PGM_DEV) -U flash:w:$<:i
.ONESHELL:
%.bob3: %.hex
cat >$@ <<-__EOF__
<?xml version="1.0"?>
<xhex version="1.0">
<platform>bob3-m88-8</platform>
<programmer type="avrispv2"/>
<device part="atmega88" erase="yes">
<segment id="flash" format="ihex">
__EOF__
cat $< >>$@
cat >>$@ <<-__EOF__
</segment>
</device>
</xhex>
__EOF__
clean:
rm -f $(OBJS) *.o *.elf *.hex
rm -f $(OBJS) *.o *.elf *.hex *.bob3
.PRECIOUS: %.hex
.PHONY: clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment