David Ho wrote:
Simple patch to fix a build error.Signed-off-by: David Ho <[EMAIL PROTECTED]> --- diff --git a/packages/redboot/current/src/flash.c b/packages/redboot/current/src/fl index e8c6e5d..49bc0ad 100644 --- a/packages/redboot/current/src/flash.c +++ b/packages/redboot/current/src/flash.c @@ -273,8 +273,10 @@ #endif img->u.valid_info.version_count=img->u.valid_info.version_count+1; //ready to go.... +#ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING if (do_autolock) flash_unlock((void *)fis_addr, fisdir_size, (void **)&err_addr); +#endif flash_erase(fis_addr, fisdir_size, (void **)&err_addr); //now magic is 0xffffffff
Applied [with slight modifications], thanks. Next time, please send to [EMAIL PROTECTED] Also include a ChangeLog entry so we don't have to fabricate one. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
