xref: /openbmc/u-boot/board/freescale/common/Makefile (revision f45210d6)
17608d75fSKim Phillips#
27608d75fSKim Phillips# (C) Copyright 2006
37608d75fSKim Phillips# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47608d75fSKim Phillips#
57608d75fSKim Phillips# See file CREDITS for list of people who contributed to this
67608d75fSKim Phillips# project.
77608d75fSKim Phillips#
87608d75fSKim Phillips# This program is free software; you can redistribute it and/or
97608d75fSKim Phillips# modify it under the terms of the GNU General Public License as
107608d75fSKim Phillips# published by the Free Software Foundation; either version 2 of
117608d75fSKim Phillips# the License, or (at your option) any later version.
127608d75fSKim Phillips#
137608d75fSKim Phillips# This program is distributed in the hope that it will be useful,
147608d75fSKim Phillips# but WITHOUT ANY WARRANTY; without even the implied warranty of
157608d75fSKim Phillips# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
167608d75fSKim Phillips# GNU General Public License for more details.
177608d75fSKim Phillips#
187608d75fSKim Phillips# You should have received a copy of the GNU General Public License
197608d75fSKim Phillips# along with this program; if not, write to the Free Software
207608d75fSKim Phillips# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217608d75fSKim Phillips# MA 02111-1307 USA
227608d75fSKim Phillips#
237608d75fSKim Phillips
247608d75fSKim Phillipsinclude $(TOPDIR)/config.mk
257608d75fSKim Phillips
267608d75fSKim Phillipsifneq ($(OBJTREE),$(SRCTREE))
27566d49a3SWolfgang Denk$(shell mkdir -p $(obj)board/freescale/common)
287608d75fSKim Phillipsendif
297608d75fSKim Phillips
30566d49a3SWolfgang DenkLIB	= $(obj)libfreescale.o
317608d75fSKim Phillips
326ece2550SKumar GalaCOBJS-$(CONFIG_FSL_CADMUS)	+= cadmus.o
336ece2550SKumar GalaCOBJS-$(CONFIG_FSL_VIA)		+= cds_via.o
342915609aSAndy FlemingCOBJS-$(CONFIG_FMAN_ENET)	+= fman.o
356ece2550SKumar GalaCOBJS-$(CONFIG_FSL_PIXIS)	+= pixis.o
36*f45210d6SMatthew McClintockifndef CONFIG_SPL_BUILD
376ece2550SKumar GalaCOBJS-$(CONFIG_FSL_NGPIXIS)	+= ngpixis.o
38*f45210d6SMatthew McClintockendif
39ae6b03feSShengzhou LiuCOBJS-$(CONFIG_FSL_QIXIS)	+= qixis.o
406ece2550SKumar GalaCOBJS-$(CONFIG_PQ_MDS_PIB)	+= pq-mds-pib.o
41*f45210d6SMatthew McClintockifndef CONFIG_SPL_BUILD
426ece2550SKumar GalaCOBJS-$(CONFIG_ID_EEPROM)	+= sys_eeprom.o
43*f45210d6SMatthew McClintockendif
446ece2550SKumar GalaCOBJS-$(CONFIG_FSL_SGMII_RISER)	+= sgmii_riser.o
45be827c7aSShaohui Xieifndef CONFIG_RAMBOOT_PBL
464394d0c2SFabio EstevamCOBJS-$(CONFIG_FSL_FIXED_MMC_LOCATION)	+= sdhc_boot.o
47be827c7aSShaohui Xieendif
4825eedb2cSJon Loeliger
496ece2550SKumar GalaCOBJS-$(CONFIG_MPC8541CDS)	+= cds_pci_ft.o
506ece2550SKumar GalaCOBJS-$(CONFIG_MPC8548CDS)	+= cds_pci_ft.o
516ece2550SKumar GalaCOBJS-$(CONFIG_MPC8555CDS)	+= cds_pci_ft.o
5225eedb2cSJon Loeliger
53c7e1a43dSKumar GalaCOBJS-$(CONFIG_MPC8536DS)	+= ics307_clk.o
54509c4c4cSKumar GalaCOBJS-$(CONFIG_MPC8572DS)	+= ics307_clk.o
55*f45210d6SMatthew McClintockifndef CONFIG_SPL_BUILD
56c59e1b4dSTimur TabiCOBJS-$(CONFIG_P1022DS)		+= ics307_clk.o
57*f45210d6SMatthew McClintockendif
58ebf9d526SKumar GalaCOBJS-$(CONFIG_P2020DS)		+= ics307_clk.o
59e02aea61SKumar GalaCOBJS-$(CONFIG_P3041DS)		+= ics307_clk.o
60d1712369SKumar GalaCOBJS-$(CONFIG_P4080DS)		+= ics307_clk.o
61e02aea61SKumar GalaCOBJS-$(CONFIG_P5020DS)		+= ics307_clk.o
62d31e53b4STimur TabiCOBJS-$(CONFIG_P5040DS)		+= ics307_clk.o
63aa42cb71SShaveta LeekhaCOBJS-$(CONFIG_VSC_CROSSBAR)    += vsc3316_3308.o
647608d75fSKim Phillips
65360275b3SKumar Gala# deal with common files for P-series corenet based devices
66f8bc7bb5SKumar GalaSUBLIB-$(CONFIG_P2041RDB)	+= p_corenet/libp_corenet.o
67360275b3SKumar GalaSUBLIB-$(CONFIG_P3041DS)	+= p_corenet/libp_corenet.o
68360275b3SKumar GalaSUBLIB-$(CONFIG_P4080DS)	+= p_corenet/libp_corenet.o
69360275b3SKumar GalaSUBLIB-$(CONFIG_P5020DS)	+= p_corenet/libp_corenet.o
70d31e53b4STimur TabiSUBLIB-$(CONFIG_P5040DS)	+= p_corenet/libp_corenet.o
71360275b3SKumar Gala
72ad8f8687SJon LoeligerSRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
73ad8f8687SJon LoeligerOBJS	:= $(addprefix $(obj),$(COBJS-y))
747608d75fSKim PhillipsSOBJS	:= $(addprefix $(obj),$(SOBJS))
75360275b3SKumar GalaSUBLIB	:= $(addprefix $(obj),$(SUBLIB-y))
767608d75fSKim Phillips
77360275b3SKumar Gala$(LIB):	$(obj).depend $(OBJS) $(SUBLIB)
78360275b3SKumar Gala	$(call cmd_link_o_target, $(OBJS) $(SUBLIB))
79360275b3SKumar Gala
80360275b3SKumar Gala$(SUBLIB): $(obj).depend
81360275b3SKumar Gala	$(MAKE) -C $(dir $(subst $(obj),,$@))
827608d75fSKim Phillips
837608d75fSKim Phillips#########################################################################
847608d75fSKim Phillips
857608d75fSKim Phillips# defines $(obj).depend target
867608d75fSKim Phillipsinclude $(SRCTREE)/rules.mk
877608d75fSKim Phillips
887608d75fSKim Phillipssinclude $(obj).depend
897608d75fSKim Phillips
907608d75fSKim Phillips#########################################################################
91