diff --git a/examples/sotest/Kconfig b/examples/sotest/Kconfig index beea7710c1b..eae61b5a668 100644 --- a/examples/sotest/Kconfig +++ b/examples/sotest/Kconfig @@ -15,7 +15,7 @@ if EXAMPLES_SOTEST config EXAMPLES_SOTEST_BUILTINFS bool "Built-in File System" default y - depends on FS_ROMFS && BUILD_FLAT + depends on FS_ROMFS && BUILD_FLAT && BOARDCTL_ROMDISK ---help--- This example supports a very, non-standard but also very convenient way of testing with example using CONFIG_EXAMPLES_SOTEST_BUILTINFS. diff --git a/examples/sotest/sotest_main.c b/examples/sotest/sotest_main.c index 5c1568e5934..2f63ef60b81 100644 --- a/examples/sotest/sotest_main.c +++ b/examples/sotest/sotest_main.c @@ -102,7 +102,9 @@ extern const int g_sot_nexports; int main(int argc, FAR char *argv[]) { +#ifdef CONFIG_EXAMPLES_SOTEST_BUILTINFS char devname[32]; +#endif #if CONFIG_MODLIB_MAXDEPEND > 0 FAR void *handle1; #endif