diff options
author | Alexey Neyman <stilor@att.net> | 2018-11-24 06:14:07 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-12-01 18:10:51 (GMT) |
commit | 40d5bf64408a0e103f8149f941ea50fbbb11dc91 (patch) | |
tree | 67532a4e3a2498ab5663bb400649ec847ced6ba7 /scripts/build/libc/mingw-w64.sh | |
parent | 172308cb1be5b23c816c19d0b9c84ba4910cbe80 (diff) |
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/mingw-w64.sh')
-rw-r--r-- | scripts/build/libc/mingw-w64.sh | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/scripts/build/libc/mingw-w64.sh b/scripts/build/libc/mingw-w64.sh index 3026b87..6e87073 100644 --- a/scripts/build/libc/mingw-w64.sh +++ b/scripts/build/libc/mingw-w64.sh @@ -1,22 +1,15 @@ # Copyright 2012 Yann Diorcet # Licensed under the GPL v2. See COPYING in the root of this package -do_libc_get() { - CT_Fetch MINGW_W64 -} - -do_libc_extract() { - CT_ExtractPatch MINGW_W64 -} - -do_set_mingw_install_prefix(){ +mingw_w64_set_install_prefix() +{ MINGW_INSTALL_PREFIX=/usr/${CT_TARGET} if [[ ${CT_MINGW_W64_VERSION} == 2* ]]; then MINGW_INSTALL_PREFIX=/usr fi } -do_libc_start_files() { +mingw_w64_start_files() { local -a sdk_opts CT_DoStep INFO "Installing C library headers" @@ -36,7 +29,7 @@ do_libc_start_files() { CT_DoLog EXTRA "Configuring Headers" - do_set_mingw_install_prefix + mingw_w64_set_install_prefix CT_DoExecLog CFG \ ${CONFIG_SHELL} \ "${CT_SRC_DIR}/mingw-w64/mingw-w64-headers/configure" \ @@ -96,7 +89,7 @@ do_mingw_tools() --program-prefix=${CT_TARGET}- \ --prefix="${CT_PREFIX_DIR}" - # mingw-w64 has issues with parallel builds, see do_libc + # mingw-w64 has issues with parallel builds, see mingw_w64_main CT_DoLog EXTRA "Building ${f}" CT_DoExecLog ALL make CT_DoLog EXTRA "Installing ${f}" @@ -154,7 +147,7 @@ do_mingw_pthreads() --build=${CT_BUILD} \ --host=${multi_target} - # mingw-w64 has issues with parallel builds, see do_libc + # mingw-w64 has issues with parallel builds, see mingw_w64_main CT_DoLog EXTRA "Building mingw-w64-winpthreads" CT_DoExecLog ALL make @@ -179,7 +172,7 @@ do_mingw_pthreads() CT_EndStep } -do_libc() +mingw_w64_main() { # Used when iterating over libwinpthread local default_libprefix @@ -192,7 +185,7 @@ do_libc() CT_mkdir_pushd "${CT_BUILD_DIR}/build-mingw-w64-crt" - do_set_mingw_install_prefix + mingw_w64_set_install_prefix CT_DoExecLog CFG \ ${CONFIG_SHELL} \ "${CT_SRC_DIR}/mingw-w64/mingw-w64-crt/configure" \ @@ -228,6 +221,6 @@ do_libc() fi } -do_libc_post_cc() { +mingw_w64_post_cc() { : } |