From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] package/parted: add a host variant
Date: Fri, 6 Dec 2013 10:48:11 +0100 [thread overview]
Message-ID: <20131206104811.49d81180@skate> (raw)
In-Reply-To: <1891fdbc7ad11ce084f2be315871eb10573953b7.1386023329.git.yann.morin.1998@free.fr>
Dear Yann E. MORIN,
On Mon, 2 Dec 2013 23:29:57 +0100, Yann E. MORIN wrote:
> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
>
> Usefull for for-build scripts to call parted, eg. to generate
Useful. See http://en.wiktionary.org/wiki/usefull.
> partition tables and such automatically.
>
> Since the primary gaool is to use parted within scripts, we
goal
> do not need readline, so it is forcibly disabled.
>
> PARTED_DEPENDENCIES = readline util-linux lvm2
> +HOST_PARTED_DEPENDENCIES = host-util-linux host-lvm2
Do we really want the lvm2 dependency? It can be avoided by passing
--disable-device-mapper.
> PARTED_INSTALL_STAGING = YES
> PARTED_LICENSE = GPLv3+
> PARTED_LICENSE_FILES = COPYING
>
> +HOST_PARTED_CONF_OPT += --without-readline
> +
> $(eval $(autotools-package))
> +$(eval $(host-autotools-package))
So maybe something like:
PARTED_DEPENDENCIES = util-linux
ifeq ($(BR2_PACKAGE_READLINE),y)
PARTED_DEPENDENCIES += readline
PARTED_CONF_OPT += --with-readline
else
PARTED_CONF_OPT += --without-readline
endif
ifeq ($(BR2_PACKAGE_LVM2),y)
PARTED_DEPENDENCIES += lvm2
PARTED_CONF_OPT += --enable-device-mapper
else
PARTED_CONF_OPT += --disable-device-mapper
endif
HOST_PARTED_DEPENDENCIES = host-util-linux
HOST_PARTED_CONF_OPT = \
--without-readline \
--disable-device-mapper
In the host variant of parted, lvm2 support is never enabled, as I
believe it's pretty unlikely that lvm2 support will be needed to
generate disk images. This would make PATCH 2/3 of your series
unnecessary, of course.
In the target variant, we automatically enable lvm2 and readline support
when available, which allows to build parted without lvm2 support when
not needed.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2013-12-06 9:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 22:29 [Buildroot] [pull request] Pull request for branch yem/host-packages Yann E. MORIN
2013-12-02 22:29 ` [Buildroot] [PATCH 1/3] package/lvm2: remove uninstall commands Yann E. MORIN
2013-12-06 9:38 ` Thomas Petazzoni
2013-12-06 16:37 ` Yann E. MORIN
2013-12-02 22:29 ` [Buildroot] [PATCH 2/3] package/lvm2: add a host variant Yann E. MORIN
2013-12-02 22:29 ` [Buildroot] [PATCH 3/3] package/parted: " Yann E. MORIN
2013-12-06 9:48 ` Thomas Petazzoni [this message]
2013-12-06 16:56 ` Yann E. MORIN
2013-12-06 17:07 ` Thomas Petazzoni
2013-12-09 21:11 ` Arnout Vandecappelle
2013-12-10 7:28 ` Thomas Petazzoni
2013-12-10 7:58 ` Arnout Vandecappelle
-- strict thread matches above, loose matches on Subject: below --
2013-12-06 19:57 [Buildroot] [pull request v2] Pull request for branch yem/host-packages Yann E. MORIN
2013-12-06 19:57 ` [Buildroot] [PATCH 3/3] package/parted: add a host variant Yann E. MORIN
2013-12-08 17:01 [Buildroot] [pull request v3] Pull request for branch yem/host-packages Yann E. MORIN
2013-12-08 17:01 ` [Buildroot] [PATCH 3/3] package/parted: add a host variant Yann E. MORIN
2013-12-12 18:18 [Buildroot] [pull request v4] Pull request for branch yem/host-packages Yann E. MORIN
2013-12-12 18:18 ` [Buildroot] [PATCH 3/3] package/parted: add a host variant Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131206104811.49d81180@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox