summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-16 20:24:29 +0000
committerwollman <wollman@FreeBSD.org>1994-09-16 20:24:29 +0000
commit375660a3eb1f4387aa0dca4796ae87af8945332a (patch)
tree3f55eaf44d108ca249b4e0ba8c13096a08c1c228
parent242ff623e2a9282e84a86644c12fa51d9138a23f (diff)
downloadFreeBSD-src-375660a3eb1f4387aa0dca4796ae87af8945332a.zip
FreeBSD-src-375660a3eb1f4387aa0dca4796ae87af8945332a.tar.gz
Per discussion on the mailing-lists, move LKMs from /sbin to /lkm, and
arrange for that directory to get created by mtree. Also, process secure directory after all the others, because the programs there may overlay ones installed from the main part of the tree.
-rw-r--r--Makefile12
-rw-r--r--etc/mtree/BSD.root.dist4
-rw-r--r--lkm/Makefile5
-rw-r--r--lkm/Makefile.inc4
-rw-r--r--lkm/ip_mroute_mod/Makefile9
-rw-r--r--sbin/Makefile4
-rw-r--r--sys/modules/Makefile5
-rw-r--r--sys/modules/ip_mroute_mod/Makefile9
8 files changed, 43 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 07810ad..7275f00 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.16 1994/09/09 20:29:20 csgr Exp $
+# $Id: Makefile,v 1.17 1994/09/12 05:17:15 rgrimes Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include and MOST of /usr/lib
@@ -8,6 +8,7 @@
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
# -DNOCRYPT will prevent building of crypt versions
# XXX2 -DNOKERBEROS do not build Kerberos
+# -DNOLKM do not build loadable kernel modules
# -DNOOBJDIR do not run ``${MAKE} obj''
# -DNOPROFILE do not build profiled libraries
# -DNOSECURE do not go into secure subdir
@@ -53,9 +54,6 @@ SUBDIR+= libexec
.if exists(sbin)
SUBDIR+= sbin
.endif
-.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
-SUBDIR+= secure
-.endif
.if exists(share)
SUBDIR+= share
.endif
@@ -68,6 +66,12 @@ SUBDIR+= usr.bin
.if exists(usr.sbin)
SUBDIR+= usr.sbin
.endif
+.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
+SUBDIR+= secure
+.endif
+.if exists(lkm) && !defined(NOLKM)
+SUBDIR+= lkm
+.endif
# These are last, since it is nice to at least get the base system
# rebuilt before you do them.
diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist
index 8d5d2a2..9f2d6b1 100644
--- a/etc/mtree/BSD.root.dist
+++ b/etc/mtree/BSD.root.dist
@@ -1,4 +1,4 @@
-# $Id: BSD.root.dist,v 1.15 1994/09/09 13:35:57 rgrimes Exp $
+# $Id: BSD.root.dist,v 1.16 1994/09/13 22:04:53 wollman Exp $
#
# top-level files are owned by root.wheel
@@ -51,5 +51,7 @@ var type=dir
/set uname=bin gname=bin mode=0755
bin type=dir
..
+lkm type=dir
+..
sbin type=dir
..
diff --git a/lkm/Makefile b/lkm/Makefile
new file mode 100644
index 0000000..1262bdf
--- /dev/null
+++ b/lkm/Makefile
@@ -0,0 +1,5 @@
+# $Id$
+
+SUBDIR= ip_mroute_mod
+
+.include <bsd.subdir.mk>
diff --git a/lkm/Makefile.inc b/lkm/Makefile.inc
new file mode 100644
index 0000000..752e6b0
--- /dev/null
+++ b/lkm/Makefile.inc
@@ -0,0 +1,4 @@
+# $Id$
+
+BINDIR= /lkm
+
diff --git a/lkm/ip_mroute_mod/Makefile b/lkm/ip_mroute_mod/Makefile
new file mode 100644
index 0000000..d1f93c3
--- /dev/null
+++ b/lkm/ip_mroute_mod/Makefile
@@ -0,0 +1,9 @@
+# $Id: Makefile,v 1.1 1994/09/14 22:11:51 wollman Exp $
+
+.PATH: ${.CURDIR}/../../sys/netinet
+KMOD= ip_mroute_mod
+SRCS= ip_mroute.c
+NOMAN=
+CFLAGS+= -DMROUTE_LKM -DMROUTING
+
+.include <bsd.kmod.mk>
diff --git a/sbin/Makefile b/sbin/Makefile
index dc7a9b7..cd2eadf 100644
--- a/sbin/Makefile
+++ b/sbin/Makefile
@@ -9,8 +9,4 @@ SUBDIR= adjkerntz badsect clri comcontrol disklabel dmesg dump dumpfs dumplfs \
nfsiod nologin ping quotacheck reboot restore route savecore \
shutdown slattach startslip swapon tunefs umount
-. if !defined(NOLKM)
-SUBDIR+= ip_mroute_mod
-.endif
-
.include <bsd.subdir.mk>
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
new file mode 100644
index 0000000..1262bdf
--- /dev/null
+++ b/sys/modules/Makefile
@@ -0,0 +1,5 @@
+# $Id$
+
+SUBDIR= ip_mroute_mod
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/ip_mroute_mod/Makefile b/sys/modules/ip_mroute_mod/Makefile
new file mode 100644
index 0000000..d1f93c3
--- /dev/null
+++ b/sys/modules/ip_mroute_mod/Makefile
@@ -0,0 +1,9 @@
+# $Id: Makefile,v 1.1 1994/09/14 22:11:51 wollman Exp $
+
+.PATH: ${.CURDIR}/../../sys/netinet
+KMOD= ip_mroute_mod
+SRCS= ip_mroute.c
+NOMAN=
+CFLAGS+= -DMROUTE_LKM -DMROUTING
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud