From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: eCos configuration question (was Re: [ECOS] General Q ...)
Date: Thu, 31 May 2007 16:41:00 -0000 [thread overview]
Message-ID: <f3ms2c$25i$1@sea.gmane.org> (raw)
In-Reply-To: <20070531151854.GM32489@lunn.ch>
On 2007-05-31, Andrew Lunn <andrew@lunn.ch> wrote:
> On Thu, May 31, 2007 at 09:50:50AM -0500, John Mills wrote:
>> Leaving aside my responses to Andrew cut in below:
>>
>> 1. How should I set or clear this switch in my *.ecc files? I
>> don't recognize the entry in 'configtool'. Should I edit
>> the *.ecc and regenerate the tree? Edit the affected
>> 'hal.h'?
>
> You should never need to edit a .h file. I personally never
> use the gui tool.
I don't think any of the "pros" do. AFAICT, it's just
eye-candy to lessen the initial culture shock for Visual-C
programmers. ;)
> I find it much easier just to edit the ecos.ecc file and use
> ecosconfig
That's what I used to do, but I had a hard time keeping track
of what I had changed from the defaults. Now I find it easiest
to write a shell script that creates a source tree. It seems
like a bit of a hassle at first, but you're always sure what
you've got (all your tweaks are in one small file) and you're
always sure you can repeably generate the same source tree.
________________________________________________________________________
#!/bin/bash
set -x
ecosconfig new foobar net
ecosconfig remove CYGPKG_POSIX
ecosconfig add CYGPKG_IO_I2C
ecosconfig add CYGPKG_FOOBAR_DM2_I2CEEPROM
cat >.tmp$$.cdl <<EOF
cdl_option CYGSEM_HAL_DIAG_MANGLER {user_value None}
cdl_option CYGPKG_IO_NFILE {user_value 256}
cdl_option CYGNUM_FILEIO_NFILE {user_value 256}
cdl_option CYGNUM_FILEIO_NFD {user_value 256}
cdl_option CYGPKG_NET_MAXSOCKETS {user_value 256}
cdl_component CYGSEM_KERNEL_SCHED_TIMESLICE {user_value 0}
cdl_option CYGNUM_MEMALLOC_FALLBACK_MALLOC_POOL_SIZE {user_value 0x20}
cdl_option CYGPKG_NET_MEM_USAGE {user_value 0x260000}
cdl_option CYGPKG_NET_NUM_WAKEUP_EVENTS {user_value 40}
cdl_option CYGPKG_NET_BUILD_HW_TESTS {user_value 1}
cdl_option CYGPKG_NET_FREEBSD_INET6 {user_value 0}
EOF
echo
echo "Importing CDL settings:"
cat .tmp$$cdl
echo
ecosconfig import .tmp$$.cdl
ecosconfig tree
________________________________________________________________________
--
Grant Edwards grante Yow! Half a mind is a
at terrible thing to waste!
visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2007-05-31 16:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-30 17:02 [ECOS] General Q: Calling RedBoot CLI function from eCos app John Mills
2007-05-30 17:12 ` Gary Thomas
2007-05-30 17:16 ` Andrew Lunn
2007-05-30 17:20 ` Andrew Lunn
2007-05-30 17:58 ` John Mills
2007-05-30 19:18 ` John Mills
2007-05-30 21:00 ` Andrew Lunn
2007-05-30 21:06 ` John Mills
2007-05-30 21:41 ` Andrew Lunn
2007-05-31 15:01 ` [ECOS] eCos configuration question (was Re: [ECOS] General Q ...) John Mills
2007-05-31 15:19 ` Gary Thomas
2007-05-31 15:21 ` John Mills
2007-05-31 15:21 ` [ECOS] " Andrew Lunn
2007-05-31 16:41 ` Grant Edwards [this message]
2007-05-31 17:09 ` [ECOS] Re: eCos configuration question Sergei Organov
2007-05-31 17:24 ` [ECOS] Re: eCos configuration question (was Re: [ECOS] General Q ...) Paul D. DeRocco
2007-05-31 17:30 ` Gary Thomas
2007-05-31 17:35 ` Grant Edwards
2007-05-31 19:01 ` Andrew Lunn
2007-05-31 17:18 ` [ECOS] " Sergei Gavrikov
2007-06-01 8:10 ` [ECOS] Re: eCos configuration question Daniel Néri
2007-06-01 9:04 ` Sergei Gavrikov
2007-06-01 14:23 ` Grant Edwards
2007-06-01 14:30 ` Gary Thomas
2007-06-01 14:37 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='f3ms2c$25i$1@sea.gmane.org' \
--to=grante@visi.com \
--cc=ecos-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).