mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
mtdconfig: change the relevant judgments of mtd_config
For the MTD_CONFIG configuration item in drivers/mtd/Kconfig has changed. Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
@@ -147,7 +147,7 @@ int sam_smartfs_initialize(void)
|
||||
|
||||
/* Test if this is the config partition */
|
||||
|
||||
#if defined CONFIG_MTD_CONFIG
|
||||
#ifndef CONFIG_MTD_CONFIG_NONE
|
||||
if (partno == 0)
|
||||
{
|
||||
/* Register the partition as the config device */
|
||||
|
||||
@@ -68,7 +68,7 @@ ifeq ($(CONFIG_SAMV7_MCAN),y)
|
||||
CSRCS += sam_mcan.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_MTD_CONFIG),y)
|
||||
ifneq ($(CONFIG_MTD_CONFIG_NONE),y)
|
||||
ifeq ($(CONFIG_SAMV7_TWIHS0),y)
|
||||
ifeq ($(CONFIG_MTD_AT24XX),y)
|
||||
CSRCS += sam_at24config.c
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
# undef HAVE_MACADDR
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_MTD_CONFIG)
|
||||
#if defined(CONFIG_MTD_CONFIG_NONE)
|
||||
# undef HAVE_MTDCONFIG
|
||||
#endif
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ ifeq ($(CONFIG_AUDIO_NULL),y)
|
||||
CSRCS += sam_audio_null.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_MTD_CONFIG),y)
|
||||
ifneq ($(CONFIG_MTD_CONFIG_NONE),y)
|
||||
ifeq ($(CONFIG_SAMV7_TWIHS0),y)
|
||||
ifeq ($(CONFIG_MTD_AT24XX),y)
|
||||
CSRCS += sam_at24config.c
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
# undef HAVE_MACADDR
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_MTD_CONFIG)
|
||||
#if defined(CONFIG_MTD_CONFIG_NONE)
|
||||
# undef HAVE_MTDCONFIG
|
||||
#endif
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@ int stm32wl5_flash_init(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_MTD_CONFIG)
|
||||
#if !defined(CONFIG_MTD_CONFIG_NONE)
|
||||
else if (strcmp(fs, "mtdconfig") == 0)
|
||||
{
|
||||
if (mtdconfig_minor)
|
||||
|
||||
Reference in New Issue
Block a user