summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2020-08-16 19:37:45 (GMT)
committerKeith Packard <keithp@keithp.com>2020-09-01 16:42:53 (GMT)
commitc15de32ec64e398a97430a244e7510ccf8600116 (patch)
tree97cc9dcc8c49cd896244604e03b5614831fc0351 /samples
parent4e5bc43627582b11f11ebc1cedcfd1016f39c60e (diff)
Add picolibc support [v2]
This adds support for using picolibc instead of newlib on embedded systems. Signed-off-by: Keith Packard <keithp@keithp.com> v2: Add check for meson and ninja Sync option default values with current picolibc defaults Remove xtensa sys header file install as those aren't in picolibc
Diffstat (limited to 'samples')
-rw-r--r--samples/arm-picolibc-eabi/crosstool.config12
-rw-r--r--samples/arm-picolibc-eabi/reported.by3
2 files changed, 15 insertions, 0 deletions
diff --git a/samples/arm-picolibc-eabi/crosstool.config b/samples/arm-picolibc-eabi/crosstool.config
new file mode 100644
index 0000000..7f7d42a
--- /dev/null
+++ b/samples/arm-picolibc-eabi/crosstool.config
@@ -0,0 +1,12 @@
+CT_CONFIG_VERSION="3"
+CT_ARCH_ARM=y
+CT_MULTILIB=y
+CT_ARCH_FLOAT_SW=y
+CT_TARGET_VENDOR="picolibc"
+CT_CC_LANG_CXX=n
+CT_LIBC="picolibc"
+CT_LIBC_NEWLIB=n
+CT_LIBC_PICOLIBC=y
+CT_CC_GCC_CONFIG_TLS=y
+CT_TARGET_CFLAGS="-ftls-model=local-exec"
+CT_CC_GCC_MULTILIB_LIST="rmprofile"
diff --git a/samples/arm-picolibc-eabi/reported.by b/samples/arm-picolibc-eabi/reported.by
new file mode 100644
index 0000000..b3bfb49
--- /dev/null
+++ b/samples/arm-picolibc-eabi/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Keith Packard"
+reporter_url="http://keithp.com/"
+reporter_comment="Based on arm-unknown-eabi"