Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | SUMMARY = "Persistent Memory Development Kit" |
| 2 | DESCRIPTION = "Persistent Memory Development Kit" |
| 3 | HOMEPAGE = "http://pmem.io" |
| 4 | SECTION = "libs" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 5 | LICENSE = "BSD-3-Clause" |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b44ee63f162f9cdb18fff1224877aafd" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 7 | DEPENDS = "ndctl" |
| 8 | |
| 9 | # Required to have the fts.h header for musl |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | DEPENDS:append:libc-musl = " fts" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 14 | SRC_URI = "git://github.com/pmem/pmdk.git" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 15 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 16 | SRCREV = "1926ffb8f3f5f0617b3b3ed32029d437c272f187" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 17 | |
| 18 | inherit autotools-brokensep pkgconfig |
| 19 | |
| 20 | # Fix jemalloc error: |
| 21 | # | configure: error: cannot run C compiled programs. |
| 22 | # | If you meant to cross compile, use `--host'. |
| 23 | # |
| 24 | # Also fix #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 25 | EXTRA_OEMAKE = "BUILD_EXAMPLES='n' DOC='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}' LIB_PREFIX=${baselib}" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 26 | |
| 27 | # Fix the missing fts libs when using musl |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | EXTRA_OEMAKE:append:libc-musl = " EXTRA_LIBS='-lfts'" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | do_configure:prepend() { |
Andrew Geissler | 7f40b71 | 2020-05-15 14:09:53 -0500 | [diff] [blame] | 31 | touch .skip-doc |
| 32 | } |
| 33 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 34 | do_install() { |
| 35 | oe_runmake prefix=${prefix} DESTDIR=${D} install |
| 36 | |
| 37 | # Remove uneeded files |
| 38 | rm -rf ${D}/usr/${baselib}/pmdk_debug |
| 39 | } |
| 40 | |
| 41 | # Include these by default otherwise the SDK is not very useful |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | FILES:${PN} += "${bindir}/pmempool ${bindir}/daxio" |
| 43 | FILES:${PN} += "${libdir}/*so*" |
| 44 | FILES:${PN} += "${libdir}/pkgconfig/*.pc" |
| 45 | FILES:${PN} += "${includedir}/libpmemobj++/* ${includedir}/libpmemobj/* /usr/*/include/" |
| 46 | FILES:${PN} += "/usr/etc" |
| 47 | FILES:${PN} += "/usr/share" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 48 | |
| 49 | COMPATIBLE_HOST='(x86_64).*' |