]> git.zerfleddert.de Git - rsbs2/blame - bmc/Makefile
use CTC unit to generate correct timings for power/reset
[rsbs2] / bmc / Makefile
CommitLineData
d7bda89e
MG
1PROG=dragon_jtag
2PORT=usb
3PMCU=m16
7f52e040
MG
4GCCMCU=atmega16
5
6CPUFLAG=-mmcu=$(GCCMCU)
7CC=avr-gcc
8CFLAGS=$(CPUFLAG) -DF_CPU=8000000UL -Wall -g
9LDFLAGS=$(CPUFLAG)
10OBJCOPY=avr-objcopy
d7bda89e
MG
11
12all: bmc.bin
13
da7751cb 14bmc: bmc.o usart.o i2c.o ipmb.o chassis.o
d7bda89e
MG
15
16bmc.bin: bmc
17 $(OBJCOPY) -j .text -j .data -O binary $^ $@
18
19flash: bmc.bin
20 avrdude -v -c $(PROG) -P $(PORT) -p $(PMCU) -U flash:w:$^
21
22debug: bmc bmc.bin
23 setsid avarice -g -D :4242
24 -avr-gdb -ex 'target remote localhost:4242' bmc
d7bda89e
MG
25
26clean:
27 -rm -f *.o bmc bmc.bin
28
29.PHONY: all clean flash debug
Impressum, Datenschutz