diff --git a/boards/arm/tiva/eagle100/configs/nxflat/defconfig b/boards/arm/tiva/eagle100/configs/nxflat/defconfig index de2f6422dae..7cca6983c78 100644 --- a/boards/arm/tiva/eagle100/configs/nxflat/defconfig +++ b/boards/arm/tiva/eagle100/configs/nxflat/defconfig @@ -19,6 +19,7 @@ CONFIG_CONSOLE_SYSLOG=y CONFIG_DISABLE_ENVIRON=y CONFIG_EXAMPLES_NXFLAT=y CONFIG_FS_ROMFS=y +CONFIG_LIBM=y CONFIG_LIB_BOARDCTL=y CONFIG_MAX_TASKS=16 CONFIG_NXFLAT=y diff --git a/boards/arm/tiva/eagle100/src/lm_appinit.c b/boards/arm/tiva/eagle100/src/lm_appinit.c index 8a028bd9323..a28766c6d64 100644 --- a/boards/arm/tiva/eagle100/src/lm_appinit.c +++ b/boards/arm/tiva/eagle100/src/lm_appinit.c @@ -108,7 +108,9 @@ int board_app_initialize(uintptr_t arg) { FAR struct spi_dev_s *spi; +#if defined (CONFIG_MMCSD) && defined (CONFIG_MMCSD_SPI) int ret; +#endif /* Get the SPI port */ @@ -126,6 +128,7 @@ int board_app_initialize(uintptr_t arg) syslog(LOG_INFO, "Successfully initialized SPI port %d\n", CONFIG_NSH_MMCSDSPIPORTNO); +#if defined (CONFIG_MMCSD) && defined (CONFIG_MMCSD_SPI) /* Bind the SPI port to the slot */ syslog(LOG_INFO, "Binding SPI port %d to MMC/SD slot %d\n", @@ -143,5 +146,7 @@ int board_app_initialize(uintptr_t arg) syslog(LOG_INFO, "Successfully bound SPI port %d to MMC/SD slot %d\n", CONFIG_NSH_MMCSDSPIPORTNO, CONFIG_NSH_MMCSDSLOTNO); +#endif + return OK; }