X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/7f52e04004f9e6147790d674600e0eed5a5e8448..9299770a1ad1f8c06c34338c0c4dd7907eb20882:/bmc/Makefile?ds=sidebyside diff --git a/bmc/Makefile b/bmc/Makefile index 6f8b4dd..6f27e42 100644 --- a/bmc/Makefile +++ b/bmc/Makefile @@ -2,16 +2,18 @@ PROG=dragon_jtag PORT=usb PMCU=m16 GCCMCU=atmega16 +#Fuses for 1MHz: +#avrdude -v -p m16 -U lfuse:w:0xa1:m -U hfuse:w:0x19:m CPUFLAG=-mmcu=$(GCCMCU) CC=avr-gcc -CFLAGS=$(CPUFLAG) -DF_CPU=8000000UL -Wall -g +CFLAGS=$(CPUFLAG) -DF_CPU=1000000UL -Wall -g LDFLAGS=$(CPUFLAG) OBJCOPY=avr-objcopy all: bmc.bin -bmc: bmc.o usart.o i2c.o +bmc: bmc.o usart.o i2c.o ipmb.o chassis.o bmc.bin: bmc $(OBJCOPY) -j .text -j .data -O binary $^ $@