diff mbox

[ndctl] ndctl, spec: disable daxctl io on non-x86_64 archs

Message ID 150492672007.2886.8876325161627280092.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State Accepted
Commit dd47f6346571
Headers show

Commit Message

Dan Williams Sept. 9, 2017, 3:12 a.m. UTC
Similar to the kernel requires CONFIG_ARCH_HAS_PMEM_API for pmem
support, userspace requires libpmem which to date is only packaged for
x86_64.

Cc: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 ndctl.spec.in |    6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/ndctl.spec.in b/ndctl.spec.in
index cf0fcc3e76ea..4aa133dd70aa 100644
--- a/ndctl.spec.in
+++ b/ndctl.spec.in
@@ -20,7 +20,9 @@  BuildRequires:	pkgconfig(libudev)
 BuildRequires:	pkgconfig(uuid)
 BuildRequires:	pkgconfig(json-c)
 BuildRequires:	pkgconfig(bash-completion)
+%ifarch x86_64
 BuildRequires:	pkgconfig(libpmem)
+%endif
 
 %description
 Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
@@ -91,7 +93,11 @@  control API for these devices.
 %build
 echo "VERSION" > version
 ./autogen.sh
+%ifarch x86_64
 %configure --disable-static --enable-local --disable-silent-rules --with-libpmem
+%else
+%configure --disable-static --enable-local --disable-silent-rules
+%endif
 make %{?_smp_mflags}
 
 %install