1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# Makefile for the Linux network (wan) device drivers. 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds# 3 Aug 2000, Christoph Hellwig <hch@infradead.org> 61da177e4SLinus Torvalds# Rewritten to use lists instead of if-statements. 71da177e4SLinus Torvalds# 81da177e4SLinus Torvalds 9eb2a2fd9SKrzysztof Halasaobj-$(CONFIG_HDLC) += hdlc.o 10eb2a2fd9SKrzysztof Halasaobj-$(CONFIG_HDLC_RAW) += hdlc_raw.o 11eb2a2fd9SKrzysztof Halasaobj-$(CONFIG_HDLC_RAW_ETH) += hdlc_raw_eth.o 12eb2a2fd9SKrzysztof Halasaobj-$(CONFIG_HDLC_CISCO) += hdlc_cisco.o 13eb2a2fd9SKrzysztof Halasaobj-$(CONFIG_HDLC_FR) += hdlc_fr.o 14e022c2f0SKrzysztof Hałasaobj-$(CONFIG_HDLC_PPP) += hdlc_ppp.o 15eb2a2fd9SKrzysztof Halasaobj-$(CONFIG_HDLC_X25) += hdlc_x25.o 161da177e4SLinus Torvalds 1752e8a6a2SKrzysztof Hałasaobj-$(CONFIG_HOSTESS_SV11) += z85230.o hostess_sv11.o 1852e8a6a2SKrzysztof Hałasaobj-$(CONFIG_SEALEVEL_4021) += z85230.o sealevel.o 19aca25753SKrzysztof Hałasaobj-$(CONFIG_COSA) += cosa.o 200bee8db8SKrzysztof Hałasaobj-$(CONFIG_FARSYNC) += farsync.o 211da177e4SLinus Torvaldsobj-$(CONFIG_X25_ASY) += x25_asy.o 221da177e4SLinus Torvalds 231da177e4SLinus Torvaldsobj-$(CONFIG_LANMEDIA) += lmc/ 241da177e4SLinus Torvalds 251da177e4SLinus Torvaldsobj-$(CONFIG_DLCI) += dlci.o 261da177e4SLinus Torvaldsobj-$(CONFIG_SDLA) += sdla.o 271da177e4SLinus Torvaldsobj-$(CONFIG_LAPBETHER) += lapbether.o 281da177e4SLinus Torvaldsobj-$(CONFIG_SBNI) += sbni.o 291da177e4SLinus Torvaldsobj-$(CONFIG_N2) += n2.o 301da177e4SLinus Torvaldsobj-$(CONFIG_C101) += c101.o 311da177e4SLinus Torvaldsobj-$(CONFIG_WANXL) += wanxl.o 321da177e4SLinus Torvaldsobj-$(CONFIG_PCI200SYN) += pci200syn.o 337517c1b7SKrzysztof Halasaobj-$(CONFIG_PC300TOO) += pc300too.o 34f5b89e41SKrzysztof Hałasaobj-$(CONFIG_IXP4XX_HSS) += ixp4xx_hss.o 35c19b6d24SZhao Qiangobj-$(CONFIG_FSL_UCC_HDLC) += fsl_ucc_hdlc.o 36c37d4a00SZhao Qiangobj-$(CONFIG_SLIC_DS26522) += slic_ds26522.o 371da177e4SLinus Torvalds 381da177e4SLinus Torvaldsclean-files := wanxlfw.inc 391da177e4SLinus Torvalds$(obj)/wanxl.o: $(obj)/wanxlfw.inc 401da177e4SLinus Torvalds 411da177e4SLinus Torvaldsifeq ($(CONFIG_WANXL_BUILD_FIRMWARE),y) 421da177e4SLinus Torvaldsifeq ($(ARCH),m68k) 43734f3719SMasahiro Yamada M68KCC = $(CC) 4463b903dfSMasahiro Yamada M68KLD = $(LD) 451da177e4SLinus Torvaldselse 46734f3719SMasahiro Yamada M68KCC = $(CROSS_COMPILE_M68K)gcc 4763b903dfSMasahiro Yamada M68KLD = $(CROSS_COMPILE_M68K)ld 481da177e4SLinus Torvaldsendif 491da177e4SLinus Torvalds 501da177e4SLinus Torvaldsquiet_cmd_build_wanxlfw = BLDFW $@ 517d7df745SMasahiro Yamada cmd_build_wanxlfw = hexdump -ve '"\n" 16/1 "0x%02X,"' $< | \ 527d7df745SMasahiro Yamada sed 's/0x ,//g;1s/^/static const u8 firmware[]={/;$$s/,$$/\n};\n/' > $@ 531da177e4SLinus Torvalds 547d7df745SMasahiro Yamada$(obj)/wanxlfw.inc: $(obj)/wanxlfw.bin FORCE 557d7df745SMasahiro Yamada $(call if_changed,build_wanxlfw) 567d7df745SMasahiro Yamada 577d7df745SMasahiro Yamadaquiet_cmd_m68kld_bin_o = M68KLD $@ 587d7df745SMasahiro Yamada cmd_m68kld_bin_o = $(M68KLD) --oformat binary -Ttext 0x1000 $< -o $@ 597d7df745SMasahiro Yamada 607d7df745SMasahiro Yamada$(obj)/wanxlfw.bin: $(obj)/wanxlfw.o FORCE 617d7df745SMasahiro Yamada $(call if_changed,m68kld_bin_o) 627d7df745SMasahiro Yamada 637d7df745SMasahiro Yamadaquiet_cmd_m68kas_o_S = M68KAS $@ 647d7df745SMasahiro Yamada cmd_m68kas_o_S = $(M68KCC) -D__ASSEMBLY__ -Wp,-MD,$(depfile) -I$(srctree)/include/uapi -c -o $@ $< 657d7df745SMasahiro Yamada 667d7df745SMasahiro Yamada$(obj)/wanxlfw.o: $(src)/wanxlfw.S FORCE 677d7df745SMasahiro Yamada $(call if_changed_dep,m68kas_o_S) 681da177e4SLinus Torvaldsendif 697d7df745SMasahiro Yamadatargets += wanxlfw.inc wanxlfw.bin wanxlfw.o 70