2021-01-26 00:12:54 -05:00
|
|
|
ifdef IS_BOOTLOADER_BUILD
|
2021-01-20 02:18:55 -05:00
|
|
|
|
|
|
|
ifndef CONFIG_IDF_ENV_FPGA
|
2021-01-26 00:12:54 -05:00
|
|
|
COMPONENT_CONFIG_ONLY := 1
|
2021-01-20 02:18:55 -05:00
|
|
|
else
|
|
|
|
COMPONENT_SRCDIRS := .
|
|
|
|
COMPONENT_OBJS += fpga_overrides.o
|
|
|
|
endif
|
|
|
|
|
2021-01-26 00:12:54 -05:00
|
|
|
else
|
2020-02-02 10:23:16 -05:00
|
|
|
SOC_NAME := $(IDF_TARGET)
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS := .
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
2021-01-26 00:12:54 -05:00
|
|
|
COMPONENT_PRIV_INCLUDEDIRS := port/include port
|
2020-02-02 10:23:16 -05:00
|
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
|
|
|
|
2021-01-20 02:18:55 -05:00
|
|
|
ifndef CONFIG_IDF_ENV_FPGA
|
|
|
|
COMPONENT_OBJEXCLUDE += fpga_overrides.o
|
|
|
|
endif
|
|
|
|
|
2020-10-08 01:18:16 -04:00
|
|
|
include $(COMPONENT_PATH)/port/soc/$(SOC_NAME)/component.mk
|
2020-07-21 06:11:22 -04:00
|
|
|
|
|
|
|
# disable stack protection in files which are involved in initialization of that feature
|
2021-01-25 22:37:25 -05:00
|
|
|
startup.o stack_check.o: CFLAGS := $(filter-out -fstack-protector%, $(CFLAGS))
|
2021-01-26 00:12:54 -05:00
|
|
|
endif
|