Merge branch 'feature/add_component_mk_to_esp8266' into 'refactor'

Add component.mk to esp8266

See merge request sdk/ESP8266_RTOS_SDK!31
This commit is contained in:
Wu Jian Gang
2018-04-08 13:36:36 +08:00

View File

@ -0,0 +1,28 @@
#
# 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))