summaryrefslogtreecommitdiff
path: root/samples
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 /samples
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 'samples')
-rw-r--r--samples/moxie-unknown-elf/broken0
-rw-r--r--samples/moxie-unknown-elf/crosstool.config4
-rw-r--r--samples/moxie-unknown-elf/reported.by9
-rw-r--r--samples/moxie-unknown-moxiebox/crosstool.config6
-rw-r--r--samples/moxie-unknown-moxiebox/reported.by3
-rw-r--r--samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/crosstool.config9
-rw-r--r--samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/reported.by3
7 files changed, 31 insertions, 3 deletions
diff --git a/samples/moxie-unknown-elf/broken b/samples/moxie-unknown-elf/broken
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/samples/moxie-unknown-elf/broken
diff --git a/samples/moxie-unknown-elf/crosstool.config b/samples/moxie-unknown-elf/crosstool.config
index 23604a1..c445787 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 13d42a9..907a11f 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."
diff --git a/samples/moxie-unknown-moxiebox/crosstool.config b/samples/moxie-unknown-moxiebox/crosstool.config
new file mode 100644
index 0000000..6fae859
--- /dev/null
+++ b/samples/moxie-unknown-moxiebox/crosstool.config
@@ -0,0 +1,6 @@
+CT_EXPERIMENTAL=y
+CT_ARCH_MOXIE=y
+CT_DEBUG_GDB=y
+CT_GDB_CROSS_SIM=y
+# CT_GDB_CROSS_PYTHON is not set
+CT_DTC_VERBOSE=y
diff --git a/samples/moxie-unknown-moxiebox/reported.by b/samples/moxie-unknown-moxiebox/reported.by
new file mode 100644
index 0000000..b9de4f7
--- /dev/null
+++ b/samples/moxie-unknown-moxiebox/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Moxie toolchain with moxiebox+newlib as the C library."
diff --git a/samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/crosstool.config b/samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/crosstool.config
new file mode 100644
index 0000000..b0ce916
--- /dev/null
+++ b/samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/crosstool.config
@@ -0,0 +1,9 @@
+CT_EXPERIMENTAL=y
+CT_ARCH_MOXIE=y
+CT_CANADIAN=y
+CT_HOST="x86_64-multilib-linux-uclibc"
+CT_DEBUG_GDB=y
+CT_GDB_CROSS_SIM=y
+# CT_LIBICONV_NEEDED is not set
+# CT_GETTEXT_NEEDED is not set
+CT_DTC_VERBOSE=y
diff --git a/samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/reported.by b/samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/reported.by
new file mode 100644
index 0000000..e396a70
--- /dev/null
+++ b/samples/x86_64-multilib-linux-uclibc,moxie-unknown-moxiebox/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Canadian cross using moxiebox lib."