mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
6061a547e5
* add esp-phy-lib submodule * move libphy.a and phy_init.c from esp_wifi to esp_phy * move librtc.a from esp_wifi to esp_phy * move libbtbb.a from bt to esp_phy * corresponding updates to build system
32 lines
888 B
Makefile
32 lines
888 B
Makefile
ifdef IS_BOOTLOADER_BUILD
|
|
|
|
ifndef CONFIG_IDF_ENV_FPGA
|
|
COMPONENT_CONFIG_ONLY := 1
|
|
else
|
|
COMPONENT_SRCDIRS := .
|
|
COMPONENT_OBJS += fpga_overrides.o
|
|
endif
|
|
|
|
else
|
|
SOC_NAME := $(IDF_TARGET)
|
|
|
|
COMPONENT_SRCDIRS := .
|
|
COMPONENT_ADD_INCLUDEDIRS := include port/public_compat
|
|
COMPONENT_PRIV_INCLUDEDIRS := port/include port
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf app.lf
|
|
COMPONENT_DEPENDS := esp_phy
|
|
|
|
ifndef CONFIG_IDF_ENV_FPGA
|
|
COMPONENT_OBJEXCLUDE += fpga_overrides.o
|
|
endif
|
|
|
|
# Force linking UBSAN hooks. If UBSAN is not enabled, the hooks will ultimately be removed
|
|
# due to -ffunction-sections -Wl,--gc-sections options.
|
|
COMPONENT_ADD_LDFLAGS += -u __ubsan_include
|
|
|
|
include $(COMPONENT_PATH)/port/soc/$(SOC_NAME)/component.mk
|
|
|
|
# disable stack protection in files which are involved in initialization of that feature
|
|
startup.o stack_check.o: CFLAGS := $(filter-out -fstack-protector%, $(CFLAGS))
|
|
endif
|