From patchwork Sat Jul 25 23:06:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1336359 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=WVgq57hq; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BDhXN3lvjz9sSn for ; Sun, 26 Jul 2020 09:06:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 91FDC86919; Sat, 25 Jul 2020 23:06:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AFNTnnl3osS0; Sat, 25 Jul 2020 23:06:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8E0FE86759; Sat, 25 Jul 2020 23:06:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4A5C21BF59E for ; Sat, 25 Jul 2020 23:06:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3830B2078D for ; Sat, 25 Jul 2020 23:06:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SCujYW1lMimf for ; Sat, 25 Jul 2020 23:06:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by silver.osuosl.org (Postfix) with ESMTPS id 0FE5C20785 for ; Sat, 25 Jul 2020 23:06:28 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id x72so7137015pfc.6 for ; Sat, 25 Jul 2020 16:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LeaZdPmBNP0ahXpkfY5tYjeVQtH5gZG/6cSkc66aiWw=; b=WVgq57hqc78vce1cv8tS65Otj5aKf/pMeS83nqxUkflJAK78GO+JMIg22hpbuILPoo NBuYpPuCBn9yBzRYK5PAKV1UK3HL2titQd9uSs7xnkdkL+ubcN31ujR13JCWi82Q8Tnx sU6uxtYazd38R9K0I7gWeNwC+lmva6KCLyrlgLOr5kslSp5pzNIDI1x2pbn/3H6bGLBj /X0w8YVHKC9udqiuS/e45SrkBeADC51+a6NOV8Q5Vzr/e+6lgc21iAB799GjaqBTAQ7f pVRr6hmH1IDrYtFrciWFGpI2Sy2UM9whhMTPzZMrJHWRcW+HxOqzVyDruzkG0XnW/1jp Nfkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LeaZdPmBNP0ahXpkfY5tYjeVQtH5gZG/6cSkc66aiWw=; b=APhEGuBpogoioKas3QOpEdMxnULweHA4YNUctWrUzeN1ME5XVFUqzGR5NHyGniYTpt jpOPo84G+QX/S3v7aGHE41sGOY4sqH4bR7yQ7rUGT2epfulZIJd4x/hA57hT2/PG9l6C k/HO+NAH5NrYUUFHApUZP/Hd/ANnvNCOQ0nLuXhjE0nD5gwl1xdJWtixSMqUYM7DDEJR A5XwUnrl5sNluIvzpPwBWpfuiXBrKAZ8oqohhPr8JpK6VStR/d23HSWy9ja30idXGP15 /Vz/XXdy3jAcFmPALusEhR9bxTLoyy4wVmGDfip6oHArQ07HFvCFBBOluwU++9vnqtXW h5eg== X-Gm-Message-State: AOAM532QuId02pFwyp5ceR+9bmoOoyjh7gdwvKvGrUE3CXnQdJM8B5BS 0vUMc+7SGZbPFRRPhCLqKgz6pUFJD3Y= X-Google-Smtp-Source: ABdhPJwEky0Xrsb/OaFzXKsHo2on3qaBmNPE8+wAj3Xo5+hyy7G3GzKQSgfvlSUffOZTkYHPTZYg2Q== X-Received: by 2002:a62:be06:: with SMTP id l6mr14867521pff.310.1595718387502; Sat, 25 Jul 2020 16:06:27 -0700 (PDT) Received: from localhost.localdomain ([47.149.8.172]) by smtp.gmail.com with ESMTPSA id w64sm10160999pgd.67.2020.07.25.16.06.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 16:06:27 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Sat, 25 Jul 2020 16:06:12 -0700 Message-Id: <20200725230618.3640682-8-aduskett@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200725230618.3640682-1-aduskett@gmail.com> References: <20200725230618.3640682-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 07/13] package/libblockdev: add support for lvm plugin X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Giulio Benetti , Adam Duskett , Marek Belisko Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett Signed-off-by: Adam Duskett --- Chagnes v2 -> v3: - Add missing parted dependency in libblockdev.mk (Thomas) package/libblockdev/Config.in | 9 +++++++++ package/libblockdev/libblockdev.mk | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/package/libblockdev/Config.in b/package/libblockdev/Config.in index 6f0b3435fe..9da9685bd9 100644 --- a/package/libblockdev/Config.in +++ b/package/libblockdev/Config.in @@ -36,6 +36,15 @@ comment "filesystem plugin needs a toolchain w/ locale" config BR2_PACKAGE_LIBBLOCKDEV_LOOP bool "loop" +config BR2_PACKAGE_LIBBLOCKDEV_LVM2 + bool "lvm2" + depends on BR2_ENABLE_LOCALE # parted + select BR2_PACKAGE_PARTED + select BR2_PACKAGE_LVM2 + +comment "lvm2 support needs a toolchain w/ locale" + depends on !BR2_ENABLE_LOCALE + endif comment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library" diff --git a/package/libblockdev/libblockdev.mk b/package/libblockdev/libblockdev.mk index fddf7e2e87..457f368663 100644 --- a/package/libblockdev/libblockdev.mk +++ b/package/libblockdev/libblockdev.mk @@ -20,7 +20,6 @@ LIBBLOCKDEV_CONF_OPTS = \ --without-dmraid \ --without-escrow \ --without-kbd \ - --without-lvm \ --without-lvm_dbus \ --without-mdraid \ --without-mpath \ @@ -53,4 +52,11 @@ else LIBBLOCKDEV_CONF_OPTS += --without-loop endif +ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LVM2),y) +LIBBLOCKDEV_DEPENDENCIES += lvm2 parted +LIBBLOCKDEV_CONF_OPTS += --with-lvm +else +LIBBLOCKDEV_CONF_OPTS += --without-lvm +endif + $(eval $(autotools-package))