Files
blozi-etag/Firmware/make/boot.mk
2021-12-02 20:07:54 +01:00

41 lines
1.2 KiB
Makefile

################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
OUT_DIR += /boot/8251 /boot/8253 /boot/8258
# OBJS += \
# $(OUT_PATH)/boot/8251/cstartup_8251.o \
# $(OUT_PATH)/boot/8251/cstartup_8251_RET_16K.o \
# $(OUT_PATH)/boot/8251/cstartup_8251_RET_32K.o
# OBJS += \
# $(OUT_PATH)/boot/8253/cstartup_8253.o \
# $(OUT_PATH)/boot/8253/cstartup_8253_RET_16K.o \
# $(OUT_PATH)/boot/8253/cstartup_8253_RET_32K.o
ifeq ($(RETENTION_RAM_SIZE), 32KB)
BOOT_FLAG := -DMCU_STARTUP_8258_RET_32K
else
BOOT_FLAG := -DMCU_STARTUP_8258_RET_16K
endif
ifeq ($(USE_FREE_RTOS), 1)
BOOT_FLAG += -DUSE_FREE_RTOS
endif
OBJS += \
$(OUT_PATH)/boot/8258/cstartup_8258.o \
$(OUT_PATH)/boot/8258/cstartup_8258_RET_16K.o \
$(OUT_PATH)/boot/8258/cstartup_8258_RET_32K.o
OBJS += $(OUT_PATH)/boot/div_mod.o
# Each subdirectory must supply rules for building sources it contributes
$(OUT_PATH)/boot/%.o: $(TEL_PATH)/components/boot/%.S
@echo 'Building file: $<'
@$(TC32_COMPILER_PATH)tc32-elf-gcc $(BOOT_FLAG) -c -o"$@" "$<"