This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
[PATCH] Make redundant FIS build
- From: "David Ho" <davidkwho at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 21 Jul 2006 08:11:33 -0400
- Subject: [ECOS] [PATCH] Make redundant FIS build
Simple patch to fix a build error.
Signed-off-by: David Ho <davidkwho@gmail.com>
---
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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss