From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Weber Date: Thu, 10 Nov 2011 10:06:01 +0100 Subject: [U-Boot] ARM: OMAP: Problem when compiling with -DDEBUG and SPL_BUILD Message-ID: <4EBB93F9.2060704@corscience.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, I configured u-boot for devkit8000_config and enabled -DDEBUG in config.mk. I get the following error: lib/libgeneric.o: In function `panic': u-boot/lib/vsprintf.c:730: undefined reference to `do_reset' make[1]: *** [u-boot/spl/u-boot-spl] error 1 I think it is a problem with the CONFIG_SPL_BUILD. commit 05bad4aa56 scaled down version of generic libraries for SPL The function do_reset is in arch/arm/lib/reset.c In arch/arm/lib/Makefile: ifndef CONFIG_SPL_BUILD ... COBJS-y += reset.o ... endif but in lib/Makefile: ifndef CONFIG_SPL_BUILD ... endif COBJS-y += vsprintf.o Thomas