From: Tom Rini Date: Wed, 15 Aug 2012 10:11:18 -0700 Subject: [U-Boot] [PATCH 1/1] lib, panic: don't call do_reset in SPL (debug). In-Reply-To: <502AB7D2.80503@myspectrum.nl> References: <502AB715.2040403@myspectrum.nl> <502AB7D2.80503@myspectrum.nl> Message-ID: <20120815171118.GC23290@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 14, 2012 at 10:40:50PM +0200, Jeroen Hofstee wrote: > Several omap boards won't build when DEBUG is defined, SPL build error: > "vsprintf.c:791: undefined reference to `do_reset'", since SPL has no > commands. Therefore don't call do_reset in SPL. SPL panic will end in an > endless loop or call hang if CONFIG_PANIC_HANG is defined. > > cc: Tom Rini > Signed-off-by: Jeroen Hofstee OK, the problem I see with this is it forces a policy on everyone, even non-DEBUG cases. What I'd like to see, and I'll submit the patch, is to document that when debugging SPL one should also set CONFIG_PANIC_HANG as do_reset is often (but it could be defined!) undefined for SPL. -- Tom