blob: dddde4f4491e408458fc671a0b675e81d32352e1 [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
Prabhakar Kushwaha7d436072013-09-12 11:11:28 +053032COBJS-$(CONFIG_PPC_T1040) += t1040.o
York Sun9e758752012-10-08 07:44:19 +000033COBJS-$(CONFIG_PPC_T4240) += t4240.o
York Sunb6240842013-03-25 07:33:29 +000034COBJS-$(CONFIG_PPC_T4160) += t4240.o
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +000035COBJS-$(CONFIG_PPC_B4420) += b4860.o
York Sund2404142012-10-08 07:44:20 +000036COBJS-$(CONFIG_PPC_B4860) += b4860.o
Kumar Galac916d7c2011-04-13 08:37:44 -050037endif
38
39COBJS := $(COBJS-y)
40SRCS := $(COBJS:.o=.c)
41OBJS := $(addprefix $(obj),$(COBJS))
42
43all: $(LIB)
44
45$(LIB): $(obj).depend $(OBJS)
46 $(call cmd_link_o_target, $(OBJS))
47
48#########################################################################
49
50include $(SRCTREE)/rules.mk
51
52sinclude $(obj).depend
53
54#########################################################################