From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17853 invoked by alias); 28 Jan 2011 17:52:29 -0000 Received: (qmail 17549 invoked by uid 22791); 28 Jan 2011 17:52:27 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Jan 2011 17:52:18 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id A8DE73370458 for ; Fri, 28 Jan 2011 17:52:15 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kdv1Knm13S-P; Fri, 28 Jan 2011 17:52:13 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001116] Instruct lwIP to use special section for buffers and heap. X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: sergei.gavrikov@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 28 Jan 2011 17:52:00 -0000 Message-Id: <20110128175212.EF2792F80003@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2011-01/txt/msg00072.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001116 --- Comment #11 from Sergei Gavrikov 2011-01-28 17:52:10 GMT --- (In reply to comment #10) > (In reply to comment #9) > > "Make it as simple as you can, and no simpler" :-) But, > > > > I would not use calculated command as you proposed > > Why not use calculated? To be clear. I have only wanted an empty MEM_SECTION definition by default. > By using calculated value we have a single entry point for section name. > It can be further enhanced by following: > > cdl_component CYGDAT_LWIP_MEM_SECTION_NAME { > ... > legal_values { "ahb_bss" "ahb_0" } > ... > } Ah, I missed that you need a choice from the list. > > > > cdl_option CYGDAT_LWIP_MEM_SECTION { > > display "Special memory section for lwIP buffers" > > default_value 0 > > > > IMO, you can do it in your CDL (HAL) > > > > cdl_option CYGDAT_LWIP_MEM_SECTION_NAME { > > ... > > requires { CYGDAT_LWIP_MEM_SECTION == ... } ...so, I enterred a mess when I have been pointed on the 'booldata' above. > > Comments? > > The combination that you are proposing inherently raises a conflict which I > prefer to avoid. > However I tried it and the conflict resolution offered by configtool is not > what we want - it offers CYGDAT_LWIP_MEM_SECTION_NAME = 0 ?? Yes, I'm sorry, then that can be cdl_package CYGPKG_NET_LWIP { ... cdl_option CYGSEM_LWIP_MEM_SECTION { display "Relocate memory pools" flavor bool calculated is_active(CYGDAT_LWIP_MEM_SECTION_NAME) ... } } cdl_package CYGPKG_HAL_... { ... cdl_option CYGDAT_LWIP_MEM_SECTION_NAME { display "Name of section" flavor data default_value { "\".foo\"" } legal_values { "\".foo\"" "\".bar\"" "\".baz\"" } ... } } and the check will be simple #if CYGSEM_LWIP_MEM_SECTION #include #define MEM_SECTION CYGBLD_ATTRIB_SECTION(CYGDAT_LWIP_MEM_SECTION_NAME) #else #define MEM_SECTION #endif Well, if HAL does not provide CYGDAT_LWIP_MEM_SECTION_NAME, that lwIP's CYGSEM_LWIP_MEM_SECTION will be not defined and other targets (the most) will be happy with #define MEM_SECTION Your target's CDL will turn on CDL option CYGSEM_LWIP_MEM_SECTION and memory section name will be specified. I hope I get it what you looking for. -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.