2011-07-26 14:50:46 +00:00
|
|
|
#
|
|
|
|
# Copyright 2010-2011 Freescale Semiconductor, Inc.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-07-26 14:50:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB = $(obj)lib$(BOARD).o
|
|
|
|
|
2012-09-21 00:05:12 +00:00
|
|
|
MINIMAL=
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_SPL_INIT_MINIMAL
|
|
|
|
MINIMAL=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MINIMAL
|
|
|
|
|
|
|
|
COBJS-y += spl_minimal.o tlb.o law.o
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2011-07-26 14:50:46 +00:00
|
|
|
COBJS-y += $(BOARD).o
|
|
|
|
COBJS-y += ddr.o
|
|
|
|
COBJS-y += law.o
|
|
|
|
COBJS-y += tlb.o
|
|
|
|
|
2012-09-21 00:05:12 +00:00
|
|
|
endif
|
|
|
|
|
2011-07-26 14:50:46 +00:00
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|