From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 14 Mar 2009 14:19:01 +0100 Subject: [U-Boot] [PATCH V2] example/standalone: introduce STANDALONE_LOAD_ADDR In-Reply-To: <200903140912.25796.vapier@gentoo.org> References: <20090308223755.62F46832E8B8@gemini.denx.de> <200903140737.29053.vapier@gentoo.org> <20090314124556.GA23599@game.jcrosoft.org> <200903140912.25796.vapier@gentoo.org> Message-ID: <20090314131901.GB23599@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09:12 Sat 14 Mar , Mike Frysinger wrote: > On Saturday 14 March 2009 08:45:56 Jean-Christophe PLAGNIOL-VILLARD wrote: > > On 07:37 Sat 14 Mar , Mike Frysinger wrote: > > > On Saturday 14 March 2009 07:13:02 Jean-Christophe PLAGNIOL-VILLARD wrote: > > > > that could be overwrite in following order > > > > ARCH > > > > CPU > > > > SOC > > > > BOARD > > > > > > > > via the corresponding config.mk > > > > > > the idea sounds fine to me ... > > > > > > > the value could be exported to the environment to reduce the user > > > > mistake when they try to use example's standalone application > > > > > > i dont really understand what you're trying to say here. could you > > > elaborate so we can fix up the changelog ? > > > > as example generate via the config.h a env var name standalone_load_addr > > automaticly so the end user will just have to built it, load it and run it > > i still dont get it. config.h is the shortcut header to get at the board > config.h. defines do not randomly get exported from there into the > environment. the autoconf.mk mechanism only exports CONFIG_* stuff. via the board config.h you could add default extra env settings by doing this as example #define CONFIG_EXTRA_ENV_SETTINGS "standalone_load_addr="xstr(STANDALONE_LOAD_ADDR) Best Regards, J.