summaryrefslogtreecommitdiff
path: root/config/libc
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-11-24 06:14:07 (GMT)
committerAlexey Neyman <stilor@att.net>2018-12-01 18:10:51 (GMT)
commit40d5bf64408a0e103f8149f941ea50fbbb11dc91 (patch)
tree67532a4e3a2498ab5663bb400649ec847ced6ba7 /config/libc
parent172308cb1be5b23c816c19d0b9c84ba4910cbe80 (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 'config/libc')
-rw-r--r--config/libc/avr-libc.in2
-rw-r--r--config/libc/moxiebox.in16
2 files changed, 17 insertions, 1 deletions
diff --git a/config/libc/avr-libc.in b/config/libc/avr-libc.in
index f35a206..ade4454 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 0000000..ac0324c
--- /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.