]> git.zerfleddert.de Git - rsbs2/blame_incremental - bmc/Makefile
add information about session timeouts to readme
[rsbs2] / bmc / Makefile
... / ...
CommitLineData
1PROG=dragon_jtag
2PORT=usb
3PMCU=m16
4GCCMCU=atmega16
5#Fuses for 1MHz:
6#avrdude -v -p m16 -U lfuse:w:0xa1:m -U hfuse:w:0x19:m
7#Fuses for 8MHz:
8#avrdude -v -p m16 -U lfuse:w:0xa4:m -U hfuse:w:0x19:m
9
10CPUFLAG=-mmcu=$(GCCMCU)
11CC=avr-gcc
12CFLAGS=$(CPUFLAG) -DF_CPU=1000000UL -Wall -g
13LDFLAGS=$(CPUFLAG)
14OBJCOPY=avr-objcopy
15
16all: bmc.bin
17
18bmc: bmc.o usart.o i2c.o ipmb.o chassis.o
19
20bmc.bin: bmc
21 $(OBJCOPY) -j .text -j .data -O binary $^ $@
22
23flash: bmc.bin
24 avrdude -v -c $(PROG) -P $(PORT) -p $(PMCU) -U flash:w:$^
25
26debug: bmc bmc.bin
27 setsid avarice -g -D :4242
28 -avr-gdb -ex 'target remote localhost:4242' bmc
29
30clean:
31 -rm -f *.o bmc bmc.bin
32
33.PHONY: all clean flash debug
Impressum, Datenschutz