diff options
author | Alexey Neyman <stilor@att.net> | 2018-11-23 22:14:07 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-12-01 10:10:51 -0800 |
commit | 40d5bf64408a0e103f8149f941ea50fbbb11dc91 (patch) | |
tree | 67532a4e3a2498ab5663bb400649ec847ced6ba7 /scripts/build/libc/newlib.sh | |
parent | 172308cb1be5b23c816c19d0b9c84ba4910cbe80 (diff) | |
download | crosstool-ng-40d5bf64408a0e103f8149f941ea50fbbb11dc91.tar.gz crosstool-ng-40d5bf64408a0e103f8149f941ea50fbbb11dc91.tar.bz2 crosstool-ng-40d5bf64408a0e103f8149f941ea50fbbb11dc91.zip |
Add moxiebox as a choice for libc
This required some rework of the libc selection, as moxiebox is a layer on
top of another libc - newlib.
Also, moxiebox'es host VM (`sandbox`) needs a libcrypto on the host. We will
not have it if we're cross-compiling a canadian cross. Fortunately, all moxiebox
needs from libcrypto is SHA256, and it already includes a standalone implementation
of SHA256 in its runtime. Provide a little wrapper that allows moxiebox use
that implementation for the host binary, too.
Also, automate collecting/printing the list of all packages in a given category
(e.g. LIBC or COMP_TOOLS), generate a list of all Kconfig symbols for a given
category.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/libc/newlib.sh')
-rw-r--r-- | scripts/build/libc/newlib.sh | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 6449d68a..69d2b464 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -5,15 +5,8 @@ # Edited by Martin Lund <mgl@doredevelopment.dk> # -do_libc_get() { - CT_Fetch NEWLIB -} - -do_libc_extract() { - CT_ExtractPatch NEWLIB -} - -do_libc_start_files() { +newlib_start_files() +{ CT_DoStep INFO "Installing C library headers & start files" CT_DoExecLog ALL cp -a "${CT_SRC_DIR}/newlib/newlib/libc/include/." \ "${CT_HEADERS_DIR}" @@ -25,14 +18,14 @@ do_libc_start_files() { CT_EndStep } -do_libc() { +newlib_main() +{ local -a newlib_opts local cflags_for_target CT_DoStep INFO "Installing C library" - mkdir -p "${CT_BUILD_DIR}/build-libc" - cd "${CT_BUILD_DIR}/build-libc" + CT_mkdir_pushd "${CT_BUILD_DIR}/build-libc" CT_DoLog EXTRA "Configuring C library" @@ -135,9 +128,6 @@ ENABLE_TARGET_OPTSPACE:target-optspace "${CT_PREFIX_DIR}/share/doc/newlib" fi + CT_Popd CT_EndStep } - -do_libc_post_cc() { - : -} |