summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-03-23 01:42:47 +0000
committermarcel <marcel@FreeBSD.org>2008-03-23 01:42:47 +0000
commit124e0025d3e5fdaabcc1be6cf9564bf03d218a33 (patch)
treec26c31b7089b81f70c88bd35a81a6c38b0a0452a /sys
parent73b6a5597c0960ea6e9c14c579f5923be3e6a3a9 (diff)
downloadFreeBSD-src-124e0025d3e5fdaabcc1be6cf9564bf03d218a33.zip
FreeBSD-src-124e0025d3e5fdaabcc1be6cf9564bf03d218a33.tar.gz
Instead of making a single geom_part.ko module, make a module
for each partitioning scheme. The gpart code is currently non- optional.
Diffstat (limited to 'sys')
-rw-r--r--sys/modules/geom/geom_part/Makefile21
-rw-r--r--sys/modules/geom/geom_part/geom_part_apm/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_bsd/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_gpt/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_mbr/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_vtoc8/Makefile12
6 files changed, 66 insertions, 15 deletions
diff --git a/sys/modules/geom/geom_part/Makefile b/sys/modules/geom/geom_part/Makefile
index 59656d6..9d9e385 100644
--- a/sys/modules/geom/geom_part/Makefile
+++ b/sys/modules/geom/geom_part/Makefile
@@ -1,18 +1,9 @@
# $FreeBSD$
-.PATH: ${.CURDIR}/../../../geom/part
+SUBDIR= geom_part_apm \
+ geom_part_bsd \
+ geom_part_gpt \
+ geom_part_mbr \
+ geom_part_vtoc8
-KMOD= geom_part
-SRCS= g_part.c \
- g_part_if.c g_part_if.h \
- g_part_apm.c \
- g_part_bsd.c \
- g_part_gpt.c \
- g_part_mbr.c \
- g_part_vtoc8.c
-
-SRCS+= bus_if.h device_if.h
-
-MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
-
-.include <bsd.kmod.mk>
+.include <bsd.subdir.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_apm/Makefile b/sys/modules/geom/geom_part/geom_part_apm/Makefile
new file mode 100644
index 0000000..666cf92
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_apm/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_apm
+SRCS= g_part_apm.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_bsd/Makefile b/sys/modules/geom/geom_part/geom_part_bsd/Makefile
new file mode 100644
index 0000000..2a10b34
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_bsd/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_bsd
+SRCS= g_part_bsd.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_gpt/Makefile b/sys/modules/geom/geom_part/geom_part_gpt/Makefile
new file mode 100644
index 0000000..05f77c0
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_gpt/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_gpt
+SRCS= g_part_gpt.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_mbr/Makefile b/sys/modules/geom/geom_part/geom_part_mbr/Makefile
new file mode 100644
index 0000000..98ae1da
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_mbr/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_mbr
+SRCS= g_part_mbr.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_vtoc8/Makefile b/sys/modules/geom/geom_part/geom_part_vtoc8/Makefile
new file mode 100644
index 0000000..1f13bdf
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_vtoc8/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_vtoc8
+SRCS= g_part_vtoc8.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud