mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
d7687ce6fa
When not compiling bootloader, a spinlock will be used for reading or writing I2C internal devices/registers. When compiling for bootloader, no need to use any lock.
19 lines
555 B
Makefile
19 lines
555 B
Makefile
SOC_NAME := $(IDF_TARGET)
|
|
|
|
COMPONENT_SRCDIRS := src src/hal
|
|
COMPONENT_ADD_INCLUDEDIRS :=
|
|
|
|
# Since there can be chip-specific HAL headers which can include the common
|
|
# HAL header via include_next, process the build scripts here first so that
|
|
# include directories appear first in the compile command.
|
|
-include $(COMPONENT_PATH)/src/$(SOC_NAME)/component.mk
|
|
COMPONENT_ADD_INCLUDEDIRS += include
|
|
|
|
-include $(COMPONENT_PATH)/soc/component.mk
|
|
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
|
|
|
ifdef IS_BOOTLOADER_BUILD
|
|
COMPONENT_OBJEXCLUDE += src/regi2c_ctrl.o
|
|
endif
|