Check CONFIG_BOARDCTL_ROMDISK is set

CONFIG_BOARDCTL_ROMDISK must be set to enable boardctl(BOARDIOC_ROMDISK)
    in these 2 files:
    examples/nxflat/nxflat_main.c
    examples/thttpd/thttpd_main.c
This commit is contained in:
Tanushree Baindur 2021-05-19 18:42:28 -05:00 committed by Xiang Xiao
parent a6ca97d733
commit bff92219cd
2 changed files with 7 additions and 4 deletions

View File

@ -62,10 +62,6 @@
* are required -- only the more obvious.
*/
#ifdef CONFIG_BINFMT_DISABLE
# error "The binary loader is disabled (CONFIG_BINFMT_DISABLE)!"
#endif
#ifndef CONFIG_NXFLAT
# error "You must select CONFIG_NXFLAT in your configuration file"
#endif
@ -82,6 +78,9 @@
# error "You must not disable loadable modules via CONFIG_BINFMT_DISABLE in your configuration file"
#endif
#ifndef CONFIG_BOARDCTL_ROMDISK
# error "CONFIG_BOARDCTL_ROMDISK should be enabled in the configuration file"
#endif
/* Describe the ROMFS file system */
#define SECTORSIZE 512

View File

@ -95,6 +95,10 @@
# ifdef CONFIG_DISABLE_MOUNTPOINT
# error "You must not disable mountpoints via CONFIG_DISABLE_MOUNTPOINT in your configuration file"
# endif
#ifndef CONFIG_BOARDCTL_ROMDISK
# error "CONFIG_BOARDCTL_ROMDISK should be enabled in the configuration file"
#endif
#endif
#ifdef CONFIG_THTTPD_BINFS