This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
allow usb-ethernet to build with FreeBSD stack
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Sat, 19 Apr 2003 15:41:48 +0100 (BST)
- Subject: allow usb-ethernet to build with FreeBSD stack
Just a minor fix. The compiler flag support was missing completely
until now, for no particular reason. Adding -D_KERNEL and -D__ECOS
avoids build problems.
Bart
2003-04-19 Bart Veer <bartv at ecoscentric dot com>
* cdl/usbs_eth.cdl: Add per-package compiler flag support and
default to -D_KERNEL and -D__ECOS for use with the new network
stack.
Index: io/usb/eth/slave/current/cdl/usbs_eth.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/usb/eth/slave/current/cdl/usbs_eth.cdl,v
retrieving revision 1.5
diff -u -r1.5 usbs_eth.cdl
--- io/usb/eth/slave/current/cdl/usbs_eth.cdl 24 Feb 2003 14:25:32 -0000 1.5
+++ io/usb/eth/slave/current/cdl/usbs_eth.cdl 19 Apr 2003 14:37:51 -0000
@@ -118,5 +119,35 @@
implements CYGHWR_NET_DRIVER_ETH1
requires !CYGHWR_NET_DRIVER_ETH1_BOOTP
}
+ }
+
+ cdl_component CYGPKG_IO_USB_SLAVE_ETH_OPTIONS {
+ display "Build options"
+ flavor none
+
+ description "
+ Package-specific build options including control over compiler
+ flags used only in building this package."
+
+ cdl_option CYGPKG_IO_USB_SLAVE_ETH_CFLAGS_ADD {
+ display "Additional compiler flags"
+ flavor data
+ no_define
+ default_value { "-D_KERNEL -D__ECOS" }
+ description "
+ This option modifies the set of compiler flags for
+ building this package. These flags are used in addition
+ to the set of global flags."
+ }
+ cdl_option CYGPKG_IO_USB_SLAVE_ETH_CFLAGS_REMOVE {
+ display "Suppressed compiler flags"
+ flavor data
+ no_define
+ default_value { "" }
+ description "
+ This option modifies the set of compiler flags for
+ building this package. These flags are removed from
+ the set of global flags if present."
+ }
}
}