xref: /OK3568_Linux_fs/kernel/drivers/net/wan/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Makefile for the Linux network (wan) device drivers.
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun# 3 Aug 2000, Christoph Hellwig <hch@infradead.org>
6*4882a593Smuzhiyun# Rewritten to use lists instead of if-statements.
7*4882a593Smuzhiyun#
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunobj-$(CONFIG_HDLC)		+= hdlc.o
10*4882a593Smuzhiyunobj-$(CONFIG_HDLC_RAW)		+= hdlc_raw.o
11*4882a593Smuzhiyunobj-$(CONFIG_HDLC_RAW_ETH)	+= hdlc_raw_eth.o
12*4882a593Smuzhiyunobj-$(CONFIG_HDLC_CISCO)	+= hdlc_cisco.o
13*4882a593Smuzhiyunobj-$(CONFIG_HDLC_FR)		+= hdlc_fr.o
14*4882a593Smuzhiyunobj-$(CONFIG_HDLC_PPP)		+= hdlc_ppp.o
15*4882a593Smuzhiyunobj-$(CONFIG_HDLC_X25)		+= hdlc_x25.o
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunobj-$(CONFIG_HOSTESS_SV11)	+= z85230.o	hostess_sv11.o
18*4882a593Smuzhiyunobj-$(CONFIG_SEALEVEL_4021)	+= z85230.o	sealevel.o
19*4882a593Smuzhiyunobj-$(CONFIG_COSA)		+= cosa.o
20*4882a593Smuzhiyunobj-$(CONFIG_FARSYNC)		+= farsync.o
21*4882a593Smuzhiyunobj-$(CONFIG_X25_ASY)		+= x25_asy.o
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunobj-$(CONFIG_LANMEDIA)		+= lmc/
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunobj-$(CONFIG_DLCI)		+= dlci.o
26*4882a593Smuzhiyunobj-$(CONFIG_SDLA)		+= sdla.o
27*4882a593Smuzhiyunobj-$(CONFIG_LAPBETHER)		+= lapbether.o
28*4882a593Smuzhiyunobj-$(CONFIG_SBNI)		+= sbni.o
29*4882a593Smuzhiyunobj-$(CONFIG_N2)		+= n2.o
30*4882a593Smuzhiyunobj-$(CONFIG_C101)		+= c101.o
31*4882a593Smuzhiyunobj-$(CONFIG_WANXL)		+= wanxl.o
32*4882a593Smuzhiyunobj-$(CONFIG_PCI200SYN)		+= pci200syn.o
33*4882a593Smuzhiyunobj-$(CONFIG_PC300TOO)		+= pc300too.o
34*4882a593Smuzhiyunobj-$(CONFIG_IXP4XX_HSS)	+= ixp4xx_hss.o
35*4882a593Smuzhiyunobj-$(CONFIG_FSL_UCC_HDLC)	+= fsl_ucc_hdlc.o
36*4882a593Smuzhiyunobj-$(CONFIG_SLIC_DS26522)	+= slic_ds26522.o
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunclean-files := wanxlfw.inc
39*4882a593Smuzhiyun$(obj)/wanxl.o:	$(obj)/wanxlfw.inc
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunifeq ($(CONFIG_WANXL_BUILD_FIRMWARE),y)
42*4882a593Smuzhiyunifeq ($(ARCH),m68k)
43*4882a593Smuzhiyun  M68KCC = $(CC)
44*4882a593Smuzhiyun  M68KLD = $(LD)
45*4882a593Smuzhiyunelse
46*4882a593Smuzhiyun  M68KCC = $(CROSS_COMPILE_M68K)gcc
47*4882a593Smuzhiyun  M68KLD = $(CROSS_COMPILE_M68K)ld
48*4882a593Smuzhiyunendif
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunquiet_cmd_build_wanxlfw = BLDFW   $@
51*4882a593Smuzhiyun      cmd_build_wanxlfw = hexdump -ve '"\n" 16/1 "0x%02X,"' $< | \
52*4882a593Smuzhiyun	sed 's/0x  ,//g;1s/^/static const u8 firmware[]={/;$$s/,$$/\n};\n/' > $@
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun$(obj)/wanxlfw.inc: $(obj)/wanxlfw.bin FORCE
55*4882a593Smuzhiyun	$(call if_changed,build_wanxlfw)
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunquiet_cmd_m68kld_bin_o = M68KLD  $@
58*4882a593Smuzhiyun      cmd_m68kld_bin_o = $(M68KLD) --oformat binary -Ttext 0x1000 $< -o $@
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun$(obj)/wanxlfw.bin: $(obj)/wanxlfw.o FORCE
61*4882a593Smuzhiyun	$(call if_changed,m68kld_bin_o)
62*4882a593Smuzhiyun
63*4882a593Smuzhiyunquiet_cmd_m68kas_o_S = M68KAS  $@
64*4882a593Smuzhiyun      cmd_m68kas_o_S = $(M68KCC) -D__ASSEMBLY__ -Wp,-MD,$(depfile) -I$(srctree)/include/uapi -c -o $@ $<
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun$(obj)/wanxlfw.o: $(src)/wanxlfw.S FORCE
67*4882a593Smuzhiyun	$(call if_changed_dep,m68kas_o_S)
68*4882a593Smuzhiyunendif
69*4882a593Smuzhiyuntargets += wanxlfw.inc wanxlfw.bin wanxlfw.o
70