mtd: zlib/lzo is only needed for mkfs.jffs2
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 3 Feb 2010 14:08:47 +0000 (15:08 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 3 Feb 2010 14:08:47 +0000 (15:08 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/mtd/Config.in
package/mtd/mtd.mk

index af7125219112b0f7ebccb9144a8259647a75b5f2..01fe61129259a5cd399d7bea8d7a752c8c1d3b3d 100644 (file)
@@ -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
index e4f59173ff169a7170c775510202ec46c5796d91..244fd8e9597729b0dc6047e2d2d13061af6d82f2 100644 (file)
@@ -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)