DaVinci now respects SKIP_LOWLEVEL_INIT
authorDavid Brownell <david-b@pacbell.net>
Tue, 14 Apr 2009 15:52:58 +0000 (08:52 -0700)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:39:47 +0000 (20:39 +0200)
Don't needlessly include lowlevel init code; that's only really
needed with boot-from NOR (not boot-from-NAND).  The 2nd stage
loader (UBL) handles that before it loads U-Boot.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
cpu/arm926ejs/davinci/Makefile

index ed24e6569f1a1d8fe90184be7f2b03b236c4542a..7f51d1777587c6584ba6d83057f553f1bb91d650 100644 (file)
@@ -28,7 +28,11 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)lib$(SOC).a
 
 COBJS  = timer.o ether.o lxt972.o dp83848.o
-SOBJS  = lowlevel_init.o reset.o
+SOBJS  = reset.o
+
+ifndef CONFIG_SKIP_LOWLEVEL_INIT
+SOBJS  += lowlevel_init.o
+endif
 
 SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))