2a86ea7fc9
Until now, selecting just the gptfdisk package wouldn't do anything. It wouldn't build anything at all, and wouldn't install anything. This is rather odd. So now, we ensure that at least one of the two tools that gptfdisk can build and install is selected. This allows use to factorize a bit the select of util-linux in Config.in, and remove the if condition in the makefile that was preventing the package from being built if no tools was selected. [Peter: Reword commit text] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
config BR2_PACKAGE_GPTFDISK
|
|
bool "gptfdisk"
|
|
depends on BR2_LARGEFILE
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_USE_WCHAR # util-linux
|
|
select BR2_PACKAGE_UTIL_LINUX
|
|
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
|
select BR2_PACKAGE_GPTFDISK_GDISK if !BR2_PACKAGE_GPTFDISK_SGDISK
|
|
help
|
|
GPT fdisk (consisting of the gdisk and sgdisk programs) is a
|
|
text-mode partitioning tool that works on Globally Unique Identifier
|
|
(GUID) Partition Table (GPT) disks, rather than on the more common
|
|
(through 2010) Master Boot Record (MBR) partition tables.
|
|
|
|
http://www.rodsbooks.com/gdisk/
|
|
|
|
config BR2_PACKAGE_GPTFDISK_GDISK
|
|
bool "interactive gdisk"
|
|
depends on BR2_PACKAGE_GPTFDISK
|
|
help
|
|
Install the interactive GUID partition table (GPT) manipulator
|
|
/usr/sbin/gdisk which is modelled after and quite similar in use
|
|
to the traditional MBR based fdisk tool.
|
|
|
|
config BR2_PACKAGE_GPTFDISK_SGDISK
|
|
bool "command line sgdisk"
|
|
depends on BR2_PACKAGE_GPTFDISK
|
|
select BR2_PACKAGE_POPT
|
|
help
|
|
Install the command-line GUID partition table (GPT) manipulator
|
|
/usr/sbin/sgdisk which is named after the traditional MBR based
|
|
sfdisk tool albeit with an entirely different option syntax.
|
|
|
|
comment "gptfdisk requires a toolchain with LARGEFILE/WCHAR/C++ support enabled"
|
|
depends on !(BR2_LARGEFILE && BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR)
|