2016-08-17 23:08:22 +08:00
|
|
|
|
2017-09-05 15:50:31 +10:00
|
|
|
ifdef CONFIG_SPIRAM_CACHE_WORKAROUND
|
2017-07-20 16:26:35 +08:00
|
|
|
LIBC_PATH := $(COMPONENT_PATH)/lib/libc-psram-workaround.a
|
|
|
|
LIBM_PATH := $(COMPONENT_PATH)/lib/libm-psram-workaround.a
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2017-09-05 15:50:31 +10:00
|
|
|
ifdef CONFIG_NEWLIB_NANO_FORMAT
|
2016-11-07 18:43:29 +08:00
|
|
|
LIBC_PATH := $(COMPONENT_PATH)/lib/libc_nano.a
|
|
|
|
else
|
|
|
|
LIBC_PATH := $(COMPONENT_PATH)/lib/libc.a
|
2017-09-05 15:50:31 +10:00
|
|
|
endif # CONFIG_NEWLIB_NANO_FORMAT
|
2016-11-07 18:43:29 +08:00
|
|
|
|
2016-12-12 15:54:30 +11:00
|
|
|
LIBM_PATH := $(COMPONENT_PATH)/lib/libm.a
|
|
|
|
|
2016-12-03 22:11:22 +00:00
|
|
|
endif # CONFIG_SPIRAM_CACHE_WORKAROUND
|
2017-07-20 16:26:35 +08:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS := $(LIBC_PATH) $(LIBM_PATH) -lnewlib
|
2016-12-12 15:54:30 +11:00
|
|
|
|
|
|
|
COMPONENT_ADD_LINKER_DEPS := $(LIBC_PATH) $(LIBM_PATH)
|
2016-08-17 23:08:22 +08:00
|
|
|
|
2017-07-12 12:57:44 +08:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS := platform_include include
|