|
| 1 | +LIBNAME := RadioLib |
| 2 | + |
| 3 | +TOCK_USERLAND_BASE_DIR ?= .. |
| 4 | + |
| 5 | +$(LIBNAME)_DIR := $(TOCK_USERLAND_BASE_DIR)/$(LIBNAME) |
| 6 | + |
| 7 | +# We ideally want this: |
| 8 | +# $(LIBNAME)_SRCS := \ |
| 9 | +# $($(LIBNAME)_DIR)/$(LIBNAME)/src/Module.cpp \ |
| 10 | +# $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/*.cpp) \ |
| 11 | +# $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/*/*.cpp) \ |
| 12 | +# $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/*/*/*.cpp) |
| 13 | +# |
| 14 | +# But due to this in the GCC arm binary in the CI: |
| 15 | +# |
| 16 | +# ``` |
| 17 | +# (insn 179 178 46 8 (set (reg:SI 3 r3 [168]) |
| 18 | +# (mem/u/c:SI (plus:SI (reg:SI 12 ip [169]) |
| 19 | +# (unspec:SI [ |
| 20 | +# (symbol_ref/u:SI ("*.LC1") [flags 0x2]) |
| 21 | +# ] UNSPEC_PIC_SYM)) [0 S4 A32])) "../../../RadioLib/src/modules/LR11x0/LR11x0.cpp":638:16 929 {*thumb1_movsi_insn} |
| 22 | +# (expr_list:REG_EQUAL (symbol_ref/u:SI ("*.LC1") [flags 0x2]) |
| 23 | +# (nil))) |
| 24 | +# during RTL pass: postreload |
| 25 | +# ../../../RadioLib/src/modules/LR11x0/LR11x0.cpp:650:1: internal compiler error: in extract_constrain_insn, at recog.c:2195 |
| 26 | +# ``` |
| 27 | +# |
| 28 | +# we need to drop LR11x0 |
| 29 | +$(LIBNAME)_SRCS := \ |
| 30 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/*.cpp) \ |
| 31 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/utils/*.cpp) \ |
| 32 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/modules/C*/.cpp) \ |
| 33 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/modules/LL*/*.cpp) \ |
| 34 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/modules/RF*/*.cpp) \ |
| 35 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/modules/S*/*.cpp) \ |
| 36 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/modules/n*/*.cpp) \ |
| 37 | + $(wildcard $($(LIBNAME)_DIR)/$(LIBNAME)/src/protocols/*/*.cpp) \ |
| 38 | + |
| 39 | +include $(TOCK_USERLAND_BASE_DIR)/TockLibrary.mk |
0 commit comments