blob: 4edd849268e0e8a46b05dfdedac2a24ef3f292b8 [file] [log] [blame]
Kumar Gala2683c532011-04-13 08:37:44 -05001#
2# Copyright 2009-2011 Freescale Semiconductor, Inc.
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Kumar Gala2683c532011-04-13 08:37:44 -05005#
6
7include $(TOPDIR)/config.mk
8
9LIB := $(obj)libfm.o
10
11ifdef CONFIG_FMAN_ENET
12COBJS-y += dtsec.o
13COBJS-y += eth.o
14COBJS-y += fm.o
15COBJS-y += init.o
16COBJS-y += tgec.o
17COBJS-y += tgec_phy.o
18
Roy Zangbafd8032012-10-08 07:44:21 +000019# Soc have FMAN v3 with mEMAC
20COBJS-$(CONFIG_SYS_FMAN_V3) += memac_phy.o
21COBJS-$(CONFIG_SYS_FMAN_V3) += memac.o
22
Kumar Gala2683c532011-04-13 08:37:44 -050023# SoC specific SERDES support
24COBJS-$(CONFIG_P1017) += p1023.o
25COBJS-$(CONFIG_P1023) += p1023.o
26# The P204x, P304x, and P5020 are the same
Kumar Gala2683c532011-04-13 08:37:44 -050027COBJS-$(CONFIG_PPC_P2041) += p5020.o
28COBJS-$(CONFIG_PPC_P3041) += p5020.o
Kumar Gala2683c532011-04-13 08:37:44 -050029COBJS-$(CONFIG_PPC_P4080) += p4080.o
30COBJS-$(CONFIG_PPC_P5020) += p5020.o
Timur Tabi04b4a882012-10-23 09:40:22 +000031COBJS-$(CONFIG_PPC_P5040) += p5040.o
York Sun9941a222012-10-08 07:44:19 +000032COBJS-$(CONFIG_PPC_T4240) += t4240.o
York Sunfb5137a2013-03-25 07:33:29 +000033COBJS-$(CONFIG_PPC_T4160) += t4240.o
Poonam Aggrwal248865e2012-12-23 19:24:16 +000034COBJS-$(CONFIG_PPC_B4420) += b4860.o
York Sunbcf7b3d2012-10-08 07:44:20 +000035COBJS-$(CONFIG_PPC_B4860) += b4860.o
Kumar Gala2683c532011-04-13 08:37:44 -050036endif
37
38COBJS := $(COBJS-y)
39SRCS := $(COBJS:.o=.c)
40OBJS := $(addprefix $(obj),$(COBJS))
41
42all: $(LIB)
43
44$(LIB): $(obj).depend $(OBJS)
45 $(call cmd_link_o_target, $(OBJS))
46
47#########################################################################
48
49include $(SRCTREE)/rules.mk
50
51sinclude $(obj).depend
52
53#########################################################################