package/mtd: fix tests compiling when disabled

Upstream changed the '--enable-tests' switch to '--with-tests' in
release 2.2.0

See edc83b6174

Fixes:
- http://autobuild.buildroot.net/results/52a289c7033005b7a29b0f2bc6aa5056cbdabb34/

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
Brandon Maier
2024-06-17 18:43:24 +00:00
committed by Arnout Vandecappelle
parent 1eb7d2b860
commit 77211ae347

View File

@@ -56,9 +56,9 @@ MTD_CONF_OPTS += --disable-ubihealthd
endif endif
ifeq ($(BR2_PACKAGE_MTD_TESTS),y) ifeq ($(BR2_PACKAGE_MTD_TESTS),y)
MTD_CONF_OPTS += --enable-tests MTD_CONF_OPTS += --with-tests
else else
MTD_CONF_OPTS += --disable-tests MTD_CONF_OPTS += --without-tests
endif endif
# If extended attributes are required, the acl package must # If extended attributes are required, the acl package must
@@ -75,7 +75,7 @@ HOST_MTD_CONF_OPTS = \
--with-jffs \ --with-jffs \
--with-ubifs \ --with-ubifs \
--without-crypto \ --without-crypto \
--disable-tests --without-tests
MKFS_JFFS2 = $(HOST_DIR)/sbin/mkfs.jffs2 MKFS_JFFS2 = $(HOST_DIR)/sbin/mkfs.jffs2
SUMTOOL = $(HOST_DIR)/sbin/sumtool SUMTOOL = $(HOST_DIR)/sbin/sumtool