File tree Expand file tree Collapse file tree 10 files changed +16
-356
lines changed Expand file tree Collapse file tree 10 files changed +16
-356
lines changed Original file line number Diff line number Diff line change 16
16
[submodule "lib/lufa "]
17
17
path = lib/lufa
18
18
url = https://github.com/qmk/lufa
19
+ [submodule "lib/printf "]
20
+ path = lib/printf
21
+ url = https://github.com/mpaland/printf.git
Original file line number Diff line number Diff line change @@ -567,6 +567,7 @@ ifndef SKIP_GIT
567
567
if [ ! -e lib/chibios-contrib ]; then git submodule sync lib/chibios-contrib && git submodule update --depth 50 --init lib/chibios-contrib; fi
568
568
if [ ! -e lib/ugfx ]; then git submodule sync lib/ugfx && git submodule update --depth 50 --init lib/ugfx; fi
569
569
if [ ! -e lib/lufa ]; then git submodule sync lib/lufa && git submodule update --depth 50 --init lib/lufa; fi
570
+ if [ ! -e lib/printf ]; then git submodule sync lib/printf && git submodule update --depth 50 --init lib/printf; fi
570
571
git submodule status --recursive 2>/dev/null | \
571
572
while IFS= read -r x; do \
572
573
case "$$x" in \
Original file line number Diff line number Diff line change
1
+ PRINTF_PATH = $(LIB_PATH ) /printf
2
+
1
3
COMMON_DIR = common
2
4
PLATFORM_COMMON_DIR = $(COMMON_DIR ) /$(PLATFORM_KEY )
3
5
@@ -21,7 +23,12 @@ TMK_COMMON_SRC += $(COMMON_DIR)/host.c \
21
23
ifeq ($(PLATFORM ) ,AVR)
22
24
TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR ) /xprintf.S
23
25
else ifeq ($(PLATFORM),CHIBIOS)
24
- TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR ) /printf.c
26
+ TMK_COMMON_SRC += $(PRINTF_PATH ) /printf.c
27
+ TMK_COMMON_DEFS += -DPRINTF_DISABLE_SUPPORT_FLOAT
28
+ TMK_COMMON_DEFS += -DPRINTF_DISABLE_SUPPORT_EXPONENTIAL
29
+ TMK_COMMON_DEFS += -DPRINTF_DISABLE_SUPPORT_LONG_LONG
30
+ TMK_COMMON_DEFS += -DPRINTF_DISABLE_SUPPORT_PTRDIFF_T
31
+ VPATH += $(PRINTF_PATH )
25
32
else ifeq ($(PLATFORM),ARM_ATSAM)
26
33
TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR ) /printf.c
27
34
endif
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments