summaryrefslogtreecommitdiff
path: root/scripts/build/libc/newlib.sh
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2013-07-24 22:10:47 (GMT)
committerMax Filippov <jcmvbkbc@gmail.com>2015-11-13 06:08:53 (GMT)
commit81328ed1cbcfb7fbe77552aa9030cddd68ca97b9 (patch)
treef26c8b36cd483fbe77759f1ee3706dd57a6d6c90 /scripts/build/libc/newlib.sh
parent57de8dcf22d5ddddee6a44f87f45f2c279fdb1ac (diff)
xtensa: add support for the configurable Xtensa architecture.
The Xtensa processor architecture is a configurable, extensible, and synthesizable 32-bit RISC processor core. Processor and SOC vendors can select from various processor options and even create customized instructions in addition to a base ISA to tailor the processor for a particular application. Because of the configurability, the build process requires one additional step for gcc, binutils, and gdb to update the default configuration. These configurations are packed into an 'overlay' tar image, and are simply untarred on top of the default configuration during the build. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'scripts/build/libc/newlib.sh')
-rw-r--r--scripts/build/libc/newlib.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index ba3d969..4c395d0 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -38,6 +38,10 @@ do_libc_extract() {
CT_Extract "newlib-${CT_LIBC_VERSION}"
CT_Patch "newlib" "${CT_LIBC_VERSION}"
+
+ if [ -n "${CT_ARCH_XTENSA_CUSTOM_NAME}" ]; then
+ CT_ConfigureXtensa "newlib" "${CT_LIBC_VERSION}"
+ fi
}
do_libc_check_config() {
@@ -48,6 +52,11 @@ do_libc_start_files() {
CT_DoStep INFO "Installing C library headers & start files"
CT_DoExecLog ALL cp -a "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/newlib/libc/include/." \
"${CT_HEADERS_DIR}"
+ if [ "${CT_ARCH_xtensa}" = "y" ]; then
+ CT_DoLog EXTRA "Installing Xtensa headers"
+ CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/newlib/libc/sys/xtensa/include/." \
+ "${CT_HEADERS_DIR}"
+ fi
CT_EndStep
}