You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2020/12/22 04:12:12 UTC

[incubator-nuttx] branch master updated: boards/sim/sim/sim/src/etc/init.d/rcS: Make it conditional with FS_FAT

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

btashton 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 d5a1c8c  boards/sim/sim/sim/src/etc/init.d/rcS: Make it conditional with FS_FAT
d5a1c8c is described below

commit d5a1c8cae85500dc61868df280b432b2e4991407
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Dec 22 11:18:38 2020 +0900

    boards/sim/sim/sim/src/etc/init.d/rcS: Make it conditional with FS_FAT
    
    ifdef out the guts of the script because it doesn't make sense
    without FAT enabled.
---
 boards/sim/sim/sim/src/etc/init.d/rcS | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/boards/sim/sim/sim/src/etc/init.d/rcS b/boards/sim/sim/sim/src/etc/init.d/rcS
index 2ceebb8..29ae0dd 100644
--- a/boards/sim/sim/sim/src/etc/init.d/rcS
+++ b/boards/sim/sim/sim/src/etc/init.d/rcS
@@ -24,6 +24,7 @@
 #define CONCAT(x, y)  CONCAT_(x, y)
 
 #ifdef CONFIG_NSH_ROMFSETC
+#ifdef CONFIG_FS_FAT
 
 /* Create a RAMDISK and mount it at /tmp */
 
@@ -31,4 +32,5 @@ mkrd -m CONFIG_NSH_FATDEVNO -s CONFIG_NSH_FATSECTSIZE CONFIG_NSH_FATNSECTORS
 mkfatfs CONCAT(/dev/ram, CONFIG_NSH_FATDEVNO)
 mount -t vfat CONCAT(/dev/ram, CONFIG_NSH_FATDEVNO) CONFIG_NSH_FATMOUNTPT
 
+#endif /* CONFIG_FS_FAT */
 #endif /* CONFIG_NSH_ROMFSETC */