---help---
If enabled, mount userrw and sssrw partitions at boot.
+config SIDK_S5JT200_AUTOMOUNT_ROMFS
+ bool "Automount ROM read only partiton"
+ default n
+ depends on SIDK_S5JT200_AUTOMOUNT
+ depends on FS_ROMFS
+ ---help---
+ If enabled, rom readonly partition will be mounted automatically
+ at boot.
+
+config SIDK_S5JT200_AUTOMOUNT_ROMFS_DEVNAME
+ string "Device name of the partition for rom readonly file system"
+ default "/dev/smart0p15"
+ depends on SIDK_S5JT200_AUTOMOUNT_ROMFS
+ ---help---
+ Specifies the device name (/dev/smart0pX) of the partition
+ for rom readonly file system.
+
+config SIDK_S5JT200_AUTOMOUNT_ROMFS_MOUNTPOINT
+ string "Mountpoint of the partition for rom read only file system"
+ default "/rom"
+ depends on SIDK_S5JT200_AUTOMOUNT_ROMFS
+ ---help---
+ Specifies the mount point where rom readonly file system
+ will be mounted at.
+
config SIDK_S5JT200_AUTOMOUNT_USERFS
bool "Automount user r/w partiton"
default n
sidk_s5jt200_configure_partitions();
+#if defined(CONFIG_SIDK_S5JT200_AUTOMOUNT_ROMFS_DEVNAME)
+ ret = mount(CONFIG_SIDK_S5JT200_AUTOMOUNT_ROMFS_DEVNAME,
+ CONFIG_SIDK_S5JT200_AUTOMOUNT_ROMFS_MOUNTPOINT,
+ "romfs", 0, NULL);
+
+ if (ret != OK) {
+ lldbg("ERROR: mounting '%s'(ROMFS) failed\n",
+ CONFIG_SIDK_S5JT200_AUTOMOUNT_ROMFS_DEVNAME);
+ }
+#endif /* CONFIG_SIDK_S5JT200_AUTOMOUNT_ROMFS_DEVNAME */
+
#ifdef CONFIG_SIDK_S5JT200_AUTOMOUNT_USERFS_DEVNAME
/* Initialize and mount user partition (if we have) */
ret = mksmartfs(CONFIG_SIDK_S5JT200_AUTOMOUNT_USERFS_DEVNAME, false);