From 40d5bf64408a0e103f8149f941ea50fbbb11dc91 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Fri, 23 Nov 2018 22:14:07 -0800 Subject: 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 --- scripts/build/arch/avr.sh | 7 +++++++ scripts/build/arch/moxie.sh | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'scripts/build/arch') diff --git a/scripts/build/arch/avr.sh b/scripts/build/arch/avr.sh index 501b020b..fd8c8edd 100644 --- a/scripts/build/arch/avr.sh +++ b/scripts/build/arch/avr.sh @@ -2,4 +2,11 @@ CT_DoArchTupleValues() { CT_TARGET_ARCH="${CT_ARCH}" + case "${CT_LIBC}" in + avr-libc) + # avr-libc only seems to work with the non-canonical "avr" target. + CT_TARGET_SKIP_CONFIG_SUB=y + CT_TARGET_SYS= # CT_TARGET_SYS must be empty + ;; + esac } diff --git a/scripts/build/arch/moxie.sh b/scripts/build/arch/moxie.sh index 91a99690..72c82c93 100644 --- a/scripts/build/arch/moxie.sh +++ b/scripts/build/arch/moxie.sh @@ -3,5 +3,9 @@ # No arch-specific overrides yet CT_DoArchTupleValues() { - : + case "${CT_LIBC}" in + moxiebox) + CT_TARGET_SYS=moxiebox + ;; + esac } -- cgit v1.2.3