From 6bbc8b2d3a4e4bdfb55f886bd954e5dc24e7fcde Mon Sep 17 00:00:00 2001 From: Oleksandr Kravchuk Date: Fri, 15 Oct 2021 00:33:21 +0200 Subject: pmdk: update to 1.11.1 Signed-off-by: Oleksandr Kravchuk Signed-off-by: Khem Raj --- meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb | 48 +++++++++++++++++++++++++++ meta-oe/recipes-extended/pmdk/pmdk_1.9.bb | 49 ---------------------------- 2 files changed, 48 insertions(+), 49 deletions(-) create mode 100644 meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb delete mode 100644 meta-oe/recipes-extended/pmdk/pmdk_1.9.bb (limited to 'meta-oe/recipes-extended/pmdk') diff --git a/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb b/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb new file mode 100644 index 0000000000..e456603c1c --- /dev/null +++ b/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb @@ -0,0 +1,48 @@ +SUMMARY = "Persistent Memory Development Kit" +DESCRIPTION = "Persistent Memory Development Kit" +HOMEPAGE = "http://pmem.io" +SECTION = "libs" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b44ee63f162f9cdb18fff1224877aafd" +DEPENDS = "ndctl" + +# Required to have the fts.h header for musl +DEPENDS:append:libc-musl = " fts" + +S = "${WORKDIR}/git" + +SRC_URI = "git://github.com/pmem/pmdk.git;branch=stable-1.11" +SRCREV = "5b21904a257eff47f2e87fcbf2de46111f03ddd8" + +inherit autotools-brokensep pkgconfig + +# Fix jemalloc error: +# | configure: error: cannot run C compiled programs. +# | If you meant to cross compile, use `--host'. +# +# Also fix #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] +EXTRA_OEMAKE = "BUILD_EXAMPLES='n' DOC='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}' LIB_PREFIX=${baselib}" + +# Fix the missing fts libs when using musl +EXTRA_OEMAKE:append:libc-musl = " EXTRA_LIBS='-lfts'" + +do_configure:prepend() { + touch .skip-doc +} + +do_install() { + oe_runmake prefix=${prefix} DESTDIR=${D} install + + # Remove uneeded files + rm -rf ${D}/usr/${baselib}/pmdk_debug +} + +# Include these by default otherwise the SDK is not very useful +FILES:${PN} += "${bindir}/pmempool ${bindir}/daxio" +FILES:${PN} += "${libdir}/*so*" +FILES:${PN} += "${libdir}/pkgconfig/*.pc" +FILES:${PN} += "${includedir}/libpmemobj++/* ${includedir}/libpmemobj/* /usr/*/include/" +FILES:${PN} += "/usr/etc" +FILES:${PN} += "/usr/share" + +COMPATIBLE_HOST='(x86_64).*' diff --git a/meta-oe/recipes-extended/pmdk/pmdk_1.9.bb b/meta-oe/recipes-extended/pmdk/pmdk_1.9.bb deleted file mode 100644 index 4325c15c33..0000000000 --- a/meta-oe/recipes-extended/pmdk/pmdk_1.9.bb +++ /dev/null @@ -1,49 +0,0 @@ -SUMMARY = "Persistent Memory Development Kit" -DESCRIPTION = "Persistent Memory Development Kit" -HOMEPAGE = "http://pmem.io" -SECTION = "libs" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=b44ee63f162f9cdb18fff1224877aafd" -DEPENDS = "ndctl" - -# Required to have the fts.h header for musl -DEPENDS:append:libc-musl = " fts" - -S = "${WORKDIR}/git" - -SRC_URI = "git://github.com/pmem/pmdk.git" - -SRCREV = "1926ffb8f3f5f0617b3b3ed32029d437c272f187" - -inherit autotools-brokensep pkgconfig - -# Fix jemalloc error: -# | configure: error: cannot run C compiled programs. -# | If you meant to cross compile, use `--host'. -# -# Also fix #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] -EXTRA_OEMAKE = "BUILD_EXAMPLES='n' DOC='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}' LIB_PREFIX=${baselib}" - -# Fix the missing fts libs when using musl -EXTRA_OEMAKE:append:libc-musl = " EXTRA_LIBS='-lfts'" - -do_configure:prepend() { - touch .skip-doc -} - -do_install() { - oe_runmake prefix=${prefix} DESTDIR=${D} install - - # Remove uneeded files - rm -rf ${D}/usr/${baselib}/pmdk_debug -} - -# Include these by default otherwise the SDK is not very useful -FILES:${PN} += "${bindir}/pmempool ${bindir}/daxio" -FILES:${PN} += "${libdir}/*so*" -FILES:${PN} += "${libdir}/pkgconfig/*.pc" -FILES:${PN} += "${includedir}/libpmemobj++/* ${includedir}/libpmemobj/* /usr/*/include/" -FILES:${PN} += "/usr/etc" -FILES:${PN} += "/usr/share" - -COMPATIBLE_HOST='(x86_64).*' -- cgit v1.2.3-54-g00ecf