diff --git a/components/esp8266/component.mk b/components/esp8266/component.mk new file mode 100644 index 00000000..980ccfe8 --- /dev/null +++ b/components/esp8266/component.mk @@ -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))