Skip to content

Commit 73ff068

Browse files
committed
lib/utils/printf: Move from stmhal/ .
This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
1 parent b1dbbd3 commit 73ff068

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

cc3200/application.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ APP_LIB_SRC_C = $(addprefix lib/,\
152152
netutils/netutils.c \
153153
timeutils/timeutils.c \
154154
utils/pyexec.c \
155+
utils/printf.c \
155156
)
156157

157158
APP_STM_SRC_C = $(addprefix stmhal/,\
@@ -162,7 +163,6 @@ APP_STM_SRC_C = $(addprefix stmhal/,\
162163
irq.c \
163164
lexerfatfs.c \
164165
moduselect.c \
165-
printf.c \
166166
pybstdio.c \
167167
)
168168

cc3200/bootmgr/bootloader.mk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,13 @@ BOOT_PY_SRC_C = $(addprefix py/,\
6565
mpprint.c \
6666
)
6767

68-
BOOT_STM_SRC_C = $(addprefix stmhal/,\
69-
printf.c \
70-
)
71-
7268
BOOT_LIB_SRC_C = $(addprefix lib/,\
7369
libc/string0.c \
70+
utils/printf.c \
7471
)
7572

7673
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))
77-
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))
74+
OBJ += $(addprefix $(BUILD)/, $(BOOT_MAIN_SRC_C:.c=.o) $(BOOT_MAIN_SRC_S:.s=.o) $(BOOT_PY_SRC_C:.c=.o))
7875
OBJ += $(addprefix $(BUILD)/, $(BOOT_LIB_SRC_C:.c=.o))
7976

8077
# Add the linker script

esp8266/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ SRC_C = \
6767
$(BUILD)/frozen.c \
6868

6969
STM_SRC_C = $(addprefix stmhal/,\
70-
printf.c \
7170
pybstdio.c \
7271
)
7372

@@ -77,6 +76,7 @@ LIB_SRC_C = $(addprefix lib/,\
7776
netutils/netutils.c \
7877
timeutils/timeutils.c \
7978
utils/pyexec.c \
79+
utils/printf.c \
8080
)
8181

8282
SRC_S = \
File renamed without changes.

minimal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SRC_C = \
4444
main.c \
4545
uart_core.c \
4646
uart_extra.c \
47-
stmhal/printf.c \
47+
lib/utils/printf.c \
4848
lib/utils/pyexec.c \
4949
lib/libc/string0.c \
5050
lib/mp-readline/readline.c \

stmhal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ SRC_LIB = $(addprefix lib/,\
104104
netutils/netutils.c \
105105
timeutils/timeutils.c \
106106
utils/pyexec.c \
107+
utils/printf.c \
107108
)
108109

109110
SRC_C = \
@@ -130,7 +131,6 @@ SRC_C = \
130131
uart.c \
131132
can.c \
132133
usb.c \
133-
printf.c \
134134
gccollect.c \
135135
pybstdio.c \
136136
help.c \

teensy/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ STM_SRC_C = $(addprefix stmhal/,\
9898
irq.c \
9999
pin.c \
100100
pin_named_pins.c \
101-
printf.c \
102101
pybstdio.c \
103102
)
104103

@@ -110,6 +109,7 @@ LIB_SRC_C = $(addprefix lib/,\
110109
libc/string0.c \
111110
mp-readline/readline.c \
112111
utils/pyexec.c \
112+
utils/printf.c \
113113
)
114114

115115
SRC_TEENSY = $(addprefix core/,\

0 commit comments

Comments
 (0)