From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30027 invoked by alias); 18 Feb 2008 13:05:56 -0000 Received: (qmail 30012 invoked by uid 22791); 18 Feb 2008 13:05:55 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Mon, 18 Feb 2008 13:05:32 +0000 Received: (qmail 9627 invoked by uid 0); 18 Feb 2008 13:05:29 -0000 Received: from 62.154.182.146 by www159.gmx.net with HTTP; Mon, 18 Feb 2008 14:05:28 +0100 (CET) Content-Type: text/plain; charset="us-ascii" Date: Mon, 18 Feb 2008 13:05:00 -0000 From: "Luqman Munawar" In-Reply-To: <47B96C5C.6030107@mlbassoc.com> Message-ID: <20080218130529.127030@gmx.net> MIME-Version: 1.0 References: <20080215144826.206640@gmx.net> <20080215153652.GC23858@lunn.ch> <20080218112307.195840@gmx.net> <47B96C5C.6030107@mlbassoc.com> To: ecos-discuss@ecos.sourceware.org X-Authenticated: #45058283 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) Content-Transfer-Encoding: 7bit X-GMX-UID: q7uBcqNCbmwoSZn6xzVLfQdPUzc4ctHn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] enabling/disabling options X-SW-Source: 2008-02/txt/msg00126.txt.bz2 hi Gary, > > 1) The option should never be enabled: Create an > > > > "active_if !CYGPKG_HAL_ARM_MX31_MYBOARD" > > > > for this option. > > Ok, there is an option in eCos system CYGHWR_DEVS_FLASH_AMD_AM29F which is in package CYGPKG_DEVS_FLASH_AMD_AM29XXXXX. This option is visible in configtool and can be enabled or disabled. I have another flash chip (CYGHWR_DEVS_FLASH_S29WS256N) in my board and don't like the idea that someone chooses the wrong flash chip instead of or additionally to the correct one and thus creates a non-working build. For this purpose I would deactivate all chips which are not on my board. The idea is show only option in the configtool which would not corrupt the final build. I would write the following line in every chip that is not on my board: "active_if !CYGPKG_HAL_ARM_MX31_MYBOARD" Sounds like a very tideaus job. But I see no other alternative. > > 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 > > > > } > > Now I don't like the user to able to disable the correct flash chip and write following in the package description of my board requires CYGHWR_DEVS_FLASH_S29WS256N > There are certainly some examples in the CVS tree that are similar > to what you want. Look at how the various models of the PowerPC > Adder platform are handled - hal/powerpc/adder. > For me this looks like way to do what I have stated above. If anyone has a better idea how it is inteded in eCos, I would love to hear. -- Regards, Luqman Munawar Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss