diff options
Diffstat (limited to 'meta/recipes-core/newlib/newlib_4.1.0.bb')
-rw-r--r-- | meta/recipes-core/newlib/newlib_4.1.0.bb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-core/newlib/newlib_4.1.0.bb b/meta/recipes-core/newlib/newlib_4.1.0.bb new file mode 100644 index 0000000000..7ab5b2b94e --- /dev/null +++ b/meta/recipes-core/newlib/newlib_4.1.0.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | require newlib.inc | ||
2 | |||
3 | PROVIDES += "virtual/libc virtual/libiconv virtual/libintl" | ||
4 | |||
5 | do_configure() { | ||
6 | export CC_FOR_TARGET="${CC}" | ||
7 | ${S}/configure ${EXTRA_OECONF} | ||
8 | } | ||
9 | |||
10 | do_install_append() { | ||
11 | # Move include files and libs to default directories so they can be picked up later | ||
12 | mv -v ${D}${prefix}/${TARGET_SYS}/lib ${D}${libdir} | ||
13 | mv -v ${D}${prefix}/${TARGET_SYS}/include ${D}${includedir} | ||
14 | |||
15 | # Remove original directory | ||
16 | rmdir ${D}${prefix}/${TARGET_SYS} | ||
17 | } | ||
18 | |||
19 | # No rpm package is actually created but -dev depends on it, avoid dnf error | ||
20 | RDEPENDS_${PN}-dev_libc-newlib = "" | ||