2 # Copyright 2010 Freescale Semiconductor, Inc.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the Free
6 # Software Foundation; either version 2 of the License, or (at your option)
10 include $(TOPDIR)/config.mk
12 LIB = $(obj)lib$(BOARD).o
16 ifdef CONFIG_SPL_BUILD
17 ifdef CONFIG_SPL_INIT_MINIMAL
24 COBJS-y += spl_minimal.o tlb.o law.o
32 COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
35 SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
36 OBJS := $(addprefix $(obj),$(COBJS-y))
37 SOBJS := $(addprefix $(obj),$(SOBJS))
39 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
40 $(call cmd_link_o_target, $(OBJS))
42 #########################################################################
44 # defines $(obj).depend target
45 include $(SRCTREE)/rules.mk
47 sinclude $(obj).depend
49 #########################################################################