@@ -9,9 +9,8 @@ config NSH_LIBRARY
9
9
bool "NSH Library"
10
10
default n
11
11
select NETUTILS_NETLIB if NET
12
- select BOARDCTL if (!NSH_DISABLE_MKRD && !DISABLE_MOUNTPOINT) || NSH_ARCHINIT || NSH_ROMFSETC
12
+ select BOARDCTL if (!NSH_DISABLE_MKRD && !DISABLE_MOUNTPOINT) || NSH_ARCHINIT
13
13
select BOARDCTL_MKRD if !NSH_DISABLE_MKRD && !DISABLE_MOUNTPOINT
14
- select BOARDCTL_ROMDISK if NSH_ROMFSETC
15
14
---help---
16
15
Build the NSH support library. This is used, for example, by
17
16
system/nsh in order to implement the full NuttShell (NSH).
@@ -793,29 +792,6 @@ config NSH_DISABLE_LOOPS
793
792
systems where some minimal scripting is required but looping
794
793
is not.
795
794
796
- endif # !NSH_DISABLESCRIPT
797
-
798
- config NSH_ROMFSETC
799
- bool "Support ROMFS start-up script"
800
- default n
801
- depends on FS_ROMFS
802
- ---help---
803
- Mount a ROMFS filesystem at /etc and provide a system init
804
- script at /etc/init.d/rc.sysinit and a startup script
805
- at /etc/init.d/rcS. The default system init script will mount
806
- a FAT FS RAMDISK at /tmp but the logic is easily extensible.
807
-
808
- if NSH_ROMFSETC
809
-
810
- config NSH_CROMFSETC
811
- bool "Support CROMFS (compressed) start-up script"
812
- default n
813
- depends on FS_CROMFS
814
- ---help---
815
- Mount a CROMFS filesystem at /etc and provide a compressed system
816
- init script at /etc/init.d/rc.sysinit and a startup script
817
- at /etc/init.d/rcS.
818
-
819
795
config NSH_ROMFSRC
820
796
bool "Support ROMFS login script"
821
797
default n
@@ -828,14 +804,6 @@ config NSH_ROMFSRC
828
804
session. Selecting this option enables support for such a login
829
805
script
830
806
831
- config NSH_ROMFSMOUNTPT
832
- string "ROMFS mount point"
833
- default "/etc"
834
- ---help---
835
- The default mountpoint for the ROMFS volume is /etc, but that
836
- can be changed with this setting. This must be a absolute path
837
- beginning with '/'.
838
-
839
807
config NSH_SYSINITSCRIPT
840
808
string "Relative path to sysinit script"
841
809
default "init.d/rc.sysinit"
@@ -861,106 +829,14 @@ config NSH_RCSCRIPT
861
829
The default is .nshrc. This is a relative path and must not
862
830
start with '/'.
863
831
864
- config NSH_ROMFSDEVNO
865
- int "ROMFS block device minor number"
866
- default 0
867
- ---help---
868
- This is the minor number of the ROMFS block device. The default is
869
- '0' corresponding to /dev/ram0.
870
-
871
- config NSH_ROMFSSECTSIZE
872
- int "ROMFS sector size"
873
- default 64
874
- ---help---
875
- This is the sector size to use with the ROMFS volume. Since the
876
- default volume is very small, this defaults to 64 but should be
877
- increased if the ROMFS volume were to be become large. Any value
878
- selected must be a power of 2.
879
-
880
- choice
881
- prompt "ROMFS header location"
882
- default NSH_DEFAULTROMFS
883
-
884
- config NSH_DEFAULTROMFS
885
- bool "Default ROMFS header path"
886
- ---help---
887
- Selects the default header located in the source directory of the
888
- NSH library.
889
-
890
- config NSH_ARCHROMFS
891
- bool "Architecture-specific ROMFS path"
892
- ---help---
893
- Enable this option to provide an architecture-specific ROMFS
894
- header at arch/<boardname>/nsh_romfsimg.h. Note that this header
895
- will be linked (or copied) from nuttx/boards/<arch>/<chip>/<board>/include
896
- and should be stored at that location in the nuttx boards/
897
- sub-directory.
898
-
899
- config NSH_CUSTOMROMFS
900
- bool "Custom ROMFS header path"
901
- ---help---
902
- Enable this option to provide a custom ROMFS header. The path to
903
- the header file can be specified in the option "Custom ROMFS header
904
- file".
905
-
906
- endchoice
907
-
908
- if NSH_CUSTOMROMFS
909
-
910
- config NSH_CUSTOMROMFS_HEADER
911
- string "Custom ROMFS header file path"
912
- default ""
913
- ---help---
914
- Specifies the path to the custom ROMFS header file. This must be
915
- either a full path or a path relative to one of the include file
916
- search paths provided in your CFLAGS.
917
-
918
- endif #NSH_CUSTOMROMFS
919
-
920
- config NSH_FATDEVNO
921
- int "FAT block device minor number"
922
- default 1
923
- depends on FS_FAT
924
- ---help---
925
- When the default rcS file used when NSH_ROMFSETC is selected, it
926
- will mount a FAT FS under /tmp. This is the minor number of the FAT
927
- FS block device. The default is '1' corresponding to /dev/ram1.
928
-
929
- config NSH_FATSECTSIZE
930
- int "FAT sector size"
931
- default 512
932
- depends on FS_FAT
933
- ---help---
934
- When the default rcS file used when NSH_ROMFSETC is selected, it
935
- will mount a FAT FS under /tmp. This is the sector size use with the
936
- FAT FS. Default is 512.
937
-
938
- config NSH_FATNSECTORS
939
- int "FAT number of sectors"
940
- default 1024
941
- depends on FS_FAT
942
- ---help---
943
- When the default rcS file used when NSH_ROMFSETC is selected, it
944
- will mount a FAT FS under /tmp. This is the number of sectors to use
945
- with the FAT FS. Default is 1024. The amount of memory used by the
946
- FAT FS will be NSH_FATSECTSIZE * NSH_FATNSECTORS bytes.
947
-
948
- config NSH_FATMOUNTPT
949
- string "FAT mount point"
950
- default "/tmp"
951
- depends on FS_FAT
952
- ---help---
953
- When the default rcS file used when NSH_ROMFSETC is selected, it
954
- will mount a FAT FS under /tmp. This is the location where the FAT
955
- FS will be mounted. Default is "/tmp".
956
-
957
832
config NSH_SCRIPT_REDIRECT_PATH
958
833
string "rcS redirect output"
959
834
default ""
960
835
---help---
961
836
This option can redirect rcS output.such as /dev/log or other.
962
837
963
- endif # NSH_ROMFSETC
838
+ endif # !NSH_DISABLESCRIPT
839
+
964
840
endmenu # Scripting Support
965
841
966
842
menu "Console Configuration"
0 commit comments