blob: 4edd849268e0e8a46b05dfdedac2a24ef3f292b8 [file] [log] [blame]
Kumar Galac916d7c2011-04-13 08:37:44 -05001#
2# Copyright 2009-2011 Freescale Semiconductor, Inc.
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Kumar Galac916d7c2011-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 Zang111fd192012-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 Galac916d7c2011-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 Galac916d7c2011-04-13 08:37:44 -050027COBJS-$(CONFIG_PPC_P2041) += p5020.o
28COBJS-$(CONFIG_PPC_P3041) += p5020.o
Kumar Galac916d7c2011-04-13 08:37:44 -050029COBJS-$(CONFIG_PPC_P4080) += p4080.o
30COBJS-$(CONFIG_PPC_P5020) += p5020.o
Timur Tabid31e53b2012-10-23 09:40:22 +000031COBJS-$(CONFIG_PPC_P5040) += p5040.o
York Sun9e758752012-10-08 07:44:19 +000032COBJS-$(CONFIG_PPC_T4240) += t4240.o
York Sunb6240842013-03-25 07:33:29 +000033COBJS-$(CONFIG_PPC_T4160) += t4240.o
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +000034COBJS-$(CONFIG_PPC_B4420) += b4860.o
York Sund2404142012-10-08 07:44:20 +000035COBJS-$(CONFIG_PPC_B4860) += b4860.o
Kumar Galac916d7c2011-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#########################################################################