Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/3] util-linux: rework utilities menu for finer control
@ 2015-07-11 22:09 Danomi Manchego
  2015-07-11 22:09 ` [Buildroot] [PATCH v2 1/3] util-linux: add more tool select options Danomi Manchego
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Danomi Manchego @ 2015-07-11 22:09 UTC (permalink / raw)
  To: buildroot

This series changes the util-linux tool setup to support more scenarios.

Previously supported by buildroot:

a. Build libraries only.
  - Occurred when "install utilities" disabled.

b. Build basic set of tools which do not have separate config-time enables.
  - Examples of the basic set of utils that were installed whether you wanted
    them or not: dmesg, blkid, fdisk, flock, hexdump, logger, swapoff, ...
  - Many of these tools overlap with BusyBox applets.
  - Occurred when "install utilities" enabled, but no others.

c. Build basic set of tools, plus additional tools accessible by buildroot kconfig.

With the patch series, we introduce the possibility of:

d. Selectively build tools, without getting the basic set of utils.
  - This lets us keep BusyBox for most things, and only add what is actually
    needed from util-linux.

e. Build everything.

To get to this point, the patches do the following:

- Introduce new "basic set" option.

- Introduce missing options for "line" and "tunelp".

- Change boolean "install utilities" to a choice of none/all/custom.

  - none:
    - In menu, hide individual options.
    - Configure with --disable-all-programs.

  - all:
    - In menu, hide individual options.
    - Configure with --enable-all-programs.

  - custom:
    - In menu, show individual options.
    - Configure with --disable-all-programs if "basic set" is not enabled.

- Hide all the util-linux options in a menuconfig, as the option list is quite long.

The series was tested as follows:

- "Install utilities" set to "none" matches (a) above.  No apps are built.

- "Install utilities" set to "custom" with only the "basic set" enabled
  matches (b).

- "Install utilities" set to "custom" with only one app enabled results in
  only that app built, and the libraries, without the "basic set" described
  in "b".

- "Install utilities" set to "all" matches the output of a custom build
  with all the individual options enabled.

Danomi Manchego (3):
  util-linux: add more tool select options
  util-linux: rework utilities menu for finer control
  util-linux: put package options in a sub-menu

 package/util-linux/Config.in     |   59 ++++++++++++++++++++++++++++++++++----
 package/util-linux/util-linux.mk |   17 ++++++-----
 2 files changed, 64 insertions(+), 12 deletions(-)

-- 
1.7.9.5

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

end of thread, other threads:[~2015-10-04 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-11 22:09 [Buildroot] [PATCH v2 0/3] util-linux: rework utilities menu for finer control Danomi Manchego
2015-07-11 22:09 ` [Buildroot] [PATCH v2 1/3] util-linux: add more tool select options Danomi Manchego
2015-10-04 17:32   ` Thomas Petazzoni
2015-07-11 22:10 ` [Buildroot] [PATCH v2 2/3] util-linux: rework utilities menu for finer control Danomi Manchego
2015-07-11 22:10 ` [Buildroot] [PATCH v2 3/3] util-linux: put package options in a sub-menu Danomi Manchego
2015-07-11 22:31 ` [Buildroot] [PATCH v2 0/3] util-linux: rework utilities menu for finer control Thomas Petazzoni
2015-07-12  1:15   ` Danomi Manchego

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