summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/baremetal-image.bbclass
diff options
context:
space:
mode:
authorAlejandro Hernandez Samaniego <alejandro@enedino.org>2024-06-18 12:12:26 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-26 12:28:42 +0100
commit09b49a35e1cd68f2e7aac35c8094adfc3ca38685 (patch)
tree0dca38b6f20a5f90d89c339ebc675bae6e3c0715 /meta/classes-recipe/baremetal-image.bbclass
parentbeabc787cacb9b399f19eac39903948154dcce18 (diff)
downloadpoky-09b49a35e1cd68f2e7aac35c8094adfc3ca38685.tar.gz
tclibc-picolibc: Adds a new TCLIBC variant to build with picolibc as C library
Enables usage of TCLIBC=picolibc extending OE functionality to build and use picolibc based toolchains to build baremetal applications. Picolibc is a set of standard C libraries, both libc and libm, designed for smaller embedded systems with limited ROM and RAM. Picolibc includes code from Newlib and AVR Libc, but adresses some of newlibs concerns, it retains newlibs directory structure, math, string and locale implementations, but removed the GPL bits used to build the library, swiches old C style code for C18 and replaces autotools with meson. This patch adds a picolibc recipe for the C library, a picolibc-helloworld recipe that contains an example application and a testcase that builds it. Picolibc can be built for ARM and RISCV architectures, its been tested both for 32 and 64 bits, the provided example recipe produces the following output: hello, world Runqemu does not automatically show any output since it hides QEMU stderr which is where the QEMU monitors output is directed to when using semihosting, but, manually running the same QEMU command does work properly. (From OE-Core rev: c7535ecaccb72ef21a61f9aec5c68e61fb4f6fb6) Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/baremetal-image.bbclass')
-rw-r--r--meta/classes-recipe/baremetal-image.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/baremetal-image.bbclass b/meta/classes-recipe/baremetal-image.bbclass
index 7938c0a83f..4afc171314 100644
--- a/meta/classes-recipe/baremetal-image.bbclass
+++ b/meta/classes-recipe/baremetal-image.bbclass
@@ -16,8 +16,8 @@
16# See meta-skeleton for a working example. 16# See meta-skeleton for a working example.
17 17
18 18
19# Toolchain should be baremetal or newlib based. 19# Toolchain should be baremetal or newlib/picolibc based.
20# TCLIBC="baremetal" or TCLIBC="newlib" 20# TCLIBC="baremetal" or TCLIBC="newlib" or TCLIBC="picolibc"
21COMPATIBLE_HOST:libc-musl:class-target = "null" 21COMPATIBLE_HOST:libc-musl:class-target = "null"
22COMPATIBLE_HOST:libc-glibc:class-target = "null" 22COMPATIBLE_HOST:libc-glibc:class-target = "null"
23 23