aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-02 17:02:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-02 17:02:12 +0000
commita0d4cada0208344d7c3d95851718a30cf099e2a5 (patch)
tree0b50c15d2463e01f4cd4d9ca8769aee7ba8108a0 /testhal
parent69f211ae2c3f7a42d65e9f3bdb4e192016a53d94 (diff)
downloadChibiOS-a0d4cada0208344d7c3d95851718a30cf099e2a5.tar.gz
ChibiOS-a0d4cada0208344d7c3d95851718a30cf099e2a5.tar.bz2
ChibiOS-a0d4cada0208344d7c3d95851718a30cf099e2a5.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7463 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/common/testbuild/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/testhal/common/testbuild/Makefile b/testhal/common/testbuild/Makefile
index d92412e26..274ff455d 100644
--- a/testhal/common/testbuild/Makefile
+++ b/testhal/common/testbuild/Makefile
@@ -86,10 +86,13 @@ include $(CHIBIOS)/os/hal/templates/platform.mk
include $(CHIBIOS)/os/hal/templates/osal/osal.mk
# Define linker script file here
+PORTLD = ${CHIBIOS}/os/common/ports/ARMCMx/compilers/GCC/ld
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
+PORTSRC = $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/crt0.c \
+ $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/vectors.c
CSRC = $(PORTSRC) \
$(KERNSRC) \
$(TESTSRC) \
@@ -126,6 +129,9 @@ TCPPSRC =
# List ASM source files here
ASMSRC = $(PORTASM)
+PORTINC = ${CHIBIOS}/os/ext/CMSIS/include \
+ ${CHIBIOS}/os/ext/CMSIS/ST \
+ ${CHIBIOS}/os/common/ports/ARMCMx/devices/STM32F4xx
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
$(HALINC) $(OSALINC) $(PLATFORMINC) $(BOARDINC) \
$(CHIBIOS)/os/various
@@ -178,7 +184,7 @@ CPPWARN = -Wall -Wextra
#
# List all user C define here, like -D_DEBUG=1
-UDEFS =
+UDEFS = -DSTM32F407xx
# Define ASM defines here
UADEFS =