From: Wolfgang Denk Date: Mon, 02 Jan 2012 15:49:04 +0100 Subject: [U-Boot] initcall revisited - A new idea to discuss In-Reply-To: <4F019ABB.9010201@gmail.com> References: <4F019ABB.9010201@gmail.com> Message-ID: <20120102144904.A3F1082272@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Graeme Russ, In message <4F019ABB.9010201@gmail.com> you wrote: > > Which got me to thinking, what if we had an initcall macro which included > the dependency information. Imagine this rough example: ... > INITCALL(display_banner, "banner", "dram,board_early") > > Which says that the display_banner() function, when completed fulfils the > 'banner' dependency, and requires both the 'dram' and 'board_early' > dependencies to be fulfilled in order to run Sounds great! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Our OS who art in CPU, UNIX be thy name. Thy programs run, thy syscalls done, In kernel as it is in user!