Skip to contentSkip to conversation

ARM: OMAP: Problem when compiling with -DDEBUG and SPL_BUILD

U-Boot Thomas Weber 1 participant 1 message Nov 10, 2011

lore
Share & tools
lore
#0 lore raw

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