Fix romdisk_register prototype. Most ROMFS images actually lie in RAM. If moved to FLASH with const storage class, then changes are required to avoid warnings
This commit is contained in:
parent
2bd27c856c
commit
3a59eb4340
2
arch
2
arch
@ -1 +1 @@
|
||||
Subproject commit 09b1721505896b61b147e2fa25cab9ad532579cd
|
||||
Subproject commit 09d21fd8e0b47fd0d6f7c32adf39b9b29dba9cd3
|
2
configs
2
configs
@ -1 +1 @@
|
||||
Subproject commit 9495be511983679867e898407f87d18a37ac72bd
|
||||
Subproject commit 36aec1e67d0f2c877d3943c2c30297516ae051a1
|
@ -94,9 +94,9 @@ extern "C"
|
||||
#ifdef CONFIG_FS_WRITABLE
|
||||
int ramdisk_register(int minor, FAR uint8_t *buffer, uint32_t nsectors,
|
||||
uint16_t sectize, uint8_t rdflags);
|
||||
#define romdisk_register(m,b,n,s) ramdisk_register(m,b,n,s,0)
|
||||
#define romdisk_register(m,b,n,s) ramdisk_register(m,(FAR uint8_t *)b,n,s,0)
|
||||
#else
|
||||
int romdisk_register(int minor, FAR uint8_t *buffer, uint32_t nsectors,
|
||||
int romdisk_register(int minor, FAR const uint8_t *buffer, uint32_t nsectors,
|
||||
uint16_t sectize);
|
||||
#endif
|
||||
|
||||
|
@ -393,6 +393,9 @@ mkromfsimg.sh
|
||||
image. It accepts an rcS script "template" and generates and image that
|
||||
may be mounted under /etc in the NuttX pseudo file system.
|
||||
|
||||
TIP: Edit the resulting header file and mark the generated data values
|
||||
as 'const' so that they will be stored in FLASH.
|
||||
|
||||
mkdeps.c
|
||||
cnvwindeps.c
|
||||
mkwindeps.sh
|
||||
|
Loading…
Reference in New Issue
Block a user