From patchwork Sat Sep 9 03:12:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 9945183 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B26756035D for ; Sat, 9 Sep 2017 03:19:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99981289BC for ; Sat, 9 Sep 2017 03:19:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E79D289E5; Sat, 9 Sep 2017 03:19:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE8BF289CB for ; Sat, 9 Sep 2017 03:19:25 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DEE7120945BF4; Fri, 8 Sep 2017 20:15:32 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 95D2821E87962 for ; Fri, 8 Sep 2017 20:15:31 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Sep 2017 20:18:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,364,1500966000"; d="scan'208";a="309720338" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.125]) by fmsmga004.fm.intel.com with ESMTP; 08 Sep 2017 20:18:24 -0700 Subject: [ndctl PATCH] ndctl, spec: disable daxctl io on non-x86_64 archs From: Dan Williams To: linux-nvdimm@lists.01.org Date: Fri, 08 Sep 2017 20:12:00 -0700 Message-ID: <150492672007.2886.8876325161627280092.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Dan Williams --- ndctl.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) 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