From f85ed72c70925c7953c11fa0526bd77fb8698de2 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 3 Feb 2010 15:08:47 +0100 Subject: [PATCH] mtd: zlib/lzo is only needed for mkfs.jffs2 Signed-off-by: Peter Korsgaard --- package/mtd/Config.in | 3 ++- package/mtd/mtd.mk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package/mtd/Config.in b/package/mtd/Config.in index af71252191..01fe611292 100644 --- a/package/mtd/Config.in +++ b/package/mtd/Config.in @@ -1,6 +1,5 @@ menuconfig BR2_PACKAGE_MTD bool "mtd/jffs2 utilities" - select BR2_PACKAGE_ZLIB help Build mtd/jffs utilities @@ -57,6 +56,8 @@ config BR2_PACKAGE_MTD_JFFS2DUMP config BR2_PACKAGE_MTD_MKFSJFFS2 bool "mkfs.jffs2" + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_LZO default y config BR2_PACKAGE_MTD_MTD_DEBUG diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk index e4f59173ff..244fd8e959 100644 --- a/package/mtd/mtd.mk +++ b/package/mtd/mtd.mk @@ -132,7 +132,7 @@ $(MTD_TARGET_BINS): $(MTD_BUILD_TARGETS) 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) -- 2.30.2