summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-08-13 10:21:15 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-08-13 10:21:15 +0200
commitd834666be527c6b59d6e137825b4d13ec7aedab1 (patch)
tree1877299cb31a8294a30b8580784d82cf4056f5dd /src
parent531e1e0e57be542a63b6793611d33ca89a9ecab9 (diff)
GitLab CI: Add build tests for stm32f446re-nucleo
Diffstat (limited to 'src')
-rw-r--r--src/arch/stm32f446re-nucleo/Makefile.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/stm32f446re-nucleo/Makefile.inc b/src/arch/stm32f446re-nucleo/Makefile.inc
index 31d6015..22115f7 100644
--- a/src/arch/stm32f446re-nucleo/Makefile.inc
+++ b/src/arch/stm32f446re-nucleo/Makefile.inc
@@ -76,10 +76,11 @@ OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} ${ASM_TARGETS:.S=.o}
.s.o:
${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} -c -o $@ ${@:.o=.S}
-# deliberately no ${MAKE} here -- multipass relies on make -B, but we don't
-# want to re-make libopencm3 all the time
-ext/libopencm3/lib/libopencm3_stm32f4.a: ext/libopencm3/Makefile
+ext/libopencm3/Makefile:
git submodule update --init
+
+ext/libopencm3/lib/libopencm3_stm32f4.a: ext/libopencm3/Makefile
+ find ext/libopencm3 -type f -exec sed -i 's/python$$/python3/' '{}' ';'
${MAKE} -C ext/libopencm3
build/system.elf: ${OBJECTS} ext/libopencm3/lib/libopencm3_stm32f4.a