build: make TARGET_ROOTFS_JFFS2 depend on USES_JFFS2

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>
This commit is contained in:
Felix Fietkau 2016-07-19 12:21:29 +02:00
parent ceee47ba64
commit d7b185128d

View 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.