|
1 | 1 | LIBNAME := RadioLib
|
2 | 2 |
|
| 3 | +TOCK_USERLAND_BASE_DIR ?= ../ |
| 4 | + |
3 | 5 | $(LIBNAME)_DIR := $(TOCK_USERLAND_BASE_DIR)/libradio/$(LIBNAME)
|
4 | 6 |
|
| 7 | +# We ideally want this: |
| 8 | +# $(LIBNAME)_SRCS := \ |
| 9 | +# $($(LIBNAME)_DIR)/src/Module.cpp \ |
| 10 | +# $(wildcard $($(LIBNAME)_DIR)/src/*.cpp) \ |
| 11 | +# $(wildcard $($(LIBNAME)_DIR)/src/*/*.cpp) \ |
| 12 | +# $(wildcard $($(LIBNAME)_DIR)/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 |
5 | 29 | $(LIBNAME)_SRCS := \
|
6 | 30 | $(wildcard $($(LIBNAME)_DIR)/src/*.cpp) \
|
7 |
| - $(wildcard $($(LIBNAME)_DIR)/src/*/*.cpp) \ |
8 |
| - $(wildcard $($(LIBNAME)_DIR)/src/*/*/*.cpp) |
| 31 | + $(wildcard $($(LIBNAME)_DIR)/src/utils/*.cpp) \ |
| 32 | + $(wildcard $($(LIBNAME)_DIR)/src/modules/C*/.cpp) \ |
| 33 | + $(wildcard $($(LIBNAME)_DIR)/src/modules/LL*/*.cpp) \ |
| 34 | + $(wildcard $($(LIBNAME)_DIR)/src/modules/RF*/*.cpp) \ |
| 35 | + $(wildcard $($(LIBNAME)_DIR)/src/modules/S*/*.cpp) \ |
| 36 | + $(wildcard $($(LIBNAME)_DIR)/src/modules/n*/*.cpp) \ |
| 37 | + $(wildcard $($(LIBNAME)_DIR)/src/protocols/*/*.cpp) \ |
9 | 38 |
|
10 | 39 | include $(TOCK_USERLAND_BASE_DIR)/TockLibrary.mk
|
0 commit comments