From patchwork Fri Dec 6 19:57:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 298237 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id A30CE2C009A for ; Sat, 7 Dec 2013 06:57:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 14FB78BCF3; Fri, 6 Dec 2013 19:57:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1CQ09-77lpn0; Fri, 6 Dec 2013 19:57:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B7B748BD96; Fri, 6 Dec 2013 19:57:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A97D11BF94B for ; Fri, 6 Dec 2013 19:57:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A323C8B8FA for ; Fri, 6 Dec 2013 19:57:17 +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 eYJ-9On2z60h for ; Fri, 6 Dec 2013 19:57:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by whitealder.osuosl.org (Postfix) with ESMTPS id EEBB48B7AC for ; Fri, 6 Dec 2013 19:57:16 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id w62so1125701wes.7 for ; Fri, 06 Dec 2013 11:57:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=/A8Jf1R4TaV5vLVBC6Alo8jH0D2S+/X8hS2v8LNA5QI=; b=NNN7n3JfEysxo2ZRrMjgKkfFfx1r/wSfX8DNaSuCcrvBk1DgbcqxWAS+xFEwG8l0z4 G6IawS+B6IRKNtD9J8hnOTfKVGPqPlaZWmqKK+RucPZL1wl5sm92lIRPoZMf/kYGBOHE iXc5y6wI+TP//s3dEQTHutDM6Wnu35nFX3/S32M/Wf0xHKUp5CjKKL2fFXVSa5M9UK/z 6GohnxABvZNEpXPTyvpA5wZWHXwdy5ArjPeO764nJ7WOuFZTXE4YojrxocTDu2R5OOn2 8WViWkIsUGdFC3CbuDMGbt5qlSG3k3yRIg0gMQFQSZYSuBG6hQUYHWJ6EsaUfYgcQRs1 dc7A== X-Received: by 10.194.61.84 with SMTP id n20mr24399431wjr.61.1386359835508; Fri, 06 Dec 2013 11:57:15 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id uc18sm9150911wib.11.2013.12.06.11.57.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Dec 2013 11:57:14 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Fri, 6 Dec 2013 20:57:10 +0100 Message-Id: X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 3/3] package/parted: add a host variant X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: "Yann E. MORIN" Useful for for-build scripts to call parted, eg. to generate partition tables and such automatically. Since the primary goal is to use parted within scripts, we do not need readline, so it is forcibly disabled. Also, it does look unlikely that we need to manipulate LVM volumes, so we forcibly disable support for the device-mapper. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- package/Config.in.host | 1 + package/parted/Config.in.host | 6 ++++++ package/parted/parted.mk | 6 ++++++ 3 files changed, 13 insertions(+) create mode 100644 package/parted/Config.in.host diff --git a/package/Config.in.host b/package/Config.in.host index 5fd2570..34e84bf 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -10,6 +10,7 @@ source "package/lpc3250loader/Config.in.host" source "package/mtools/Config.in.host" source "package/omap-u-boot-utils/Config.in.host" source "package/openocd/Config.in.host" +source "package/parted/Config.in.host" source "package/sam-ba/Config.in.host" source "package/sunxi-tools/Config.in.host" source "package/uboot-tools/Config.in.host" diff --git a/package/parted/Config.in.host b/package/parted/Config.in.host new file mode 100644 index 0000000..f5d7acc --- /dev/null +++ b/package/parted/Config.in.host @@ -0,0 +1,6 @@ +config BR2_PACKAGE_HOST_PARTED + bool "host parted" + help + parted, the GNU partition resizing program + + http://www.gnu.org/software/parted/ diff --git a/package/parted/parted.mk b/package/parted/parted.mk index afb8287..bba64d9 100644 --- a/package/parted/parted.mk +++ b/package/parted/parted.mk @@ -26,4 +26,10 @@ else PARTED_CONF_OPT += --disable-device-mapper endif +HOST_PARTED_DEPENDENCIES = host-util-linux +HOST_PARTED_CONF_OPT += \ + --without-readline \ + ----disable-device-mapper \ + $(eval $(autotools-package)) +$(eval $(host-autotools-package))