@@ -65,6 +65,7 @@ class LittleFileSystem : public mbed::FileSystem {
65
65
66
66
virtual ~LittleFileSystem ();
67
67
68
+ #if !defined(TARGET_PORTENTA_H7_M7) || !defined(MCUBOOT_BOOTLOADER_BUILD)
68
69
/* * Format a block device with the LittleFileSystem.
69
70
*
70
71
* The block device to format should be mounted when this function is called.
@@ -94,6 +95,7 @@ class LittleFileSystem : public mbed::FileSystem {
94
95
lfs_size_t block_size = MBED_LFS_BLOCK_SIZE,
95
96
lfs_size_t lookahead = MBED_LFS_LOOKAHEAD);
96
97
98
+ #endif
97
99
/* * Mount a file system to a block device.
98
100
*
99
101
* @param bd Block device to mount to.
@@ -107,6 +109,7 @@ class LittleFileSystem : public mbed::FileSystem {
107
109
*/
108
110
virtual int unmount ();
109
111
112
+ #if !defined(TARGET_PORTENTA_H7_M7) || !defined(MCUBOOT_BOOTLOADER_BUILD)
110
113
/* * Reformat a file system. Results in an empty and mounted file system.
111
114
*
112
115
* @param bd
@@ -118,6 +121,7 @@ class LittleFileSystem : public mbed::FileSystem {
118
121
* @return 0 on success, negative error code on failure
119
122
*/
120
123
virtual int reformat (mbed::BlockDevice *bd);
124
+ #endif
121
125
122
126
/* * Remove a file from the file system.
123
127
*
@@ -126,13 +130,15 @@ class LittleFileSystem : public mbed::FileSystem {
126
130
*/
127
131
virtual int remove (const char *path);
128
132
133
+ #if !defined(TARGET_PORTENTA_H7_M7) || !defined(MCUBOOT_BOOTLOADER_BUILD)
129
134
/* * Rename a file in the file system.
130
135
*
131
136
* @param path The name of the file to rename.
132
137
* @param newpath The name to rename it to.
133
138
* @return 0 on success, negative error code on failure
134
139
*/
135
140
virtual int rename (const char *path, const char *newpath);
141
+ #endif
136
142
137
143
/* * Store information about the file in a stat structure
138
144
*
0 commit comments