mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
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:
+1
-1
Submodule arch updated: 09b1721505...09d21fd8e0
+1
-1
Submodule configs updated: 9495be5119...36aec1e67d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user