URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [infra/] [v2_0/] [cdl/] [infra.cdl] - Rev 174
Compare with Previous | Blame | View Log
# ====================================================================## infra.cdl## Infrastructure configuration data## ====================================================================#####ECOSGPLCOPYRIGHTBEGIN###### -------------------------------------------## This file is part of eCos, the Embedded Configurable Operating System.## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.#### eCos is free software; you can redistribute it and/or modify it under## the terms of the GNU General Public License as published by the Free## Software Foundation; either version 2 or (at your option) any later version.#### eCos is distributed in the hope that it will be useful, but WITHOUT ANY## WARRANTY; without even the implied warranty of MERCHANTABILITY or## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License## for more details.#### You should have received a copy of the GNU General Public License along## with eCos; if not, write to the Free Software Foundation, Inc.,## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.#### As a special exception, if other files instantiate templates or use macros## or inline functions from this file, or you compile this file and link it## with other works to produce a work based on this file, this file does not## by itself cause the resulting work to be covered by the GNU General Public## License. However the source code for this file must still be made available## in accordance with section (3) of the GNU General Public License.#### This exception does not invalidate any other reasons why a work based on## this file might be covered by the GNU General Public License.#### Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.## at http://sources.redhat.com/ecos/ecos-license/## -------------------------------------------#####ECOSGPLCOPYRIGHTEND##### ====================================================================######DESCRIPTIONBEGIN###### Author(s): bartv# Original data: bartv,hmt# Contributors:# Date: 1999-06-13######DESCRIPTIONEND###### ====================================================================cdl_package CYGPKG_INFRA {display "Infrastructure"include_dir cyg/infradescription "Common types and useful macros.Tracing and assertion facilities.Package startup options."compile startup.cxx prestart.cxx pkgstart.cxx userstart.cxx \dummyxxmain.cxx null.cxx simple.cxx fancy.cxx buffer.cxx \diag.cxx tcdiag.cxx memcpy.c memset.c delete.cxx eprintf.c \pure.cxx# ====================================================================# cdl_component CYGPKG_INFRA_TYPES {# display "Common Types"# flavor none# active_if 0 ;# Not yet configurable.# description "# These types are used throughout the eCos source code.# Currently there are no configuration options associated# with the Common Types component; they are automatically# set up according to the selected HAL."# }# ====================================================================cdl_component CYGPKG_INFRA_DEBUG {display "Asserts & Tracing"default_value 0description "The eCos source code contains a significant amount ofinternal debugging support, in the form of assertions andtracing.Assertions check at runtime that various conditions are asexpected; if not, execution is halted.Tracing takes the form of text messages that are outputwhenever certain events occur, or whenever functions arecalled or return.The most important property of these checks and messages isthat they are not required for the program to run.It is prudent to develop software with assertions enabled,but disable them when making a product release, thusremoving the overhead of that checking.It is possible to enable assertions and tracingindependently.There are also options controlling the exact behaviour ofthe assertion and tracing facilities, thus giving usersfiner control over the code and data size requirements."script debug.cdl}# ====================================================================cdl_component CYGPKG_INFRA_STARTUP {display "Startup options"flavor nonedescription "Some packages require a startup routine to be called.This can be carried out by application code, by supplyinga routine called cyg_package_start() which calls theappropriate package startup routine(s).Alternatively, this routine can be constructed automaticallyand configured to call the startup routines of your choice."script startup.cdl}# ========================================================================# memcpy()/memset() configurationcdl_option CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMCPY {display "Smaller slower memcpy()"default_value 0description "Enabling this option causes the implementation ofthe standard memcpy() routine to reduce codesize at the expense of execution speed. Thisoption is automatically enabled with the use ofthe -Os option to the compiler. Also note thatthe compiler will try to use its own builtinversion of memcpy() if possible, ignoring theimplementation in this package, unless giventhe -fno-builtin compiler option."}cdl_option CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMSET {display "Smaller slower memset()"default_value 0description "Enabling this option causes the implementation ofthe standard memset() routine to reduce codesize at the expense of execution speed. Thisoption is automatically enabled with the use ofthe -Os option to the compiler. Also note thatthe compiler will try to use its own builtinversion of memset() if possible, ignoring theimplementation in this package, unless giventhe -fno-builtin compiler option."}# ========================================================================cdl_option CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS {display "Provide empty C++ delete functions"default_value 1description "To deal with virtual destructors, where the correct delete()function must be called for the derived class in question, theunderlying delete is called when needed, from destructors. Thisis regardless of whether the destructor is called by delete itself.So there is a reference to delete() from all destructors. Thedefault builtin delete() attempts to call free() if there isone defined. So, if you have destructors, and you have free(),as in malloc() and free(), any destructor counts as a referenceto free(). So the dynamic memory allocation code is linkedin regardless of whether it gets explicitly called. Thisincreases code and data size needlessly.To defeat this undesirable behaviour, we define empty versionsof delete and delete[]. But doing this prevents proper useof dynamic memory in C++ programs via C++'s new and deleteoperators.Therefore, this option is providedfor explicitly disabling the provision of these empty functions,so that new and delete can be used, if that is what is required."}# ========================================================================cdl_option CYGFUN_INFRA_DUMMY_ABORT {display "Provide dummy abort() function"requires !CYGINT_ISO_EXITdefault_value { CYGINT_ISO_EXIT == 0 }compile abort.cxxdescription "This option controls the inclusion of a dummy abort() function.Parts of the C and C++ compiler runtime systems contain referencesto abort(), particulary in the C++ exception handling code. It isnot possible to eliminate these references, so this dummy functionin included to satisfy them. It is not expected that this functionwill ever be called, so its current behaviour is to simply loop."}# ========================================================================cdl_option CYGFUN_INFRA_DUMMY_STRLEN {display "Provide dummy strlen() function"requires !CYGINT_ISO_STRING_STRFUNCSdefault_value { CYGINT_ISO_STRING_STRFUNCS == 0 }compile strlen.cxxdescription "This option controls the inclusion of a dummy strlen() function.Parts of the C and C++ compiler runtime systems contain referencesto strlen(), particulary in the C++ exception handling code. It isnot possible to eliminate these references, so this dummy functionin included to satisfy them. While it is not expected that this functionwill ever be called, it is functional but uses the simplest, smallestalgorithm. There is a faster version of strlen() in the C library."}# ========================================================================# Debugging-related miscellania.define_proc {puts $::cdl_header "/***** proc output start *****/"puts $::cdl_header "#include <pkgconf/system.h>"puts $::cdl_header "/***** proc output end *****/"}# ========================================================================# Global compiler option controlscdl_option CYGBLD_INFRA_CFLAGS_WARNINGS_AS_ERRORS {display "Make all compiler warnings show as errors"requires { is_substr(CYGBLD_GLOBAL_CFLAGS, " -Werror") }default_value 0description "Enabling this option will cause all compiler warnings to showas errors and bring the library build to a halt. This is usedto ensure that the code base is warning free, and thus ensurethat newly introduced warnings stand out and get fixed beforethey show up as weird run-time behavior."}cdl_option CYGBLD_INFRA_CFLAGS_PIPE {display "Make compiler and assembler communicate by pipe"requires { is_substr(CYGBLD_GLOBAL_CFLAGS, " -pipe") }default_value 0description "Enabling this option will cause the compiler to feed theassembly output the the assembler via a pipe instead ofvia a temporary file. This normally reduces the buildtime."}# ========================================================================# Package compiler optionscdl_component CYGPKG_INFRA_OPTIONS {display "Infra build options"flavor nonedescription "Package specific build options including control overcompiler flags used only in building this package."cdl_option CYGPKG_INFRA_CFLAGS_ADD {display "Additional compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding the eCos infra package. These flags are usedin addition to the set of global flags."}cdl_option CYGPKG_INFRA_CFLAGS_REMOVE {display "Suppressed compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding the eCos infra package. These flags are removed fromthe set of global flags if present."}cdl_option CYGPKG_INFRA_LDFLAGS_REMOVE {display "Suppressed linker flags"flavor datano_definedefault_value { "-Wl,--gc-sections" }description "This option modifies the set of linker flags forbuilding the eCos infra package tests. These flags are removed fromthe set of global flags if present."}cdl_option CYGPKG_INFRA_LDFLAGS_ADD {display "Additional linker flags"flavor datano_definedefault_value { "-Wl,--fatal-warnings" }description "This option modifies the set of linker flags forbuilding the eCos infra package tests. These flags are added tothe set of global flags if present."}cdl_option CYGPKG_INFRA_TESTS {display "Infra package tests"flavor datano_definecalculated { "" }}}}
