From: Wolfgang Denk Date: Thu, 05 Nov 2009 15:29:37 +0100 Subject: [U-Boot] standalone apps and their use of exported functions In-Reply-To: <5A3D79E5-E8FE-475A-898F-75B44AFE4BE5@gmail.com> References: <50321C2D-42AF-4823-A9BA-0A37B6DC9911@gmail.com> <20091105104114.6D48B3F6EC@gemini.denx.de> <6806058A-4EA5-44F9-80D9-410C42869504@gmail.com> <20091105135258.AC9673F6EC@gemini.denx.de> <5A3D79E5-E8FE-475A-898F-75B44AFE4BE5@gmail.com> Message-ID: <20091105142937.383423F6EC@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 Valentin Ecker, In message <5A3D79E5-E8FE-475A-898F-75B44AFE4BE5@gmail.com> you wrote: > ok, maybe i get something wrong, but the README.standalone section 5 > it says that i have to extend the jump table with the functions i want > to export. > e.g i want to call run_command() in my standalone application. This > function is not declared in exports.h. So do i have to add it to the > table then or not? Intuitively i would simply link it. If you link against U-Boot, you don't need a standalone application at all, as then you lose all the specific properties of a SA app: your code is no longer independent of the U-Boot image running on the board, and your code must be released under GPL. So just add it as part of the U-Boot image. 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 "In matrimony, to hesitate is sometimes to be saved." - Butler