From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Scholz Date: Mon, 27 Oct 2003 09:25:18 +0100 Subject: [U-Boot-Users] Re: U-Boot for AT91RM9200DK In-Reply-To: <20031027080227.6B9F2C59E4@atlas.denx.de> References: <20031027080227.6B9F2C59E4@atlas.denx.de> Message-ID: <3F9CD66E.8040701@imc-berlin.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 Wolfgang , Rick, >>> I have a sperate entry in a Makefile for compiling u-boot up to run >>>in ram so that I can fire a new u-boot while inside u-boot: >>> >>>ram: >>> cd u-boot-0.4.0; \ >>> echo TEXT_BASE = 0x21fa0000 > board/at91rm9200dk/config.mk; \ > ... >>You could still do something like that in your Makefile: >> >> > ram: >> > cd u-boot-0.4.0; \ >> > echo TEXT_BASE = 0x21fa0000 > board/at91rm9200dk/config.mk; \ > > > STOP! NO!! > > Please never ever modify any source files in the Make script!!! :o) Ok. Ok. Maybe the better way would be: RICKs_RAM_config: unconfig @./mkconfig $(@:_config=) arm at91rm9200 RICKSBOARDS @echo '#define TEXT_BASE 0xFOOBAR' >>include/config.h; @echo '#undef CONFIG_INIT_CRITICAL' >>include/config.h; and then ifndef TEXT_BASE TEXT_BASE = 0xBLABLUB endif in board/at91rm9200dk/config.mk. Ok? Steven