component.mk 888 B

12345678910111213141516171819202122232425262728293031
  1. ifdef IS_BOOTLOADER_BUILD
  2. ifndef CONFIG_IDF_ENV_FPGA
  3. COMPONENT_CONFIG_ONLY := 1
  4. else
  5. COMPONENT_SRCDIRS := .
  6. COMPONENT_OBJS += fpga_overrides.o
  7. endif
  8. else
  9. SOC_NAME := $(IDF_TARGET)
  10. COMPONENT_SRCDIRS := .
  11. COMPONENT_ADD_INCLUDEDIRS := include port/public_compat
  12. COMPONENT_PRIV_INCLUDEDIRS := port/include port
  13. COMPONENT_ADD_LDFRAGMENTS += linker.lf app.lf
  14. COMPONENT_DEPENDS := esp_phy
  15. ifndef CONFIG_IDF_ENV_FPGA
  16. COMPONENT_OBJEXCLUDE += fpga_overrides.o
  17. endif
  18. # Force linking UBSAN hooks. If UBSAN is not enabled, the hooks will ultimately be removed
  19. # due to -ffunction-sections -Wl,--gc-sections options.
  20. COMPONENT_ADD_LDFLAGS += -u __ubsan_include
  21. include $(COMPONENT_PATH)/port/soc/$(SOC_NAME)/component.mk
  22. # disable stack protection in files which are involved in initialization of that feature
  23. startup.o stack_check.o: CFLAGS := $(filter-out -fstack-protector%, $(CFLAGS))
  24. endif