diff options
author | bp <bp@FreeBSD.org> | 2000-01-23 03:35:11 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2000-01-23 03:35:11 +0000 |
commit | fc532071c99e6864f8a4d0f6c562aede12bb1971 (patch) | |
tree | c8605f38f4d0a1e8f60f6fd9394d5213f123db0b /sys/modules/if_ef | |
parent | f014209ceb7d85cccfe93978cb1ca06eca1f3871 (diff) | |
download | FreeBSD-src-fc532071c99e6864f8a4d0f6c562aede12bb1971.zip FreeBSD-src-fc532071c99e6864f8a4d0f6c562aede12bb1971.tar.gz |
Allow if_ef driver to be compiled into kernel.
Diffstat (limited to 'sys/modules/if_ef')
-rw-r--r-- | sys/modules/if_ef/Makefile | 27 |
1 files changed, 9 insertions, 18 deletions
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} |