Use default linking stuff for now

This commit is contained in:
Lynn Ochs 2021-07-17 00:52:10 +02:00
parent 8a03399dc3
commit d0545ec844

View File

@ -5,14 +5,15 @@ BMP_PORT ?= /dev/ttyBmpGdb
COMFLAGS=-g -Os -pedantic -Wall COMFLAGS=-g -Os -pedantic -Wall
LIBNAME = opencm3_stm32f4 #LIBNAME = opencm3_stm32f4
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 #FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) #ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS)
DEVDEFS = -DSTM32F4 -DSTM32F4CCM -DSTM32F405RG -D_ROM=1008K -D_RAM=128K -D_CCM=64K -D_CCM_OFF=0x10000000 -D_ROM_OFF=0x08004000 -D_RAM_OFF=0x20000000 #DEVDEFS = -DSTM32F4 -DSTM32F4CCM -DSTM32F405RG -D_ROM=1008K -D_RAM=128K -D_CCM=64K -D_CCM_OFF=0x10000000 -D_ROM_OFF=0x08004000 -D_RAM_OFF=0x20000000 -DBOOTLOADER
#LDSCRIPT = linker.ld
DEVICE = STM32F405RG
CFLAGS=$(COMFLAGS) $(DEVDEFS) -std=c99 -D_POSIX_C_SOURCE=200809L CFLAGS=$(COMFLAGS) $(DEVDEFS) -std=c99 -D_POSIX_C_SOURCE=200809L
CXXFLAGS=$(COMFLAGS) -std=c++17 CXXFLAGS=$(COMFLAGS) -std=c++17
LDSCRIPT = linker.ld
OBJS = usb.o adc.o ringbuffer.o uart.o buttons.o printf.o encoder.o OBJS = usb.o adc.o ringbuffer.o uart.o buttons.o printf.o encoder.o
BINARY ?= main BINARY ?= main