component.mk 641 B

1234567891011121314151617181920212223242526
  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
  12. COMPONENT_PRIV_INCLUDEDIRS := port/include port
  13. COMPONENT_ADD_LDFRAGMENTS += linker.lf
  14. ifndef CONFIG_IDF_ENV_FPGA
  15. COMPONENT_OBJEXCLUDE += fpga_overrides.o
  16. endif
  17. include $(COMPONENT_PATH)/port/soc/$(SOC_NAME)/component.mk
  18. # disable stack protection in files which are involved in initialization of that feature
  19. startup.o stack_check.o: CFLAGS := $(filter-out -fstack-protector%, $(CFLAGS))
  20. endif