diff options
Diffstat (limited to 'meta/recipes-core/newlib/libgloss_git.bb')
-rw-r--r-- | meta/recipes-core/newlib/libgloss_git.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-core/newlib/libgloss_git.bb b/meta/recipes-core/newlib/libgloss_git.bb new file mode 100644 index 0000000000..92bb81050b --- /dev/null +++ b/meta/recipes-core/newlib/libgloss_git.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | require newlib.inc | ||
2 | |||
3 | DEPENDS += "newlib" | ||
4 | |||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/libgloss:" | ||
6 | |||
7 | SRC_URI:append = " file://libgloss-build-without-nostdinc.patch" | ||
8 | SRC_URI:append:powerpc = " file://fix-rs6000-crt0.patch" | ||
9 | |||
10 | do_configure() { | ||
11 | ${S}/libgloss/configure ${EXTRA_OECONF} | ||
12 | } | ||
13 | |||
14 | do_install:prepend() { | ||
15 | # install doesn't create this itself, avoid install error | ||
16 | install -d ${D}${prefix}/${TARGET_SYS}/lib | ||
17 | } | ||
18 | |||
19 | do_install:append() { | ||
20 | # Move libs to default directories so they can be picked up later | ||
21 | install -d ${D}${libdir} | ||
22 | mv -v ${D}${prefix}/${TARGET_SYS}/lib/* ${D}${libdir} | ||
23 | |||
24 | # Remove original directory | ||
25 | rmdir -p --ignore-fail-on-non-empty ${D}${prefix}/${TARGET_SYS}/lib | ||
26 | # Remove empty include dir | ||
27 | rmdir ${D}/${prefix}/${TARGET_SYS}/include | ||
28 | rmdir ${D}/${prefix}/${TARGET_SYS}/ | ||
29 | |||
30 | } | ||
31 | |||
32 | # Split packages correctly | ||
33 | FILES:${PN} += "${libdir}/*.ld ${libdir}/*.specs" | ||
34 | FILES:${PN}-dev += "${libdir}/cpu-init/*" | ||
35 | # RiscV installation moved the syscall header to this location | ||
36 | FILES:${PN}-dev += "${prefix}/${TARGET_SYS}/include/machine/*.h" | ||
37 | |||
38 | INHIBIT_PACKAGE_STRIP = "1" | ||
39 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||