Disabled stripping of the elf, included debug info
This commit is contained in:
parent
ad62da122f
commit
543f60e56d
1 changed files with 1 additions and 2 deletions
3
makefile
3
makefile
|
@ -9,7 +9,7 @@ MCU = atmega328p
|
|||
QEMU_MACHINE_NAME = uno
|
||||
|
||||
# Compiler flags
|
||||
CFLAGS = -std=c2x -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -O3
|
||||
CFLAGS = -std=c2x -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -O3 -g
|
||||
|
||||
# Comment the following line to disable UART debugging (see uart.h)
|
||||
CFLAGS += -DDEBUG_UART_ENABLED
|
||||
|
@ -36,7 +36,6 @@ $(OBJDIR)/%.o: %.c | $(OBJDIR)
|
|||
# Link object files
|
||||
$(OBJDIR)/$(TARGET).elf: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(OBJS) -o $(OBJDIR)/$(TARGET).elf
|
||||
avr-strip $(OBJDIR)/$(TARGET).elf
|
||||
|
||||
# Convert ELF to HEX
|
||||
$(TARGET).hex: $(OBJDIR)/$(TARGET).elf
|
||||
|
|
Loading…
Reference in a new issue