This is the mail archive of the ecos-discuss@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]

enabling/disabling options


Wel, my idea is to take away possibility of mangling with options in case this would end up in a corrupt build.

I know that the system warns in case of most conflicts but there are also cases when you can create a corrupt build without seeing any warning.


For my board, a derivative of freescale mx31 board, I am going to do following:

1) The option should never be enabled: Create an 

"active_if !CYGPKG_HAL_ARM_MX31_MYBOARD" 

for this option.

2) The option should always be enabled:
Create a "requires OPTION_NAME" in the cdl script for my board package as follows:

cdl_package CYGPKG_HAL_ARM_MX31_MYBOARD {
requires OPTION_NAME

}



Is this the way how it is intended in eCos?



Regards,

Luqman Munawar



-------- Original-Nachricht --------
> Datum: Fri, 15 Feb 2008 16:36:52 +0100
> Von: Andrew Lunn <andrew@lunn.ch>
> An: Luqman Munawar <haqim1@gmx.de>
> CC: ecos-discuss@ecos.sourceware.org
> Betreff: Re: [ECOS] difference between active / enabled components?

> On Fri, Feb 15, 2008 at 03:48:26PM +0100, Luqman Munawar wrote:
> > hello,
> > 
> > I have a general question regarding the difference between an active and
> enabled option/components.
> > 
> > I have checked that there is a define for every option that is both
> active and enabled otherwise no define is created in the headers.
> > 
> > So what is the use of having both of them? 
> 
> Active and enabled are two different concepts in CDL.  See
> 
> http://ecos.sourceware.org/docs-latest/cdl-guide/language.properties.html
> 
> Basically, the active property indicates if the option can be
> used. i.e. all the requirements of the option/package are fulfilled
> and all its parents in the hierarchy are enabled. If the property is
> active, you can then enable/disable it.
> 
>         Andrew
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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