749b2589ea
Useful for for-build scripts to call parted, eg. to generate partition tables and such automatically. Since the primary goal is to use parted within scripts, we do not need readline, so it is forcibly disabled. Also, it does look unlikely that we need to manipulate LVM volumes, so we forcibly disable support for the device-mapper. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
36 lines
888 B
Makefile
36 lines
888 B
Makefile
################################################################################
|
|
#
|
|
# parted
|
|
#
|
|
################################################################################
|
|
|
|
PARTED_VERSION = 3.1
|
|
PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz
|
|
PARTED_SITE = $(BR2_GNU_MIRROR)/parted
|
|
PARTED_DEPENDENCIES = util-linux
|
|
PARTED_INSTALL_STAGING = YES
|
|
PARTED_LICENSE = GPLv3+
|
|
PARTED_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
PARTED_DEPENDENCIES += readline
|
|
PARTED_CONF_OPT += --with-readline
|
|
else
|
|
PARTED_CONF_OPT += --without-readline
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LVM2),y)
|
|
PARTED_DEPENDENCIES += lvm2
|
|
PARTED_CONF_OPT += --enable-device-mapper
|
|
else
|
|
PARTED_CONF_OPT += --disable-device-mapper
|
|
endif
|
|
|
|
HOST_PARTED_DEPENDENCIES = host-util-linux
|
|
HOST_PARTED_CONF_OPT += \
|
|
--without-readline \
|
|
--disable-device-mapper \
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|