# SPDX-License-Identifier: GPL-2.0 # # Makefile for the Linux network (wan) device drivers. # # 3 Aug 2000, Christoph Hellwig <hch@infradead.org> # Rewritten to use lists instead of if-statements. # obj-$([31mCONFIG_HDLC[0m) += hdlc.o obj-$([31mCONFIG_HDLC_RAW[0m) += hdlc_raw.o obj-$([31mCONFIG_HDLC_RAW_ETH[0m) += hdlc_raw_eth.o obj-$([31mCONFIG_HDLC_CISCO[0m) += hdlc_cisco.o obj-$([31mCONFIG_HDLC_FR[0m) += hdlc_fr.o obj-$([31mCONFIG_HDLC_PPP[0m) += hdlc_ppp.o obj-$([31mCONFIG_HDLC_X25[0m) += hdlc_x25.o obj-$([31mCONFIG_HOSTESS_SV11[0m) += z85230.o hostess_sv11.o obj-$([31mCONFIG_SEALEVEL_4021[0m) += z85230.o sealevel.o obj-$([31mCONFIG_COSA[0m) += cosa.o obj-$([31mCONFIG_FARSYNC[0m) += farsync.o obj-$([31mCONFIG_X25_ASY[0m) += x25_asy.o obj-$([31mCONFIG_LANMEDIA[0m) += lmc/ obj-$([31mCONFIG_DLCI[0m) += dlci.o obj-$([31mCONFIG_SDLA[0m) += sdla.o obj-$([31mCONFIG_LAPBETHER[0m) += lapbether.o obj-$([31mCONFIG_SBNI[0m) += sbni.o obj-$([31mCONFIG_N2[0m) += n2.o obj-$([31mCONFIG_C101[0m) += c101.o obj-$([31mCONFIG_WANXL[0m) += wanxl.o obj-$([31mCONFIG_PCI200SYN[0m) += pci200syn.o obj-$([31mCONFIG_PC300TOO[0m) += pc300too.o obj-$([31mCONFIG_IXP4XX_HSS[0m) += ixp4xx_hss.o obj-$([31mCONFIG_FSL_UCC_HDLC[0m) += fsl_ucc_hdlc.o obj-$([31mCONFIG_SLIC_DS26522[0m) += slic_ds26522.o clean-files := wanxlfw.inc $(obj)/wanxl.o: $(obj)/wanxlfw.inc ifeq ($([31mCONFIG_WANXL_BUILD_FIRMWARE[0m),y) ifeq ($(ARCH),m68k) AS68K = $(AS) LD68K = $(LD) else AS68K = as68k LD68K = ld68k endif quiet_cmd_build_wanxlfw = BLD FW $@ cmd_build_wanxlfw = \ $(CPP) -D__ASSEMBLY__ -Wp,-MD,$(depfile) -I$(srctree)/include/uapi $< | $(AS68K) -m68360 -o $(obj)/wanxlfw.o; \ $(LD68K) --oformat binary -Ttext 0x1000 $(obj)/wanxlfw.o -o $(obj)/wanxlfw.bin; \ hexdump -ve '"\n" 16/1 "0x%02X,"' $(obj)/wanxlfw.bin | sed 's/0x ,//g;1s/^/static const u8 firmware[]={/;$$s/,$$/\n};\n/' >$(obj)/wanxlfw.inc; \ rm -f $(obj)/wanxlfw.bin $(obj)/wanxlfw.o $(obj)/wanxlfw.inc: $(src)/wanxlfw.S $(call if_changed_dep,build_wanxlfw) targets += wanxlfw.inc endif |