From: Karoly Kasza <kaszak@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/3] util-linux: enable host fdisk
Date: Tue, 9 Dec 2014 17:03:25 +0100 [thread overview]
Message-ID: <1418141008-18739-2-git-send-email-kaszak@gmail.com> (raw)
In-Reply-To: <1418141008-18739-1-git-send-email-kaszak@gmail.com>
Enable the building of fdisk utility for host.
Signed-off-by: Karoly Kasza <kaszak@gmail.com>
---
Changes v1 -> v2:
- Wording.
package/util-linux/Config.in.host | 9 ++++++
.../util-linux/util-linux-004-enable-fdisk.patch | 34 ++++++++++++++++++++
package/util-linux/util-linux.mk | 5 +++
3 files changed, 48 insertions(+)
create mode 100644 package/util-linux/util-linux-004-enable-fdisk.patch
diff --git a/package/util-linux/Config.in.host b/package/util-linux/Config.in.host
index f73dc43..65f4a87 100644
--- a/package/util-linux/Config.in.host
+++ b/package/util-linux/Config.in.host
@@ -6,3 +6,12 @@ config BR2_PACKAGE_HOST_UTIL_LINUX
Things like mkfs, mkswap, swapon, fdisk, mount, dmesg, etc...
http://www.kernel.org/pub/linux/utils/util-linux/
+
+if BR2_PACKAGE_HOST_UTIL_LINUX
+
+config BR2_PACKAGE_HOST_UTIL_LINUX_FDISK
+ bool "fdisk"
+ help
+ Enable compiling fdisk for the host
+
+endif
diff --git a/package/util-linux/util-linux-004-enable-fdisk.patch b/package/util-linux/util-linux-004-enable-fdisk.patch
new file mode 100644
index 0000000..5faf1bb
--- /dev/null
+++ b/package/util-linux/util-linux-004-enable-fdisk.patch
@@ -0,0 +1,34 @@
+Add options to enable/disable libfdisk and fdisk
+
+This is needed to be able to just build an fdisk binary
+for the host package.
+
+Signed-off-by: Karoly Kasza <kaszak@gmail.com>
+
+--- util-linux-2.25.1.orig/configure.ac 2014-10-11 13:47:52.000000000 +0200
++++ util-linux-2.25.1/configure.ac 2014-10-11 13:45:50.065076171 +0200
+@@ -820,12 +820,22 @@
+ dnl
+ dnl libfdisk is enabled at all times if possible
+ dnl
+-UL_BUILD_INIT([libfdisk], [check])
++# this behaviour changed for buildroot, along with fdisk
++AC_ARG_ENABLE([libfdisk],
++ AS_HELP_STRING([--disable-libfdisk], [do not build libfdisk]),
++ [], [UL_DEFAULT_ENABLE([libfdisk], [check])]
++)
++UL_BUILD_INIT([libfdisk])
+ UL_REQUIRES_BUILD([libfdisk], [libuuid])
+ UL_REQUIRES_BUILD([libfdisk], [libsmartcols])
+ AM_CONDITIONAL([BUILD_LIBFDISK], [test "x$build_libfdisk" = xyes])
+
+-UL_BUILD_INIT([fdisk], [check])
++
++AC_ARG_ENABLE([fdisk],
++ AS_HELP_STRING([--disable-fdisk], [do not build fdisk]),
++ [], [UL_DEFAULT_ENABLE([fdisk], [check])]
++)
++UL_BUILD_INIT([fdisk])
+ UL_REQUIRES_BUILD([fdisk], [libfdisk])
+ AM_CONDITIONAL([BUILD_FDISK], [test "x$build_fdisk" = xyes])
+
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index dc10193..9f70a11 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -97,6 +97,11 @@ HOST_UTIL_LINUX_CONF_OPTS += \
--disable-libblkid --disable-libmount \
--disable-all-programs --without-ncurses
+# Build host fdisk if selected
+ifeq ($(BR2_PACKAGE_HOST_UTIL_LINUX_FDISK),y)
+HOST_UTIL_LINUX_CONF_OPTS += --enable-fdisk --enable-libfdisk --enable-libsmartcols
+endif
+
# Avoid building the tools if they are disabled since we can't install on
# a per-directory basis.
ifeq ($(BR2_PACKAGE_UTIL_LINUX_BINARIES),)
--
1.7.10.4
next prev parent reply other threads:[~2014-12-09 16:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 16:03 [Buildroot] [PATCH v2 0/3] New image target (x86/x64): raw disk image Karoly Kasza
2014-12-09 16:03 ` Karoly Kasza [this message]
2014-12-10 17:47 ` [Buildroot] [PATCH v2 1/3] util-linux: enable host fdisk Yann E. MORIN
2014-12-09 16:03 ` [Buildroot] [PATCH v2 2/3] package/mkrawimg: new package Karoly Kasza
2014-12-09 16:03 ` [Buildroot] [PATCH v2 3/3] fs/rawimg: new rootfs target Karoly Kasza
2014-12-10 18:05 ` Yann E. MORIN
2014-12-11 9:57 ` Károly Kasza
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=1418141008-18739-2-git-send-email-kaszak@gmail.com \
--to=kaszak@gmail.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