1# 2# Copyright 2010 Freescale Semiconductor, Inc. 3# 4# SPDX-License-Identifier: GPL-2.0+ 5# 6 7include $(TOPDIR)/config.mk 8 9LIB = $(obj)lib$(BOARD).o 10 11MINIMAL= 12 13ifdef CONFIG_SPL_BUILD 14ifdef CONFIG_SPL_INIT_MINIMAL 15MINIMAL=y 16endif 17endif 18 19ifdef MINIMAL 20 21COBJS-y += spl_minimal.o tlb.o law.o 22 23else 24ifdef CONFIG_SPL_BUILD 25COBJS-y += spl.o 26endif 27COBJS-y += $(BOARD).o 28COBJS-y += ddr.o 29COBJS-y += law.o 30COBJS-y += tlb.o 31 32COBJS-$(CONFIG_FSL_DIU_FB) += diu.o 33endif 34 35SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 36OBJS := $(addprefix $(obj),$(COBJS-y)) 37SOBJS := $(addprefix $(obj),$(SOBJS)) 38 39$(LIB): $(obj).depend $(OBJS) $(SOBJS) 40 $(call cmd_link_o_target, $(OBJS)) 41 42######################################################################### 43 44# defines $(obj).depend target 45include $(SRCTREE)/rules.mk 46 47sinclude $(obj).depend 48 49######################################################################### 50