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/bionic.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/bionic.sh')
-rw-r--r-- | scripts/build/libc/bionic.sh | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/scripts/build/libc/bionic.sh b/scripts/build/libc/bionic.sh index 93dcea0..9f04e61 100644 --- a/scripts/build/libc/bionic.sh +++ b/scripts/build/libc/bionic.sh @@ -2,21 +2,15 @@ # Copyright 2017 Howard Chu # Licensed under the GPL v2. See COPYING in the root of this package -do_libc_get() { - CT_Fetch ANDROID_NDK -} - -do_libc_extract() { - CT_ExtractPatch ANDROID_NDK -} - # Install Unified headers -do_libc_start_files() { +bionic_start_files() +{ CT_DoStep INFO "Installing C library headers" CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/android-ndk/sysroot/usr" "${CT_SYSROOT_DIR}" } -do_libc() { +bionic_main() +{ local arch="${CT_ARCH}" if [ "${CT_ARCH_64}" = "y" ]; then if [ "${CT_ARCH}" = "x86" ]; then @@ -34,8 +28,3 @@ do_libc() { # options isn't completely out of character. CT_EnvModify CT_TARGET_CFLAGS "${CT_TARGET_CFLAGS} -D__ANDROID_API__=${CT_ANDROID_API}" } - -do_libc_post_cc() { - : -} - |