2 # Copyright 2009-2010 Freescale Semiconductor, Inc.
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # Version 2 as published by the Free Software Foundation.
9 include $(TOPDIR)/config.mk
15 ifdef CONFIG_SPL_BUILD
16 ifdef CONFIG_SPL_INIT_MINIMAL
23 COBJS-$(CONFIG_FSL_LAW) += law.o
27 ifneq ($(CPU),mpc83xx)
31 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
32 COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
33 COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
34 COBJS-$(CONFIG_SYS_SRIO) += srio.o
35 COBJS-$(CONFIG_FSL_LAW) += law.o
39 SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
40 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
42 all: $(obj).depend $(LIB)
45 $(call cmd_link_o_target, $(OBJS))
47 include $(SRCTREE)/rules.mk
49 sinclude $(obj).depend