Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
menuconfig BR2_PACKAGE_MTD
bool "mtd/jffs2 utilities"
- select BR2_PACKAGE_ZLIB
help
Build mtd/jffs utilities
config BR2_PACKAGE_MTD_MKFSJFFS2
bool "mkfs.jffs2"
+ select BR2_PACKAGE_ZLIB
+ select BR2_PACKAGE_LZO
default y
config BR2_PACKAGE_MTD_MTD_DEBUG
mkdir -p $(TARGET_DIR)/usr/sbin
$(INSTALL) -m 0755 $^ $(TARGET_DIR)/usr/sbin
-mtd: zlib lzo $(MTD_TARGET_BINS)
+mtd: $(if $(BR2_PACKAGE_MTD_MKFSJFFS2),zlib lzo) $(MTD_TARGET_BINS)
mtd-source: $(DL_DIR)/$(MTD_SOURCE)