Kumar Gala | c916d7c | 2011-04-13 08:37:44 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2009-2011 Freescale Semiconductor, Inc. |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Kumar Gala | c916d7c | 2011-04-13 08:37:44 -0500 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB := $(obj)libfm.o |
| 10 | |
| 11 | ifdef CONFIG_FMAN_ENET |
| 12 | COBJS-y += dtsec.o |
| 13 | COBJS-y += eth.o |
| 14 | COBJS-y += fm.o |
| 15 | COBJS-y += init.o |
| 16 | COBJS-y += tgec.o |
| 17 | COBJS-y += tgec_phy.o |
| 18 | |
Roy Zang | 111fd19 | 2012-10-08 07:44:21 +0000 | [diff] [blame] | 19 | # Soc have FMAN v3 with mEMAC |
| 20 | COBJS-$(CONFIG_SYS_FMAN_V3) += memac_phy.o |
| 21 | COBJS-$(CONFIG_SYS_FMAN_V3) += memac.o |
| 22 | |
Kumar Gala | c916d7c | 2011-04-13 08:37:44 -0500 | [diff] [blame] | 23 | # SoC specific SERDES support |
| 24 | COBJS-$(CONFIG_P1017) += p1023.o |
| 25 | COBJS-$(CONFIG_P1023) += p1023.o |
| 26 | # The P204x, P304x, and P5020 are the same |
Kumar Gala | c916d7c | 2011-04-13 08:37:44 -0500 | [diff] [blame] | 27 | COBJS-$(CONFIG_PPC_P2041) += p5020.o |
| 28 | COBJS-$(CONFIG_PPC_P3041) += p5020.o |
Kumar Gala | c916d7c | 2011-04-13 08:37:44 -0500 | [diff] [blame] | 29 | COBJS-$(CONFIG_PPC_P4080) += p4080.o |
| 30 | COBJS-$(CONFIG_PPC_P5020) += p5020.o |
Timur Tabi | d31e53b | 2012-10-23 09:40:22 +0000 | [diff] [blame] | 31 | COBJS-$(CONFIG_PPC_P5040) += p5040.o |
York Sun | 9e75875 | 2012-10-08 07:44:19 +0000 | [diff] [blame] | 32 | COBJS-$(CONFIG_PPC_T4240) += t4240.o |
York Sun | b624084 | 2013-03-25 07:33:29 +0000 | [diff] [blame] | 33 | COBJS-$(CONFIG_PPC_T4160) += t4240.o |
Poonam Aggrwal | e1dbdd8 | 2012-12-23 19:24:16 +0000 | [diff] [blame] | 34 | COBJS-$(CONFIG_PPC_B4420) += b4860.o |
York Sun | d240414 | 2012-10-08 07:44:20 +0000 | [diff] [blame] | 35 | COBJS-$(CONFIG_PPC_B4860) += b4860.o |
Kumar Gala | c916d7c | 2011-04-13 08:37:44 -0500 | [diff] [blame] | 36 | endif |
| 37 | |
| 38 | COBJS := $(COBJS-y) |
| 39 | SRCS := $(COBJS:.o=.c) |
| 40 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 41 | |
| 42 | all: $(LIB) |
| 43 | |
| 44 | $(LIB): $(obj).depend $(OBJS) |
| 45 | $(call cmd_link_o_target, $(OBJS)) |
| 46 | |
| 47 | ######################################################################### |
| 48 | |
| 49 | include $(SRCTREE)/rules.mk |
| 50 | |
| 51 | sinclude $(obj).depend |
| 52 | |
| 53 | ######################################################################### |