soc: intel_s1000_crb: fix XCC build error with newlib

The Newlib in the XCC toolchain for intel_s1000_crb has a few
missing functions which are reentrant versions of the one
defined in lib/libc/newlib/libc-hooks.c. So make these call
the correct functions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2019-11-26 14:19:36 -08:00 committed by Anas Nashif
commit fc7916aeae
2 changed files with 110 additions and 0 deletions

View file

@ -3,3 +3,9 @@
zephyr_library()
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
zephyr_library_sources(soc.c)
if("${ZEPHYR_TOOLCHAIN_VARIANT}" STREQUAL "xcc")
if(CONFIG_NEWLIB_LIBC)
zephyr_library_sources(xcc_newlib_fix.c)
endif()
endif()