This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RedBoot: Default network device CDL option.


Hi,

The attached patch adds a CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE option
that allows you to specify a default to the net_device fconfig option.
The default for the option is "" which is what the existing fconfig
default is.

It also removes the CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE option which
didn't seem to be used anywhere.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/
%status
pending
%patch
Index: ecos-working/packages/redboot/current/ChangeLog
===================================================================
--- ecos-working.orig/packages/redboot/current/ChangeLog	2005-06-16 16:12:06.000000000 +0100
+++ ecos-working/packages/redboot/current/ChangeLog	2005-08-17 15:26:19.000000000 +0100
@@ -1,3 +1,13 @@
+2005-08-17  David Vrabel  <dvrabel@arcom.com>
+
+	* cdl/redboot.cdl (CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE): Removed
+	since isn't used anywhere.
+	(CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE): New option to specify the
+	name of the default network device.
+
+	* src/net/net_io.c: Use CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE as
+	the default to the net_device config option.
+
 2005-06-09  David Vrabel  <dvrabel@arcom.com>
 
 	* src/xyzModem.c: Use the Ymodem length field by #define'ing
Index: ecos-working/packages/redboot/current/cdl/redboot.cdl
===================================================================
--- ecos-working.orig/packages/redboot/current/cdl/redboot.cdl	2005-05-27 14:43:16.000000000 +0100
+++ ecos-working/packages/redboot/current/cdl/redboot.cdl	2005-08-17 15:16:24.000000000 +0100
@@ -488,15 +488,13 @@
     
             }
 
-	    cdl_option CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE {
+	    cdl_option CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE {
                 display         "Default network device driver"
                 flavor          data
-                active_if       { !CYGSEM_REDBOOT_FLASH_CONFIG && CYGHWR_NET_DRIVERS > 1 }
-	        legal_values    0 to CYGHWR_NET_DRIVERS-1
-                default_value   0
+                active_if       { CYGSEM_REDBOOT_FLASH_CONFIG && CYGHWR_NET_DRIVERS > 1 }
+                default_value   "\"\""
                 description     "
-                    This is the index of the first network device driver that
-                    RedBoot will try to initialize."
+                    This is the name of the default network device to use."
             }
 
 	    cdl_option CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE {
Index: ecos-working/packages/redboot/current/src/net/net_io.c
===================================================================
--- ecos-working.orig/packages/redboot/current/src/net/net_io.c	2005-05-04 10:35:26.000000000 +0100
+++ ecos-working/packages/redboot/current/src/net/net_io.c	2005-08-17 15:04:04.000000000 +0100
@@ -81,7 +81,7 @@
                       net_device, 
                       ALWAYS_ENABLED, true,
                       CONFIG_NETPORT,
-                      ""
+                      CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE
     );
 #endif
 // Note: the following options are related.  If 'bootp' is false, then

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]