From fc532071c99e6864f8a4d0f6c562aede12bb1971 Mon Sep 17 00:00:00 2001 From: bp Date: Sun, 23 Jan 2000 03:35:11 +0000 Subject: Allow if_ef driver to be compiled into kernel. --- sys/modules/if_ef/Makefile | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'sys/modules') diff --git a/sys/modules/if_ef/Makefile b/sys/modules/if_ef/Makefile index eb0286c..d009c2a 100644 --- a/sys/modules/if_ef/Makefile +++ b/sys/modules/if_ef/Makefile @@ -3,12 +3,12 @@ .PATH: ${.CURDIR}/../../net KMOD= if_ef -SRCS= if_ef.c opt_ipx.h opt_inet.h +SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h MAN4= ef.4 # If you need only limited number of frames comment out unneeded ones # this will reduce number of visible devices -ETHER_II= +#ETHER_II= ETHER_8023= ETHER_8022= ETHER_SNAP= @@ -17,22 +17,6 @@ NBPF?= 1 CFLAGS+= ${PROTOS} -.if defined(ETHER_II) -CFLAGS+= -DETHER_II -.endif - -.if defined(ETHER_8023) -CFLAGS+= -DETHER_8023 -.endif - -.if defined(ETHER_8022) -CFLAGS+= -DETHER_8022 -.endif - -.if defined(ETHER_SNAP) -CFLAGS+= -DETHER_SNAP -.endif - .if defined(EFDEBUG) CFLAGS+= -DEF_DEBUG .endif @@ -43,6 +27,13 @@ opt_inet.h: opt_ipx.h: echo "#define IPX 1" > opt_ipx.h +opt_ef.h: +.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP +.if defined(${frame}) + echo "#define ${frame} 1" >> opt_ef.h +.endif +.endfor + load: all /sbin/kldload ./${PROG} -- cgit v1.1