2009-07-31 06:37:45 +00:00
|
|
|
#
|
2010-05-28 08:00:14 +00:00
|
|
|
# Copyright 2009-2010 Freescale Semiconductor, Inc.
|
2009-07-31 06:37:45 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# Version 2 as published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib8xxx.o
|
2009-07-31 06:37:45 +00:00
|
|
|
|
2012-09-20 21:35:21 +00:00
|
|
|
MINIMAL=
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_SPL_INIT_MINIMAL
|
|
|
|
MINIMAL=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MINIMAL
|
|
|
|
|
|
|
|
COBJS-$(CONFIG_FSL_LAW) += law.o
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2010-05-28 08:00:14 +00:00
|
|
|
ifneq ($(CPU),mpc83xx)
|
2009-07-31 06:37:45 +00:00
|
|
|
COBJS-y += cpu.o
|
2010-05-28 08:00:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
|
2011-01-20 10:59:35 +00:00
|
|
|
COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
|
2010-06-17 16:37:20 +00:00
|
|
|
COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
|
2010-12-30 18:09:53 +00:00
|
|
|
COBJS-$(CONFIG_SYS_SRIO) += srio.o
|
2012-08-17 21:17:50 +00:00
|
|
|
COBJS-$(CONFIG_FSL_LAW) += law.o
|
2009-07-31 06:37:45 +00:00
|
|
|
|
2012-09-20 21:35:21 +00:00
|
|
|
endif
|
|
|
|
|
2009-07-31 06:37:45 +00:00
|
|
|
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2009-07-31 06:37:45 +00:00
|
|
|
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|