File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ static char fullpath[128];
124
124
****************************************************************************/
125
125
126
126
#if defined(CONFIG_EXAMPLES_ELF_ROMFS ) || defined(CONFIG_EXAMPLES_ELF_CROMFS )
127
- extern const unsigned char romfs_img [];
128
- extern const unsigned int romfs_img_len ;
127
+ extern const unsigned char elf_romfs_img [];
128
+ extern const unsigned int elf_romfs_img_len ;
129
129
#elif !defined(CONFIG_EXAMPLES_ELF_EXTERN )
130
130
# error "No file system selected"
131
131
#endif
@@ -223,9 +223,9 @@ int main(int argc, FAR char *argv[])
223
223
CONFIG_EXAMPLES_ELF_DEVMINOR );
224
224
225
225
desc .minor = CONFIG_EXAMPLES_ELF_DEVMINOR ; /* Minor device number of the ROM disk. */
226
- desc .nsectors = NSECTORS (romfs_img_len ); /* The number of sectors in the ROM disk */
226
+ desc .nsectors = NSECTORS (elf_romfs_img_len ); /* The number of sectors in the ROM disk */
227
227
desc .sectsize = SECTORSIZE ; /* The size of one sector in bytes */
228
- desc .image = (FAR uint8_t * )romfs_img ; /* File system image */
228
+ desc .image = (FAR uint8_t * )elf_romfs_img ; /* File system image */
229
229
230
230
ret = boardctl (BOARDIOC_ROMDISK , (uintptr_t )& desc );
231
231
if (ret < 0 )
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ $(ROMFS_IMG): install
85
85
86
86
$(FSIMG_SRC ) : $(ROMFS_IMG )
87
87
$(Q ) (cd $( TESTS_DIR) && echo " #include <nuttx/compiler.h>" > $@ && \
88
- xxd -i romfs.img | sed -e " s/^unsigned char/const unsigned char aligned_data(4)/g" >> $@ )
88
+ xxd -i romfs.img | sed -e " s/^unsigned char/const unsigned char aligned_data(4)/g" | \
89
+ sed -e " s/romfs_img/elf_romfs_img/g" >> $@ )
89
90
90
91
else
91
92
# Make sure that the NuttX gencromfs tool has been built
Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ $(ROMFS_IMG): install
64
64
65
65
$(ROMFS_SRC ) : $(ROMFS_IMG )
66
66
$(Q ) (cd $( LIB_DIR) && echo " #include <nuttx/compiler.h>" > $@ && \
67
- xxd -i romfs.img | sed -e " s/^unsigned char/const unsigned char aligned_data(4)/g" >> $@ )
67
+ xxd -i romfs.img | sed -e " s/^unsigned char/const unsigned char aligned_data(4)/g" | \
68
+ sed -e " s/romfs_img/sotest_romfs_img/g" >> $@ )
68
69
endif
69
70
70
71
# Create the exported symbol table
Original file line number Diff line number Diff line change 85
85
****************************************************************************/
86
86
87
87
#ifdef CONFIG_EXAMPLES_SOTEST_BUILTINFS
88
- extern const unsigned char romfs_img [];
89
- extern const unsigned int romfs_img_len ;
88
+ extern const unsigned char sotest_romfs_img [];
89
+ extern const unsigned int sotest_romfs_img_len ;
90
90
#endif
91
91
92
92
extern const struct symtab_s g_sot_exports [];
@@ -127,10 +127,10 @@ int main(int argc, FAR char *argv[])
127
127
#ifdef CONFIG_EXAMPLES_SOTEST_BUILTINFS
128
128
/* Create a ROM disk for the ROMFS filesystem */
129
129
130
- desc .minor = 0 ; /* Minor device number of the ROM disk. */
131
- desc .nsectors = NSECTORS (romfs_img_len ); /* The number of sectors in the ROM disk */
130
+ desc .minor = CONFIG_EXAMPLES_SOTEST_DEVMINOR ; /* Minor device number of the ROM disk. */
131
+ desc .nsectors = NSECTORS (sotest_romfs_img_len ); /* The number of sectors in the ROM disk */
132
132
desc .sectsize = SECTORSIZE ; /* The size of one sector in bytes */
133
- desc .image = (FAR uint8_t * )romfs_img ; /* File system image */
133
+ desc .image = (FAR uint8_t * )sotest_romfs_img ; /* File system image */
134
134
135
135
for (; desc .minor <= CONFIG_EXAMPLES_SOTEST_DEVMINOR_MAX ; desc .minor ++ )
136
136
{
You can’t perform that action at this time.
0 commit comments