@@ -54,6 +54,10 @@ INC += -I../../components/badge
54
54
INC += -I../../components/ugfx
55
55
INC += -I../../components/graph
56
56
INC += -I../../components/sha2017
57
+ INC += -I../../components/bpp-recv
58
+ INC += -I../../components/bpp-if
59
+ INC += -I../../components/ed25519/include
60
+ INC += -I../../components/redundancy
57
61
INC += -I../../main
58
62
INC += -I../../ugfx/src/gdisp/mcufont
59
63
INC += -I../../ugfx
@@ -155,6 +159,7 @@ SRC_C = \
155
159
machine_hw_spi.c \
156
160
mpthreadport.c \
157
161
esprtcmem.c \
162
+ espdeepsleep.c \
158
163
ugfx_containers.c \
159
164
ugfx_widgets.c \
160
165
ugfx_styles.c \
@@ -661,6 +666,15 @@ BADGE_COMPONENTS_O = $(addprefix $(BADGE)/components/,\
661
666
sha2017/sha2017_ota.o \
662
667
)
663
668
669
+ # Re-use libraries built while building non-micro-python project. Because kindly
670
+ # fuck off with your ignore-all-esp-idf-and-make-me-state-every-single-thing-again-conventions
671
+ # micropython makefile crap. Yes, I'm salty about that.
672
+ BADGE_LIBS += ../../build/ed25519/libed25519.a
673
+ BADGE_LIBS += ../../build/bpp-if/libbpp-if.a
674
+ BADGE_LIBS += ../../build/bpp-recv/libbpp-recv.a
675
+ BADGE_LIBS += ../../build/redundancy/libredundancy.a
676
+
677
+
664
678
OBJ_ESPIDF += $(addprefix $(BUILD ) /, $(BADGE_COMPONENTS_O ) )
665
679
666
680
# ###############################################################################
@@ -698,6 +712,7 @@ APP_LD_ARGS += -L$(dir $(LIBSTDCXX_FILE_NAME)) -lstdc++
698
712
APP_LD_ARGS += $(ESPCOMP ) /newlib/lib/libc.a
699
713
APP_LD_ARGS += $(ESPCOMP ) /newlib/lib/libm.a
700
714
APP_LD_ARGS += $(ESPCOMP ) /esp32/libhal.a
715
+ APP_LD_ARGS += $(BADGE_LIBS )
701
716
APP_LD_ARGS += -L$(ESPCOMP ) /esp32/lib -lcore -lnet80211 -lphy -lrtc -lpp -lwpa -lsmartconfig -lcoexist
702
717
APP_LD_ARGS += $(OBJ )
703
718
APP_LD_ARGS += --end-group
0 commit comments