]>
Commit | Line | Data |
---|---|---|
c916d7c9 KG |
1 | # |
2 | # Copyright 2009-2011 Freescale Semiconductor, Inc. | |
3 | # | |
1a459660 | 4 | # SPDX-License-Identifier: GPL-2.0+ |
c916d7c9 KG |
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 | ||
111fd19e RZ |
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 | ||
c916d7c9 KG |
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 | |
c916d7c9 KG |
27 | COBJS-$(CONFIG_PPC_P2041) += p5020.o |
28 | COBJS-$(CONFIG_PPC_P3041) += p5020.o | |
29 | COBJS-$(CONFIG_PPC_P4080) += p4080.o | |
30 | COBJS-$(CONFIG_PPC_P5020) += p5020.o | |
d31e53b4 | 31 | COBJS-$(CONFIG_PPC_P5040) += p5040.o |
7d436078 | 32 | COBJS-$(CONFIG_PPC_T1040) += t1040.o |
9e758758 | 33 | COBJS-$(CONFIG_PPC_T4240) += t4240.o |
b6240846 | 34 | COBJS-$(CONFIG_PPC_T4160) += t4240.o |
e1dbdd81 | 35 | COBJS-$(CONFIG_PPC_B4420) += b4860.o |
d2404141 | 36 | COBJS-$(CONFIG_PPC_B4860) += b4860.o |
c916d7c9 KG |
37 | endif |
38 | ||
39 | COBJS := $(COBJS-y) | |
40 | SRCS := $(COBJS:.o=.c) | |
41 | OBJS := $(addprefix $(obj),$(COBJS)) | |
42 | ||
43 | all: $(LIB) | |
44 | ||
45 | $(LIB): $(obj).depend $(OBJS) | |
46 | $(call cmd_link_o_target, $(OBJS)) | |
47 | ||
48 | ######################################################################### | |
49 | ||
50 | include $(SRCTREE)/rules.mk | |
51 | ||
52 | sinclude $(obj).depend | |
53 | ||
54 | ######################################################################### |