@@ -59,19 +59,6 @@ SRC_C += bindings/videocore/__init__.c \
5959
6060SRC_S = peripherals/broadcom/boot$(SUFFIX ) .s
6161
62- SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL ) ) \
63- $(addprefix shared-bindings/, $(SRC_BINDINGS_ENUMS ) ) \
64- $(addprefix common-hal/, $(SRC_COMMON_HAL ) )
65-
66- SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE ) ) \
67- $(addprefix shared-module/, $(SRC_SHARED_MODULE ) ) \
68- $(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL ) )
69-
70- # There may be duplicates between SRC_COMMON_HAL_EXPANDED and SRC_SHARED_MODULE_EXPANDED,
71- # because a few modules have files both in common-hal/ and shared-modules/.
72- # Doing a $(sort ...) removes duplicates as part of sorting.
73- SRC_COMMON_HAL_SHARED_MODULE_EXPANDED = $(sort $(SRC_COMMON_HAL_EXPANDED ) $(SRC_SHARED_MODULE_EXPANDED ) )
74-
7562OBJ = $(PY_O ) $(SUPERVISOR_O ) $(addprefix $(BUILD ) /, $(SRC_C:.c=.o ) )
7663OBJ += $(addprefix $(BUILD ) /, $(SRC_COMMON_HAL_SHARED_MODULE_EXPANDED:.c=.o ) )
7764 ifeq ($(INTERNAL_LIBM),1)
@@ -112,7 +99,7 @@ CFLAGS += $(INC) -Wall -Werror -std=gnu11 $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $
11299
113100$(BUILD ) /lib/tlsf/tlsf.o : CFLAGS += -Wno-cast-align
114101
115- SRC_QSTR += $(SRC_C ) $(SRC_SUPERVISOR ) $(SRC_COMMON_HAL_EXPANDED ) $( SRC_SHARED_MODULE_EXPANDED ) $(SRC_CIRCUITPY_COMMON )
102+ SRC_QSTR += $(SRC_C ) $(SRC_SUPERVISOR ) $(SRC_COMMON_HAL_SHARED_MODULE_EXPANDED ) $(SRC_CIRCUITPY_COMMON )
116103
117104LDFLAGS += $(CFLAGS ) -T peripherals/broadcom/link$(SUFFIX ) .ld -Wl,--gc-sections -Wl,-Map=$@ .map # -Wl,--cref
118105
0 commit comments