Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] How to include lsblk from linux-utils?
Date: Thu, 25 Feb 2016 17:14:33 +0100	[thread overview]
Message-ID: <20160225171433.7e200dfc@free-electrons.com> (raw)
In-Reply-To: <05f401d16fdf$4ddcc840$e99658c0$@chordia.co.uk>

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

  reply	other threads:[~2016-02-25 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2016-02-25 17:31   ` jerry at chordia.co.uk
2016-02-25 20:35     ` Thomas Petazzoni

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=20160225171433.7e200dfc@free-electrons.com \
    --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