[Thomas: implement simplifications suggested by Thomas De
Schampheleire, add missing 'depends' on required toolchain features.]
Signed-off-by: Paul B. Henson <henson@acm.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
select BR2_PACKAGE_ZLIB
select BR2_PACKAGE_LZO
+config BR2_PACKAGE_MTD_MKFSUBIFS
+ bool "mkfs.ubifs"
+ select BR2_PACKAGE_ZLIB
+ select BR2_PACKAGE_LZO
+ select BR2_PACKAGE_UTIL_LINUX
+ select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+ depends on BR2_LARGEFILE # util-linux
+ depends on BR2_USE_WCHAR # util-linux
+
+comment "mkfs.ubifs requires largefile and wchar support in toolchain"
+ depends on !BR2_LARGEFILE || !BR2_USE_WCHAR
+
config BR2_PACKAGE_MTD_MTD_DEBUG
bool "mtd_debug"
default y
MTD_DEPENDENCIES = zlib lzo
endif
+ifeq ($(BR2_PACKAGE_MTD_MKFSUBIFS),y)
+MTD_DEPENDENCIES += util-linux zlib lzo
+endif
+
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
MTD_DEPENDENCIES += busybox
endif
MTD_TARGETS_UBI_$(BR2_PACKAGE_MTD_UBIUPDATEVOL) += ubiupdatevol
MTD_TARGETS_y += $(addprefix ubi-utils/,$(MTD_TARGETS_UBI_y))
+MTD_TARGETS_$(BR2_PACKAGE_MTD_MKFSUBIFS) += mkfs.ubifs/mkfs.ubifs
# only call make if atleast a single tool is enabled
ifneq ($(MTD_TARGETS_y),)