mtdconfig: modify mtdconfig kconfig

change filename  mtd/mtd_config_fs.c to mtd/mtd_config_nvs.c
and optimize the configuration related to mtdconfig

Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
zhaoxingyu1
2025-04-29 10:22:05 +08:00
committed by Donny(董九柱)
parent 116196da02
commit 273222c06e
7 changed files with 30 additions and 23 deletions
+4 -4
View File
@@ -271,7 +271,7 @@ config ARCH_BOARD_FLASH_PART1_FS_SMARTFS
is absolute minimum (so a 16KiB!).
config ARCH_BOARD_FLASH_PART1_FS_MTDCONFIG
select MTD_CONFIG
depends on !MTD_CONFIG_NONE
bool "mtdconfig"
---help---
Purpose build filesystem to hold application's configuration.
@@ -319,7 +319,7 @@ config ARCH_BOARD_FLASH_PART2_FS_SMARTFS
bool "smartfs"
config ARCH_BOARD_FLASH_PART2_FS_MTDCONFIG
select MTD_CONFIG
depends on !MTD_CONFIG_NONE
bool "mtdconfig"
endchoice # Filesystem of user partition 2
@@ -362,7 +362,7 @@ config ARCH_BOARD_FLASH_PART3_FS_SMARTFS
bool "smartfs"
config ARCH_BOARD_FLASH_PART3_FS_MTDCONFIG
select MTD_CONFIG
depends on !MTD_CONFIG_NONE
bool "mtdconfig"
endchoice # Filesystem of user partition 3
@@ -405,7 +405,7 @@ config ARCH_BOARD_FLASH_PART4_FS_SMARTFS
bool "smartfs"
config ARCH_BOARD_FLASH_PART4_FS_MTDCONFIG
select MTD_CONFIG
depends on !MTD_CONFIG_NONE
bool "mtdconfig"
endchoice # Filesystem of user partition 4
@@ -40,6 +40,7 @@ CONFIG_INPUT=y
CONFIG_INPUT_BUTTONS=y
CONFIG_INPUT_BUTTONS_LOWER=y
CONFIG_LPUART1_SERIAL_CONSOLE=y
CONFIG_MTD_CONFIG=y
CONFIG_MTD_CONFIG_NAMED=y
CONFIG_MTD_SMART_SECTOR_SIZE=2048
CONFIG_NSH_ARCHINIT=y