2 # Copyright 2010 Freescale Semiconductor, Inc.
4 # SPDX-License-Identifier: GPL-2.0+
7 include $(TOPDIR)/config.mk
9 LIB = $(obj)lib$(BOARD).o
13 ifdef CONFIG_SPL_BUILD
14 ifdef CONFIG_SPL_INIT_MINIMAL
21 COBJS-y += spl_minimal.o tlb.o law.o
29 COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
32 SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
33 OBJS := $(addprefix $(obj),$(COBJS-y))
34 SOBJS := $(addprefix $(obj),$(SOBJS))
36 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
37 $(call cmd_link_o_target, $(OBJS))
39 #########################################################################
41 # defines $(obj).depend target
42 include $(SRCTREE)/rules.mk
44 sinclude $(obj).depend
46 #########################################################################