aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky2015-11-10 18:57:45 +0200
committerPaul Sokolovsky2015-11-10 18:58:58 +0200
commit73ff0687f2f5331e962a4af0126097e9921db631 (patch)
tree74d585ab25bfc3097f7a4fdad22e1ae54bb2c06b
parentb1dbbd32ebcdafd046e8d69ec29a1565f42765cb (diff)
lib/utils/printf: Move from stmhal/ .
This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
-rw-r--r--cc3200/application.mk2
-rw-r--r--cc3200/bootmgr/bootloader.mk7
-rw-r--r--esp8266/Makefile2
-rw-r--r--lib/utils/printf.c (renamed from stmhal/printf.c)0
-rw-r--r--minimal/Makefile2
-rw-r--r--stmhal/Makefile2
-rw-r--r--teensy/Makefile2
7 files changed, 7 insertions, 10 deletions
diff --git a/cc3200/application.mk b/cc3200/application.mk
index 36d8e4090..5b81f7228 100644
--- a/cc3200/application.mk
+++ b/cc3200/application.mk
@@ -152,6 +152,7 @@ APP_LIB_SRC_C = $(addprefix lib/,\
netutils/netutils.c \
timeutils/timeutils.c \
utils/pyexec.c \
+ utils/printf.c \
)
APP_STM_SRC_C = $(addprefix stmhal/,\
@@ -162,7 +163,6 @@ APP_STM_SRC_C = $(addprefix stmhal/,\
irq.c \
lexerfatfs.c \
moduselect.c \
- printf.c \
pybstdio.c \
)
diff --git a/cc3200/bootmgr/bootloader.mk b/cc3200/bootmgr/bootloader.mk
index a97f888ed..ee5236913 100644
--- a/cc3200/bootmgr/bootloader.mk
+++ b/cc3200/bootmgr/bootloader.mk
@@ -65,16 +65,13 @@ BOOT_PY_SRC_C = $(addprefix py/,\
mpprint.c \
)
-BOOT_STM_SRC_C = $(addprefix stmhal/,\
- printf.c \
- )
-
BOOT_LIB_SRC_C = $(addprefix lib/,\
libc/string0.c \
+ utils/printf.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_MAIN_SRC_C:.c=.o) $(BOOT_MAIN_SRC_S:.s=.o) $(BOOT_PY_SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(BOOT_LIB_SRC_C:.c=.o))
# Add the linker script
diff --git a/esp8266/Makefile b/esp8266/Makefile
index d930a2555..016212315 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -67,7 +67,6 @@ SRC_C = \
$(BUILD)/frozen.c \
STM_SRC_C = $(addprefix stmhal/,\
- printf.c \
pybstdio.c \
)
@@ -77,6 +76,7 @@ LIB_SRC_C = $(addprefix lib/,\
netutils/netutils.c \
timeutils/timeutils.c \
utils/pyexec.c \
+ utils/printf.c \
)
SRC_S = \
diff --git a/stmhal/printf.c b/lib/utils/printf.c
index 611ad2df4..611ad2df4 100644
--- a/stmhal/printf.c
+++ b/lib/utils/printf.c
diff --git a/minimal/Makefile b/minimal/Makefile
index 57dc84ec8..f6e0ef14c 100644
--- a/minimal/Makefile
+++ b/minimal/Makefile
@@ -44,7 +44,7 @@ SRC_C = \
main.c \
uart_core.c \
uart_extra.c \
- stmhal/printf.c \
+ lib/utils/printf.c \
lib/utils/pyexec.c \
lib/libc/string0.c \
lib/mp-readline/readline.c \
diff --git a/stmhal/Makefile b/stmhal/Makefile
index ab1c345af..de41d9261 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -104,6 +104,7 @@ SRC_LIB = $(addprefix lib/,\
netutils/netutils.c \
timeutils/timeutils.c \
utils/pyexec.c \
+ utils/printf.c \
)
SRC_C = \
@@ -130,7 +131,6 @@ SRC_C = \
uart.c \
can.c \
usb.c \
- printf.c \
gccollect.c \
pybstdio.c \
help.c \
diff --git a/teensy/Makefile b/teensy/Makefile
index b458485ce..c18263180 100644
--- a/teensy/Makefile
+++ b/teensy/Makefile
@@ -98,7 +98,6 @@ STM_SRC_C = $(addprefix stmhal/,\
irq.c \
pin.c \
pin_named_pins.c \
- printf.c \
pybstdio.c \
)
@@ -110,6 +109,7 @@ LIB_SRC_C = $(addprefix lib/,\
libc/string0.c \
mp-readline/readline.c \
utils/pyexec.c \
+ utils/printf.c \
)
SRC_TEENSY = $(addprefix core/,\