mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
#
|
|
# Component Makefile
|
|
#
|
|
COMPONENT_ADD_INCLUDEDIRS += include/espressif include/driver
|
|
COMPONENT_SRCDIRS := driver
|
|
LIBS ?=
|
|
ifndef CONFIG_NO_BLOBS
|
|
LIBS += airkiss cirom crypto espnow gcc hal core minic mirom net80211 \
|
|
phy pp pwm smartconfig ssc wpa wps
|
|
endif
|
|
|
|
#Linker scripts used to link the final application.
|
|
#Warning: These linker scripts are only used when the normal app is compiled; the bootloader
|
|
#specifies its own scripts.
|
|
LINKER_SCRIPTS += $(ESP8266_LINKER_SCRIPTS) eagle.app.v6.common.ld eagle.rom.addr.v6.ld
|
|
|
|
COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/lib \
|
|
$(addprefix -l,$(LIBS)) \
|
|
-L $(COMPONENT_PATH)/ld \
|
|
-Wl,--no-check-sections \
|
|
-u call_user_start \
|
|
$(addprefix -T ,$(LINKER_SCRIPTS))
|
|
|
|
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
|
|
|
|
# final linking of project ELF depends on all binary libraries, and
|
|
# all linker scripts
|
|
COMPONENT_ADD_LINKER_DEPS := $(ALL_LIB_FILES) $(addprefix ld/,$(LINKER_SCRIPTS))
|