You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/05/25 06:37:46 UTC

[incubator-nuttx] branch master updated: Eagle100: Fix build error in eagle100:nxflat config

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a49fad  Eagle100: Fix build error in eagle100:nxflat config
7a49fad is described below

commit 7a49fade033adf373004631f6e53e202cd97e143
Author: Tanushree Baindur <ta...@gmail.com>
AuthorDate: Tue May 25 00:03:32 2021 -0500

    Eagle100: Fix build error in eagle100:nxflat config
---
 boards/arm/tiva/eagle100/configs/nxflat/defconfig | 1 +
 boards/arm/tiva/eagle100/src/lm_appinit.c         | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/boards/arm/tiva/eagle100/configs/nxflat/defconfig b/boards/arm/tiva/eagle100/configs/nxflat/defconfig
index de2f642..7cca698 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 8a028bd..a28766c 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;
 }