aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/rules.mk
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-26 18:03:40 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-26 18:03:40 -0400
commitfbbf35ee079d1c979909981c95132ba7eaca7215 (patch)
treed6db91c34a717536510b2c13e2d984133ee452ad /wirish/rules.mk
parent1700847e991e90831ec691045464943b249abc89 (diff)
downloadlibrambutan-fbbf35ee079d1c979909981c95132ba7eaca7215.tar.gz
librambutan-fbbf35ee079d1c979909981c95132ba7eaca7215.zip
Bring back and fix up util.c functionality.
Rip out the existing nonportable pieces, and shove them under wirish/stm32f1, using weak symbols so users who only want libmaple proper don't end up with build errors. Add stubbed-out (and only partially functional) definitions for F2 targets under wirish/stm32f2. The behavior on F103 targets is the same as it was before (though the assertion framework has always been broken and badly needs replacement, that awaits another commit). We additionally now skip re-enabling USB on F1 targets without USB, to make things work on value line MCUs. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/rules.mk')
-rw-r--r--wirish/rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/wirish/rules.mk b/wirish/rules.mk
index 5138c82..f895213 100644
--- a/wirish/rules.mk
+++ b/wirish/rules.mk
@@ -21,6 +21,7 @@ CFLAGS_$(d) := $(LIBMAPLE_INCLUDES) $(WIRISH_INCLUDES) -I$(d)
sSRCS_$(d) := start.S
cSRCS_$(d) := start_c.c
cSRCS_$(d) += syscalls.c
+cSRCS_$(d) += $(MCU_SERIES)/util_hooks.c
cppSRCS_$(d) := boards.cpp
cppSRCS_$(d) += cxxabi-compat.cpp
cppSRCS_$(d) += ext_interrupts.cpp