# HG changeset patch # User bartv # Date 1050763335 0 # Node ID c27a128cb8612fb4c14e56b5e4bae63b6ffbe11d # Parent ff91ad81d08605b6503a7fdff404713e12ea4cc2 Allow usbeth to build with FreeBSD stack diff --git a/packages/io/usb/eth/slave/current/ChangeLog b/packages/io/usb/eth/slave/current/ChangeLog --- a/packages/io/usb/eth/slave/current/ChangeLog +++ b/packages/io/usb/eth/slave/current/ChangeLog @@ -1,3 +1,9 @@ +2003-04-19 Bart Veer + + * 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. + 2003-04-17 Bart Veer * doc/usbseth.sgml: Fix typo reported by Patrick Doyle diff --git a/packages/io/usb/eth/slave/current/cdl/usbs_eth.cdl b/packages/io/usb/eth/slave/current/cdl/usbs_eth.cdl --- a/packages/io/usb/eth/slave/current/cdl/usbs_eth.cdl +++ b/packages/io/usb/eth/slave/current/cdl/usbs_eth.cdl @@ -8,6 +8,7 @@ #####ECOSGPLCOPYRIGHTBEGIN#### ## ------------------------------------------- ## This file is part of eCos, the Embedded Configurable Operating System. +## Copyright (C) 2003 Bart Veer ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. ## ## eCos is free software; you can redistribute it and/or modify it under @@ -119,4 +120,34 @@ cdl_package CYGPKG_IO_USB_SLAVE_ETH { 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." + } + } }