mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2025-01-18 17:03:58 +08:00
Removed LTO as it breaks the firmware.
This commit is contained in:
parent
60fbb5e0a0
commit
440605e0ca
3
Makefile
3
Makefile
@ -84,7 +84,6 @@ SIZE = arm-none-eabi-size
|
||||
ASFLAGS = -mcpu=cortex-m0
|
||||
CFLAGS = -Os -Wall -Werror -mcpu=cortex-m0 -fno-builtin -fshort-enums -std=c11 -MMD
|
||||
CFLAGS += -DPRINTF_INCLUDE_CONFIG_H
|
||||
CFLAGS_LTO = -flto
|
||||
LDFLAGS = -mcpu=cortex-m0 -nostartfiles -Wl,-T,firmware.ld
|
||||
|
||||
OVERLAY_CFLAGS = $(CFLAGS) -fno-inline -fno-toplevel-reorder
|
||||
@ -139,7 +138,7 @@ $(TARGET): $(OBJS)
|
||||
bsp/dp32g030/%.h: hardware/dp32g030/%.def
|
||||
|
||||
%.o: %.c | $(BSP_HEADERS)
|
||||
$(CC) $(CFLAGS) $(CFLAGS_LTO) $(INC) -c $< -o $@
|
||||
$(CC) $(CFLAGS) $(INC) -c $< -o $@
|
||||
|
||||
%.o: %.S
|
||||
$(AS) $(ASFLAGS) $< -o $@
|
||||
|
Loading…
Reference in New Issue
Block a user