Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to include lsblk from linux-utils?
@ 2016-02-25 15:15 jerry at chordia.co.uk
  2016-02-25 16:14 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: jerry at chordia.co.uk @ 2016-02-25 15:15 UTC (permalink / raw)
  To: buildroot

Using BR 2016-02 how do I get lsblk installed? 

 

The source package is present but the utilities are not being built. I've
got System Tools >> install utilities selected but no lsblk is visible.

 

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160225/274e031c/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How to include lsblk from linux-utils?
  2016-02-25 15:15 [Buildroot] How to include lsblk from linux-utils? jerry at chordia.co.uk
@ 2016-02-25 16:14 ` Thomas Petazzoni
  2016-02-25 17:31   ` jerry at chordia.co.uk
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-02-25 16:14 UTC (permalink / raw)
  To: buildroot

Hello Jerry,

On Thu, 25 Feb 2016 15:15:04 -0000, jerry at chordia.co.uk wrote:
> Using BR 2016-02 how do I get lsblk installed? 
> 
> The source package is present but the utilities are not being built. I've
> got System Tools >> install utilities selected but no lsblk is visible.

You need to add a patch like the below to be able to select lsblk in
your build:

diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 3f9a7db..d4f9a3d 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -139,6 +139,11 @@ config BR2_PACKAGE_UTIL_LINUX_LOSETUP
        help
          Set up and control loop devices
 
+config BR2_PACKAGE_UTIL_LINUX_LSBLK
+       bool "lsblk"
+       help
+         List block devices.
+
 config BR2_PACKAGE_UTIL_LINUX_MESG
        bool "mesg"
        help
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 7342174..141dffd 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -85,6 +85,7 @@ UTIL_LINUX_CONF_OPTS += \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LINE),--enable-line,--disable-line) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),--enable-last --enable-login --enable-runuser --enable-su --enable-sulogin,--disable-last --disable-login --disable-runuser --disable-su --disable-sulogin) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LOSETUP),--enable-losetup,--disable-losetup) \
+       $(if $(BR2_PACKAGE_UTIL_LINUX_LSBLK),--enable-lsblk,--disable-lsblk) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_MESG),--enable-mesg,--disable-mesg) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_MINIX),--enable-minix,--disable-minix) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_MORE),--enable-more,--disable-more) \

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] How to include lsblk from linux-utils?
  2016-02-25 16:14 ` Thomas Petazzoni
@ 2016-02-25 17:31   ` jerry at chordia.co.uk
  2016-02-25 20:35     ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: jerry at chordia.co.uk @ 2016-02-25 17:31 UTC (permalink / raw)
  To: buildroot

Hello Thomas

> > Using BR 2016-02 how do I get lsblk installed?
> >
> > The source package is present but the utilities are not being built.
> > I've got System Tools >> install utilities selected but no lsblk is
visible.
> 
> You need to add a patch like the below to be able to select lsblk in your
build:
>

Excellent, that worked. Many thanks. Is this patch going into the next
release? 

BR,

Jerry.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How to include lsblk from linux-utils?
  2016-02-25 17:31   ` jerry at chordia.co.uk
@ 2016-02-25 20:35     ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-02-25 20:35 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 25 Feb 2016 17:31:35 -0000, jerry at chordia.co.uk wrote:

> Excellent, that worked. Many thanks. Is this patch going into the next
> release? 

Glad to hear it worked. I've just submitted the patch, so unless anyone
has objections against it, it should be part of 2016.05 (it is too late
for 2016.02).

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-25 20:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 15:15 [Buildroot] How to include lsblk from linux-utils? jerry at chordia.co.uk
2016-02-25 16:14 ` Thomas Petazzoni
2016-02-25 17:31   ` jerry at chordia.co.uk
2016-02-25 20:35     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox