aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/common/testbuild/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/common/testbuild/Makefile')
-rw-r--r--testhal/common/testbuild/Makefile25
1 files changed, 12 insertions, 13 deletions
diff --git a/testhal/common/testbuild/Makefile b/testhal/common/testbuild/Makefile
index 280c5f3e3..ce5346949 100644
--- a/testhal/common/testbuild/Makefile
+++ b/testhal/common/testbuild/Makefile
@@ -23,6 +23,16 @@ ifeq ($(USE_LINK_GC),)
USE_LINK_GC = yes
endif
+# Linker extra options here.
+ifeq ($(USE_LDOPT),)
+ USE_LDOPT =
+endif
+
+# Enable this if you want link time optimizations (LTO)
+ifeq ($(USE_LTO),)
+ USE_LTO = yes
+endif
+
# If enabled, this option allows to compile the application in THUMB mode.
ifeq ($(USE_THUMB),)
USE_THUMB = yes
@@ -47,11 +57,6 @@ ifeq ($(USE_FPU),)
USE_FPU = no
endif
-# Enable this if you really want to use the STM FWLib.
-ifeq ($(USE_FWLIB),)
- USE_FWLIB = no
-endif
-
#
# Architecture or project specific options
##############################################################################
@@ -70,7 +75,7 @@ include $(CHIBIOS)/os/hal/templates/platform.mk
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
include $(CHIBIOS)/os/kernel/kernel.mk
-#include $(CHIBIOS)/test/test.mk
+#include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
@@ -139,6 +144,7 @@ LD = $(TRGT)gcc
CP = $(TRGT)objcopy
AS = $(TRGT)gcc -x assembler-with-cpp
OD = $(TRGT)objdump
+SZ = $(TRGT)size
HEX = $(CP) -O ihex
BIN = $(CP) -O binary
@@ -211,11 +217,4 @@ else
DDEFS += -DCORTEX_USE_FPU=FALSE
endif
-ifeq ($(USE_FWLIB),yes)
- include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
- CSRC += $(STM32SRC)
- INCDIR += $(STM32INC)
- USE_OPT += -DUSE_STDPERIPH_DRIVER
-endif
-
include $(CHIBIOS)/os/ports/GCC/ARMCMx/rules.mk