mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
fs: delete NFILE_DESCRIPTORS for allocating dynamically
Change-Id: Id06d215063796d222b9792d25ab2d6742167729f Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -64,7 +64,6 @@ fi
|
||||
romfsetc=`grep CONFIG_NSH_ROMFSETC= $topdir/.config | cut -d'=' -f2`
|
||||
disablempt=`grep CONFIG_DISABLE_MOUNTPOINT= $topdir/.config | cut -d'=' -f2`
|
||||
disablescript=`grep CONFIG_NSH_DISABLESCRIPT= $topdir/.config | cut -d'=' -f2`
|
||||
ndescriptors=`grep CONFIG_NFILE_DESCRIPTORS= $topdir/.config | cut -d'=' -f2`
|
||||
devconsole=`grep CONFIG_DEV_CONSOLE= $topdir/.config | cut -d'=' -f2`
|
||||
romfs=`grep CONFIG_FS_ROMFS= $topdir/.config | cut -d'=' -f2`
|
||||
romfsmpt=`grep CONFIG_NSH_ROMFSMOUNTPT= $topdir/.config | cut -d'=' -f2`
|
||||
@@ -100,15 +99,6 @@ if [ "X$disablescript" = "Xy" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# We need at least 5 file descriptors: One for the ROMFS mount and one for
|
||||
# FAT mount performed in rcS, plus three for stdio.
|
||||
|
||||
if [ -z "$ndescriptors" -o "$ndescriptors" -lt 5 ]; then
|
||||
echo "Insufficient file descriptors have been allocated"
|
||||
echo "Set CONFIG_NFILE_DESCRIPTORS to value greater than 4"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ROMFS support is required, of course
|
||||
|
||||
if [ "X$romfs" != "Xy" ]; then
|
||||
|
||||
Reference in New Issue
Block a user