summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-02-24 12:27:09 +0000
committeryar <yar@FreeBSD.org>2006-02-24 12:27:09 +0000
commit57373b9b57bc7dd803598cbe70d3245af3afa26b (patch)
tree4b0b21bbdf962067bffbabd48388176bb26a08ef /sys/modules
parent53861c4ba971014515f0e26d5764687c9696d53d (diff)
downloadFreeBSD-src-57373b9b57bc7dd803598cbe70d3245af3afa26b.zip
FreeBSD-src-57373b9b57bc7dd803598cbe70d3245af3afa26b.tar.gz
Move the hard-coded ETHER_* options to where they belong --
inside !if defined(KERNBUILDDIR). Utilize the fact the module will support all frames by default -- it needs no ETHER_* options unless some frames need to be disabled. Fix the comment respectively. Don't forget to create fake opt_ef.h if no ETHER_* are set. MFC after: 3 days
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/if_ef/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/modules/if_ef/Makefile b/sys/modules/if_ef/Makefile
index 3e6ef70..8a83ac0 100644
--- a/sys/modules/if_ef/Makefile
+++ b/sys/modules/if_ef/Makefile
@@ -5,18 +5,19 @@
KMOD= if_ef
SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h
-# If you need only limited number of frames comment out unneeded ones
-# this will reduce number of visible devices
-ETHER_II=
-ETHER_8023=
-ETHER_8022=
-ETHER_SNAP=
-
.if defined(EFDEBUG)
CFLAGS+= -DEF_DEBUG
.endif
.if !defined(KERNBUILDDIR)
+# If you need only a limited number of frames, uncomment the needed ones.
+# This will reduce the number of visible devices. Note that the module
+# will support all frames by default, i.e., when all are commented here.
+#ETHER_II=
+#ETHER_8023=
+#ETHER_8022=
+#ETHER_SNAP=
+
opt_inet.h:
echo "#define INET 1" > opt_inet.h
@@ -24,6 +25,7 @@ opt_ipx.h:
echo "#define IPX 1" > opt_ipx.h
opt_ef.h:
+ touch opt_ef.h
.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
.if defined(${frame})
echo "#define ${frame} 1" >> opt_ef.h
OpenPOWER on IntegriCloud