component.mk 859 B

123456789101112131415161718192021222324252627282930
  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. ifndef CONFIG_IDF_ENV_FPGA
  15. COMPONENT_OBJEXCLUDE += fpga_overrides.o
  16. endif
  17. # Force linking UBSAN hooks. If UBSAN is not enabled, the hooks will ultimately be removed
  18. # due to -ffunction-sections -Wl,--gc-sections options.
  19. COMPONENT_ADD_LDFLAGS += -u __ubsan_include
  20. include $(COMPONENT_PATH)/port/soc/$(SOC_NAME)/component.mk
  21. # disable stack protection in files which are involved in initialization of that feature
  22. startup.o stack_check.o: CFLAGS := $(filter-out -fstack-protector%, $(CFLAGS))
  23. endif