nrf5: Update Makefile to add c-implementation of startup scripts instead of the .s files.

This commit is contained in:
Glenn Ruben Bakke 2017-05-21 23:06:34 +02:00 committed by glennrub
parent d7145339aa
commit d580fa4088

View File

@ -166,20 +166,14 @@ DRIVERS_SRC_C += $(addprefix modules/,\
ble/modble.c \
)
#ifeq ($(SD), )
SRC_C += \
device/$(MCU_VARIANT)/system_$(MCU_SUB_VARIANT).c \
SRC_S = \
device/$(MCU_VARIANT)/startup_$(MCU_VARIANT).s \
#endif
device/$(MCU_VARIANT)/startup_$(MCU_SUB_VARIANT).c \
FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py')
FROZEN_MPY_MPY_FILES := $(addprefix $(BUILD)/,$(FROZEN_MPY_PY_FILES:.py=.mpy))
OBJ += $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(SRC_S:.s=.o))
OBJ += $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_LIB:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_HAL:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(DRIVERS_SRC_C:.c=.o))