build: make TARGET_ROOTFS_JFFS2 depend on USES_JFFS2
authorFelix Fietkau <nbd@nbd.name>
Tue, 19 Jul 2016 10:21:29 +0000 (12:21 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Jul 2016 08:13:50 +0000 (10:13 +0200)
If jffs2 support was not enabled by the target, jffs2 are quite likely
to be broken, so we shouldn't build them.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
config/Config-images.in

index 958bda4227872648c3f2e19c15623d6b932ca8cb..f81931e47fa680065077bc94c8651c3a98f31a4f 100644 (file)
@@ -126,7 +126,7 @@ menu "Target Images"
 
        config TARGET_ROOTFS_JFFS2
                bool "jffs2"
-               default y if USES_JFFS2
+               depends on USES_JFFS2
                help
                  Build a JFFS2 root filesystem.