mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 07:14:22 +08:00
put printf float flags in LDFLAGS
This commit is contained in:
@@ -13,7 +13,7 @@ TARGET = ODriveFirmware
|
||||
# debug build?
|
||||
DEBUG = 1
|
||||
# optimization
|
||||
OPT = -O0 -ffast-math -u _printf_float -u _scanf_float
|
||||
OPT = -Og -ffast-math
|
||||
|
||||
#######################################
|
||||
# pathes
|
||||
@@ -139,7 +139,7 @@ LDSCRIPT = STM32F405RGTx_FLASH.ld
|
||||
# libraries
|
||||
LIBS = -lc -lm -lnosys -larm_cortexM4lf_math
|
||||
LIBDIR = -LDrivers/CMSIS/Lib
|
||||
LDFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -specs=nosys.specs -specs=nano.specs $(OPT) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections
|
||||
LDFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -specs=nosys.specs -specs=nano.specs -u _printf_float -u _scanf_float $(OPT) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections
|
||||
|
||||
# default action: build all
|
||||
all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
|
||||
|
||||
Reference in New Issue
Block a user