2007-08-21 22:00:17 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
ifneq ($(OBJTREE),$(SRCTREE))
|
2010-11-22 22:36:42 +00:00
|
|
|
$(shell mkdir -p $(obj)board/freescale/common)
|
2007-08-21 22:00:17 +00:00
|
|
|
endif
|
|
|
|
|
2010-11-22 22:36:42 +00:00
|
|
|
LIB = $(obj)libfreescale.o
|
2007-08-21 22:00:17 +00:00
|
|
|
|
2013-04-16 07:57:59 +00:00
|
|
|
MINIMAL=
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_SPL_INIT_MINIMAL
|
|
|
|
MINIMAL=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef MINIMAL
|
2010-05-21 09:17:48 +00:00
|
|
|
COBJS-$(CONFIG_FSL_CADMUS) += cadmus.o
|
|
|
|
COBJS-$(CONFIG_FSL_VIA) += cds_via.o
|
2010-10-20 20:35:16 +00:00
|
|
|
COBJS-$(CONFIG_FMAN_ENET) += fman.o
|
2010-05-21 09:17:48 +00:00
|
|
|
COBJS-$(CONFIG_FSL_PIXIS) += pixis.o
|
2013-02-18 10:02:19 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-05-21 09:17:48 +00:00
|
|
|
COBJS-$(CONFIG_FSL_NGPIXIS) += ngpixis.o
|
2013-02-18 10:02:19 +00:00
|
|
|
endif
|
2011-11-22 08:51:13 +00:00
|
|
|
COBJS-$(CONFIG_FSL_QIXIS) += qixis.o
|
2010-05-21 09:17:48 +00:00
|
|
|
COBJS-$(CONFIG_PQ_MDS_PIB) += pq-mds-pib.o
|
2013-02-18 10:02:19 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-05-21 09:17:48 +00:00
|
|
|
COBJS-$(CONFIG_ID_EEPROM) += sys_eeprom.o
|
2013-02-18 10:02:19 +00:00
|
|
|
endif
|
2010-05-21 09:17:48 +00:00
|
|
|
COBJS-$(CONFIG_FSL_SGMII_RISER) += sgmii_riser.o
|
2011-05-12 10:46:40 +00:00
|
|
|
ifndef CONFIG_RAMBOOT_PBL
|
2012-01-11 09:20:50 +00:00
|
|
|
COBJS-$(CONFIG_FSL_FIXED_MMC_LOCATION) += sdhc_boot.o
|
2011-05-12 10:46:40 +00:00
|
|
|
endif
|
2008-03-19 20:02:07 +00:00
|
|
|
|
2010-05-21 09:17:48 +00:00
|
|
|
COBJS-$(CONFIG_MPC8541CDS) += cds_pci_ft.o
|
|
|
|
COBJS-$(CONFIG_MPC8548CDS) += cds_pci_ft.o
|
|
|
|
COBJS-$(CONFIG_MPC8555CDS) += cds_pci_ft.o
|
2008-03-19 20:02:07 +00:00
|
|
|
|
2010-05-21 09:14:49 +00:00
|
|
|
COBJS-$(CONFIG_MPC8536DS) += ics307_clk.o
|
2010-05-21 09:05:14 +00:00
|
|
|
COBJS-$(CONFIG_MPC8572DS) += ics307_clk.o
|
2013-02-18 10:02:19 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-06-14 20:28:24 +00:00
|
|
|
COBJS-$(CONFIG_P1022DS) += ics307_clk.o
|
2013-02-18 10:02:19 +00:00
|
|
|
endif
|
2010-05-21 08:02:16 +00:00
|
|
|
COBJS-$(CONFIG_P2020DS) += ics307_clk.o
|
2011-02-09 02:00:08 +00:00
|
|
|
COBJS-$(CONFIG_P3041DS) += ics307_clk.o
|
2010-07-15 21:49:03 +00:00
|
|
|
COBJS-$(CONFIG_P4080DS) += ics307_clk.o
|
2011-02-09 02:00:08 +00:00
|
|
|
COBJS-$(CONFIG_P5020DS) += ics307_clk.o
|
2012-10-23 09:40:22 +00:00
|
|
|
COBJS-$(CONFIG_P5040DS) += ics307_clk.o
|
2012-10-08 07:44:17 +00:00
|
|
|
COBJS-$(CONFIG_VSC_CROSSBAR) += vsc3316_3308.o
|
2008-01-15 19:42:41 +00:00
|
|
|
|
2011-08-30 22:29:23 +00:00
|
|
|
# deal with common files for P-series corenet based devices
|
2011-08-30 22:40:11 +00:00
|
|
|
SUBLIB-$(CONFIG_P2041RDB) += p_corenet/libp_corenet.o
|
2011-08-30 22:29:23 +00:00
|
|
|
SUBLIB-$(CONFIG_P3041DS) += p_corenet/libp_corenet.o
|
|
|
|
SUBLIB-$(CONFIG_P4080DS) += p_corenet/libp_corenet.o
|
|
|
|
SUBLIB-$(CONFIG_P5020DS) += p_corenet/libp_corenet.o
|
2012-10-23 09:40:22 +00:00
|
|
|
SUBLIB-$(CONFIG_P5040DS) += p_corenet/libp_corenet.o
|
2013-04-16 07:57:59 +00:00
|
|
|
endif
|
2011-08-30 22:29:23 +00:00
|
|
|
|
2008-01-15 19:42:41 +00:00
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
2007-08-21 22:00:17 +00:00
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
2011-08-30 22:29:23 +00:00
|
|
|
SUBLIB := $(addprefix $(obj),$(SUBLIB-y))
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS) $(SUBLIB)
|
|
|
|
$(call cmd_link_o_target, $(OBJS) $(SUBLIB))
|
2007-08-21 22:00:17 +00:00
|
|
|
|
2011-08-30 22:29:23 +00:00
|
|
|
$(SUBLIB): $(obj).depend
|
|
|
|
$(MAKE) -C $(dir $(subst $(obj),,$@))
|
2007-08-21 22:00:17 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|