From patchwork Wed Nov 16 23:17:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Bauer X-Patchwork-Id: 9433203 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 E8ACC6021C for ; Wed, 16 Nov 2016 23:25:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5B22291A4 for ; Wed, 16 Nov 2016 23:25:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA2D4291A6; Wed, 16 Nov 2016 23:25:18 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 882E9291A4 for ; Wed, 16 Nov 2016 23:25:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932301AbcKPXZR (ORCPT ); Wed, 16 Nov 2016 18:25:17 -0500 Received: from mga05.intel.com ([192.55.52.43]:24823 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932658AbcKPXZQ (ORCPT ); Wed, 16 Nov 2016 18:25:16 -0500 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 16 Nov 2016 15:25:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,650,1473145200"; d="scan'208";a="192319091" Received: from sbauer-z170x-ud5.lm.intel.com ([10.232.112.157]) by fmsmga004.fm.intel.com with ESMTP; 16 Nov 2016 15:25:14 -0800 From: Scott Bauer To: linux-nvme@lists.infradead.org Cc: Rafael.Antognolli@intel.com, axboe@fb.com, keith.busch@intel.com, jonathan.derrick@intel.com, j.naumann@fu-berlin.de, hch@infradead.org, linux-block@vger.kernel.org, sagi@grimberg.me, Scott Bauer Subject: [PATCH v1 3/7] lib: Add Sed to Kconfig and Makefile Date: Wed, 16 Nov 2016 16:17:28 -0700 Message-Id: <1479338252-8777-4-git-send-email-scott.bauer@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479338252-8777-1-git-send-email-scott.bauer@intel.com> References: <1479338252-8777-1-git-send-email-scott.bauer@intel.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Scott Bauer Signed-off-by: Rafael Antognolli --- lib/Kconfig | 12 ++++++++++++ lib/Makefile | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 260a80e..47c39ac 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -547,6 +547,18 @@ config STACKDEPOT bool select STACKTRACE +config SED + bool "Self-Encrypting Drive library" + help + Provides self-encrypting drive helpers + +config SED_OPAL + bool "Self-Encrypting Drive library - Opal implementation" + depends on SED + help + Provides self-encrypting drive helpers for drives that implement the + Opal spec. + config SBITMAP bool diff --git a/lib/Makefile b/lib/Makefile index 50144a3..976da7a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -229,4 +229,11 @@ obj-$(CONFIG_UBSAN) += ubsan.o UBSAN_SANITIZE_ubsan.o := n + +obj-$(CONFIG_SED) += sed.o + +obj-$(CONFIG_SED_OPAL) += sed-opal.o +obj-$(CONFIG_SED_OPAL) += sed-opal_key.o + obj-$(CONFIG_SBITMAP) += sbitmap.o +