This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
redboot file i/o
- From: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 17 Mar 2004 20:02:01 +0100
- Subject: redboot file i/o
- Organization: Basler AG
Redboot cannot be built with support for file i/o
unless a flash block device is configured. The patch
below fixes this.
--- packages-orig/redboot/current/ChangeLog 2004-03-02 11:23:38.000000000 +0100
+++ packages/redboot/current/ChangeLog 2004-03-17 19:58:35.087454208 +0100
@@ -1,3 +1,7 @@
+2004-03-17 Thomas Koeller <thomas.koeller@baslerweb.com>
+
+ * src/fs/fileio.c: Only include IO package headers if required.
+
2004-02-27 Jani Monoses <jani@iv.ro>
* src/net/http_client.c: Close connection with abort instead of
diff -ru packages-orig/redboot/current/src/fs/fileio.c packages/redboot/current/src/fs/fileio.c
--- packages-orig/redboot/current/src/fs/fileio.c 2003-12-02 15:40:19.000000000 +0100
+++ packages/redboot/current/src/fs/fileio.c 2004-03-17 19:54:41.505963992 +0100
@@ -63,9 +63,11 @@
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
+#ifdef CYGPKG_IO_FLASH_BLOCK_DEVICE
#include <cyg/io/io.h>
#include <cyg/io/flash.h>
#include <cyg/io/config_keys.h>
+#endif
#include <cyg/fileio/fileio.h>
static void do_mount(int argc, char *argv[]);
tk
--
--------------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
thomas dot koeller at baslerweb dot com
http://www.baslerweb.com
==============================