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 --- samples/moxie-unknown-elf/broken | 0 samples/moxie-unknown-elf/crosstool.config | 4 ++-- samples/moxie-unknown-elf/reported.by | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 samples/moxie-unknown-elf/broken (limited to 'samples/moxie-unknown-elf') diff --git a/samples/moxie-unknown-elf/broken b/samples/moxie-unknown-elf/broken new file mode 100644 index 00000000..e69de29b diff --git a/samples/moxie-unknown-elf/crosstool.config b/samples/moxie-unknown-elf/crosstool.config index 23604a17..c4457878 100644 --- a/samples/moxie-unknown-elf/crosstool.config +++ b/samples/moxie-unknown-elf/crosstool.config @@ -1,8 +1,8 @@ CT_EXPERIMENTAL=y CT_ARCH_MOXIE=y -CT_ARCH_BE=y -CT_NEWLIB_V_2_5_0=y +CT_LIBC_NEWLIB=y CT_DEBUG_GDB=y CT_GDB_CROSS_SIM=y # CT_GDB_CROSS_PYTHON is not set +CT_COMP_LIBS_LIBELF=y CT_DTC_VERBOSE=y diff --git a/samples/moxie-unknown-elf/reported.by b/samples/moxie-unknown-elf/reported.by index 13d42a91..907a11fe 100644 --- a/samples/moxie-unknown-elf/reported.by +++ b/samples/moxie-unknown-elf/reported.by @@ -1,3 +1,10 @@ reporter_name="Alexey Neyman" reporter_url="" -reporter_comment="Bare metal configuration for moxie architecture." +reporter_comment="Bare metal configuration for moxie architecture. + +It appears to generate a broken toolchain. E.g. newlib's CRT expects +symbols __bss_start__ and __bss_end__, while linker script generates +__bss_start (no underscores at the end) and no __bss_end__whatsoever. + +This is not a bug in crosstool-NG. If you're interested in saving the +moxie, please report this upstream." -- cgit v1.2.3