diff options
Diffstat (limited to 'meta/recipes-core/picolibc/picolibc_git.bb')
-rw-r--r-- | meta/recipes-core/picolibc/picolibc_git.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-core/picolibc/picolibc_git.bb b/meta/recipes-core/picolibc/picolibc_git.bb new file mode 100644 index 0000000000..eaa6c8de1e --- /dev/null +++ b/meta/recipes-core/picolibc/picolibc_git.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | require picolibc.inc | ||
2 | |||
3 | INHIBIT_DEFAULT_DEPS = "1" | ||
4 | DEPENDS = "virtual/cross-cc" | ||
5 | |||
6 | PROVIDES += "virtual/libc virtual/libiconv virtual/libintl" | ||
7 | |||
8 | COMPATIBLE_HOST:libc-musl:class-target = "null" | ||
9 | COMPATIBLE_HOST:libc-glibc:class-target = "null" | ||
10 | COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemuriscv32|qemuriscv64" | ||
11 | |||
12 | SRC_URI:append = " file://avoid_polluting_cross_directories.patch" | ||
13 | SRC_URI:append = " file://no-early-compiler-checks.cross" | ||
14 | |||
15 | # This is being added by picolibc meson files as well to avoid | ||
16 | # early compiler tests from failing, cant remember why I added it | ||
17 | # to the newlib recipe but I would assume it was for the same reason | ||
18 | TARGET_CC_ARCH:append = " -nostdlib" | ||
19 | |||
20 | # When using RISCV64 use medany for both C library and application recipes | ||
21 | TARGET_CFLAGS:append:qemuriscv64 = " -mcmodel=medany" | ||
22 | |||
23 | inherit meson | ||
24 | |||
25 | MESON_CROSS_FILE:append = " --cross-file=${UNPACKDIR}/no-early-compiler-checks.cross" | ||
26 | |||
27 | PACKAGECONFIG ??= " specsdir" | ||
28 | # Install GCC specs on libdir | ||
29 | PACKAGECONFIG[specsdir] = "-Dspecsdir=${libdir},-Dspecsdir=none" | ||
30 | |||
31 | FILES:${PN}-dev:append = " ${libdir}/*.specs ${libdir}/*.ld" | ||
32 | |||
33 | # No rpm package is actually created but -dev depends on it, avoid dnf error | ||
34 | DEV_PKG_DEPENDENCY:libc-picolibc = "" | ||