This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: CDL question
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: John Dallaway <john at dallaway dot org dot uk>
- Cc: eCos discuss list <ecos-discuss at ecos dot sourceware dot org>
- Date: Sat, 6 Jun 2009 20:47:41 +0300
- Subject: [ECOS] Re: CDL question
- References: <20090606140119.GA13837@ubuntu.local> <4A2A8872.9040103@dallaway.org.uk>
John Dallaway wrote:
> The following should work, but there may be a more elegant approach:
>
> default_value { (board == "A") ? "A" : "X" }
> legal_values {
> ((board == "A") ? "A" : "")
> ((board == "A") ? "B" : "")
> ((board == "A") ? "C" : "")
> ((board == "B") ? "X" : "")
> ((board == "B") ? "Y" : "")
> ((board == "B") ? "Z" : "")
> }
Hi,
Thank you. I'm sorry, I was being AFK. Hm, your pseudo-CDL code is like
mine. Perhaps, my mixture was too comprecated and I missed the brackets
in the expression, true speaking in my check were many many is_substr()
concatenations, I will try it again.
I will going to try some stupid? thing. I wonder, if I will create some
fake tree (~ecos repository):
.
|-- ecos.db
|-- baz
| `-- current
| `-- cdl
| `-- baz.cdl
`-- templates
`-- bar
`-- current.cdl
and my ecos.db will be contain only single fake target `foo' with
CYGPKG_BAR. Will I be able to validate CDL-pseudo code just using
`ecosconfig' as
ECOS_REPOSITORY=`pwd` ecosconfig new foo bar
Will ecosconfig complain? Well, I'll try it.
Thank you,
Sergei
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss