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:
parent
90dc1e5d7a
commit
fc7916aeae
2 changed files with 110 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue