Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | |
| 2 | require newlib.inc |
| 3 | |
| 4 | DEPENDS += "newlib" |
| 5 | |
| 6 | do_configure() { |
| 7 | ${S}/libgloss/configure ${EXTRA_OECONF} |
| 8 | } |
| 9 | |
| 10 | do_install_prepend() { |
| 11 | # install doesn't create this itself, avoid install error |
| 12 | install -d ${D}${prefix}/${TARGET_SYS}/lib |
| 13 | } |
| 14 | |
| 15 | do_install_append() { |
| 16 | # Move libs to default directories so they can be picked up later |
| 17 | mv -v ${D}${prefix}/${TARGET_SYS}/lib ${D}${libdir} |
| 18 | |
| 19 | # Remove original directory |
| 20 | rmdir ${D}${prefix}/${TARGET_SYS} |
| 21 | } |
| 22 | |
| 23 | # Split packages correctly |
| 24 | FILES_${PN} += "${libdir}/*.ld ${libdir}/*.specs" |
| 25 | |
| 26 | INHIBIT_PACKAGE_STRIP = "1" |
| 27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |