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 --- config/libc/avr-libc.in | 2 +- config/libc/moxiebox.in | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 config/libc/moxiebox.in (limited to 'config/libc') diff --git a/config/libc/avr-libc.in b/config/libc/avr-libc.in index f35a206f..ade44540 100644 --- a/config/libc/avr-libc.in +++ b/config/libc/avr-libc.in @@ -1,7 +1,7 @@ # avr-libc options ## depends on ARCH_AVR -## depends on ! LINUX && ! WINDOWS && BARE_METAL +## depends on BARE_METAL ## ## select LIBC_SUPPORT_THREADS_NONE ## diff --git a/config/libc/moxiebox.in b/config/libc/moxiebox.in new file mode 100644 index 00000000..ac0324c4 --- /dev/null +++ b/config/libc/moxiebox.in @@ -0,0 +1,16 @@ +# moxiebox options + +# Moxie is distributed in non-bootstrapped form, so we really need +# autoconfig and automake. + +## depends on ARCH_MOXIE +## depends on BARE_METAL +## select LIBC_NEWLIB_SHOW +## select LIBC_SUPPORT_THREADS_NONE +## select COMP_TOOLS_AUTOCONF if !CONFIGURE_has_autoconf_2_65_or_newer || !CONFIGURE_has_autoreconf_2_64_or_newer +## select COMP_TOOLS_AUTOMAKE if !CONFIGURE_has_automake_1_15_or_newer +## select CC_CORE_PASSES_NEEDED if CANADIAN +## select CC_CORE_PASS_2_NEEDED if ! CANADIAN +## select LIBELF_NEEDED +## +## help Secure execution runtime for Moxie architecture. -- cgit v1.2.3