1 #PROG=-c dragon_jtag -P usb
5 #avrdude -v -p m16 -U lfuse:w:0xa1:m -U hfuse:w:0x19:m
7 #avrdude -v -p m16 -U lfuse:w:0xa4:m -U hfuse:w:0x19:m
9 CPUFLAG
=-mmcu
=$(GCCMCU
)
11 CFLAGS
=$(CPUFLAG
) -DF_CPU
=1000000UL -Wall
-g
17 bmc
: bmc.o usart.o i2c.o ipmb.o chassis.o
20 $(OBJCOPY
) -j .text
-j .data
-O binary
$^
$@
23 avrdude
-v
$(PROG
) -p
$(PMCU
) -U flash
:w
:$^
26 setsid avarice
-g
-D
:4242
27 -avr-gdb
-ex
'target remote localhost:4242' bmc
30 -rm -f
*.o bmc bmc.bin
32 .PHONY
: all clean flash debug