From patchwork Mon Jun 3 20:15:49 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: 248407 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 9D3112C0040 for ; Tue, 4 Jun 2013 06:17:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9AF36A02DE; Mon, 3 Jun 2013 20:16:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id poWcTJnugDUw; Mon, 3 Jun 2013 20:16:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6AB02A02E3; Mon, 3 Jun 2013 20:16:12 +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 D06298F753 for ; Mon, 3 Jun 2013 20:16:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A151F8EA48 for ; Mon, 3 Jun 2013 20:16:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rpLudTebAltz for ; Mon, 3 Jun 2013 20:16:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id F31218D0E6 for ; Mon, 3 Jun 2013 20:16:04 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id c11so64154wgh.20 for ; Mon, 03 Jun 2013 13:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=Lc74SrxAhHR8Br/+uHFY7f6ixXgpzc3q3tx8VbVf0V0=; b=lcPJhyJRDdxOdp15FQ9p5o6ipWuePVmoiMuRhy5aXCoepxPfVYNMkVvM9dQ2J8ICYF JUN1IMbWkzngZuHOrQoCr1Nza9qgSp/xGctAWu8B65Kl56GHwSD/VH4OMjLls3D6m31B FdDwtR8KpPu6JZPBeEyjboTiIjdHNhppFyawNau7nTGsS3bupmbhtBnlPqPNISPhEGC6 Hw4GZ6jVOoW3GElXiMfEX+8JHvjKzen2RkfTiPn5AY8F5gfR7ry5QUf74Ce1e+5KYKm2 1jUlsqlD7pyx3OPBwZ2FXrHjrADGUMHIFmk1FWrSNjkuHUy/3kwa1LeHtqi7XDJ9nns1 YEZA== X-Received: by 10.180.187.234 with SMTP id fv10mr14263211wic.29.1370290563235; Mon, 03 Jun 2013 13:16:03 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id ff10sm25878983wib.10.2013.06.03.13.16.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Jun 2013 13:16:02 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Mon, 3 Jun 2013 22:15:49 +0200 Message-Id: X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 3/6] package/genext2fs: add 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" genext2fs is built only if the user selected an ext2 root filesystem. However, some use-cases can't live with the full target/ dir on the root filesystem, and requires separate partitions (eg. for /usr). In this case, the user would not select an ext2 root fs in the Buildrooot menu, and would only generate a tarball of the rootfs. This tarball would then be used from a post-image script to build the actual required FSes. But then, genext2fs is not built, since the ext2 root FS was not selected. As for the other filesystem generators, provide a host variant of genext2fs (genext2fs is already host-package aware, so only needs adding a Kconfig entry). Signed-off-by: "Yann E. MORIN" --- fs/ext2/Config.in | 1 + package/Config.in.host | 1 + package/genext2fs/Config.in.host | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 package/genext2fs/Config.in.host diff --git a/fs/ext2/Config.in b/fs/ext2/Config.in index e75ef54..c26482f 100644 --- a/fs/ext2/Config.in +++ b/fs/ext2/Config.in @@ -1,5 +1,6 @@ config BR2_TARGET_ROOTFS_EXT2 bool "ext2/3/4 root filesystem" + select BR2_PACKAGE_HOST_GENEXT2FS select BR2_PACKAGE_HOST_E2FSPROGS help Build an ext2/3/4 root filesystem diff --git a/package/Config.in.host b/package/Config.in.host index 54178ea..5fd2570 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -3,6 +3,7 @@ menu "Host utilities" source "package/dfu-util/Config.in.host" source "package/dosfstools/Config.in.host" source "package/e2fsprogs/Config.in.host" +source "package/genext2fs/Config.in.host" source "package/genimage/Config.in.host" source "package/genpart/Config.in.host" source "package/lpc3250loader/Config.in.host" diff --git a/package/genext2fs/Config.in.host b/package/genext2fs/Config.in.host new file mode 100644 index 0000000..a03e16b --- /dev/null +++ b/package/genext2fs/Config.in.host @@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_GENEXT2FS + bool "host genext2fs" + help + genext2fs generates an ext2 filesystem as a normal (non-root) + user. It does not require you to mount the image file to + copy files on it, nor does it require that you become the + superuser to make device nodes. + + http://genext2fs.sourceforge.net/