summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/bootmgr
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-04-19 20:54:43 +0200
committerDaniel Campora <daniel@wipy.io>2015-04-19 20:59:10 +0200
commitdf5d9c77f4a75ee74b4bbac68fd21e601f8b0985 (patch)
tree53bd8c94ef2a734cc5520fb50213007f0e094697 /cc3200/bootmgr
parentd8475092d16ede927ab85a105bfa0d436544e500 (diff)
downloadmicropython-df5d9c77f4a75ee74b4bbac68fd21e601f8b0985.tar.gz
micropython-df5d9c77f4a75ee74b4bbac68fd21e601f8b0985.zip
cc3200: Fix bootloader and modpyb after printf overhaul.
The bootloader needs string0.c because of memset, memcpy and others, without string0.c it magically links, but calling any of those functions results in a hard fault. In debug mode, modpyb needs printf, and including stdio.h leads to conflicts due to the redefinitions made in the simplelink drivers.
Diffstat (limited to 'cc3200/bootmgr')
-rw-r--r--cc3200/bootmgr/bootloader.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc3200/bootmgr/bootloader.mk b/cc3200/bootmgr/bootloader.mk
index a74579d1cb..da02a02d07 100644
--- a/cc3200/bootmgr/bootloader.mk
+++ b/cc3200/bootmgr/bootloader.mk
@@ -67,8 +67,13 @@ BOOT_STM_SRC_C = $(addprefix stmhal/,\
printf.c \
)
+BOOT_LIB_SRC_C = $(addprefix lib/,\
+ libc/string0.c \
+ )
+
OBJ = $(addprefix $(BUILD)/, $(BOOT_HAL_SRC_C:.c=.o) $(BOOT_SL_SRC_C:.c=.o) $(BOOT_CC3100_SRC_C:.c=.o) $(BOOT_UTIL_SRC_C:.c=.o) $(BOOT_MISC_SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(BOOT_MAIN_SRC_C:.c=.o) $(BOOT_MAIN_SRC_S:.s=.o) $(BOOT_PY_SRC_C:.c=.o) $(BOOT_STM_SRC_C:.c=.o))
+OBJ += $(addprefix $(BUILD)/, $(BOOT_LIB_SRC_C:.c=.o))
# Add the linker script
LINKER_SCRIPT = bootmgr/bootmgr.lds