From 01b96fdf9e5da8b490d9b266563ba3f957de66aa Mon Sep 17 00:00:00 2001 From: John Hay Date: Tue, 30 Jan 2001 10:20:43 +0000 Subject: [PATCH] Make klds for the ar and sr devices and hook them up. The normal versions are called if_ar.ko and if_sr.ko and the netgraph versions ng_sync_ar.ko and ng_sync_sr.ko. --- sys/modules/Makefile | 4 ++-- sys/modules/ar/Makefile | 11 +++++++++++ sys/modules/netgraph/Makefile | 3 ++- sys/modules/netgraph/sync_ar/Makefile | 11 +++++++++++ sys/modules/netgraph/sync_sr/Makefile | 11 +++++++++++ sys/modules/sr/Makefile | 11 +++++++++++ 6 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 sys/modules/ar/Makefile create mode 100644 sys/modules/netgraph/sync_ar/Makefile create mode 100644 sys/modules/netgraph/sync_sr/Makefile create mode 100644 sys/modules/sr/Makefile diff --git a/sys/modules/Makefile b/sys/modules/Makefile index efd6aa57471..ec6810a5dcc 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -18,8 +18,8 @@ SUBDIR= 3dfx accf_data accf_http agp aha amr an aue \ # XXX some of these can move to the general case when de-i386'ed .if ${MACHINE_ARCH} == "i386" -SUBDIR+=aac aic asr bktr coff el fpu gnufpu ibcs2 linprocfs mly pecoff ray \ - s3 splash streams vesa wi +SUBDIR+=aac aic ar asr bktr coff el fpu gnufpu ibcs2 linprocfs mly \ + pecoff ray s3 splash sr streams vesa wi .endif .if ${MACHINE} == "pc98" diff --git a/sys/modules/ar/Makefile b/sys/modules/ar/Makefile new file mode 100644 index 00000000000..1fa18a94143 --- /dev/null +++ b/sys/modules/ar/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ar +KMOD = if_ar +SRCS = if_ar.c if_ar_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +opt_netgraph.h: + touch opt_netgraph.h + +.include diff --git a/sys/modules/netgraph/Makefile b/sys/modules/netgraph/Makefile index c47386c9ce7..8e5c342e3ad 100644 --- a/sys/modules/netgraph/Makefile +++ b/sys/modules/netgraph/Makefile @@ -2,7 +2,8 @@ # $FreeBSD$ SUBDIR= async bpf bridge cisco echo ether frame_relay hole iface ksocket lmi \ - netgraph one2many ppp pppoe pptpgre rfc1490 socket tee tty UI vjc + netgraph one2many ppp pppoe pptpgre rfc1490 socket sync_ar sync_sr \ + tee tty UI vjc .if !defined(NOCRYPT) && exists(${.CURDIR}/../../crypto/rc4/rc4.c) SUBDIR+= mppc diff --git a/sys/modules/netgraph/sync_ar/Makefile b/sys/modules/netgraph/sync_ar/Makefile new file mode 100644 index 00000000000..9e5afd57f8b --- /dev/null +++ b/sys/modules/netgraph/sync_ar/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ar +KMOD = ng_sync_ar +SRCS = if_ar.c if_ar_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +opt_netgraph.h: + echo "#define NETGRAPH" > opt_netgraph.h + +.include diff --git a/sys/modules/netgraph/sync_sr/Makefile b/sys/modules/netgraph/sync_sr/Makefile new file mode 100644 index 00000000000..16a291ca465 --- /dev/null +++ b/sys/modules/netgraph/sync_sr/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/sr +KMOD = ng_sync_sr +SRCS = if_sr.c if_sr_isa.c if_sr_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +opt_netgraph.h: + echo "#define NETGRAPH" > opt_netgraph.h + +.include diff --git a/sys/modules/sr/Makefile b/sys/modules/sr/Makefile new file mode 100644 index 00000000000..243ff9d1abf --- /dev/null +++ b/sys/modules/sr/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/sr +KMOD = if_sr +SRCS = if_sr.c if_sr_isa.c if_sr_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +opt_netgraph.h: + touch opt_netgraph.h + +.include