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.
This commit is contained in:
YAMAMOTO Takashi 2020-12-22 11:18:38 +09:00 committed by Brennan Ashton
parent 9ee04b5c53
commit d5a1c8cae8

View file

@ -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 */