Page MenuHomeFreeBSD

D28626.diff
No OneTemporary

D28626.diff

Index: sys/conf/kern.post.mk
===================================================================
--- sys/conf/kern.post.mk
+++ sys/conf/kern.post.mk
@@ -61,10 +61,19 @@
# Default prefix used for modules installed from ports
LOCALBASE?= /usr/local
-LOCAL_MODULES_DIR?= ${LOCALBASE}/sys/modules
+.if defined(LOCAL_MODULES_DIR_${KERN_IDENT})
+LOCAL_MODULES_DIR= ${LOCAL_MODULES_DIR_${KERN_IDENT}}
+.else
+LOCAL_MODULES_DIR?= ${LOCALBASE}/sys/modules
+.endif
+
+.if defined(LOCAL_MODULES_${KERN_IDENT})
+LOCAL_MODULES= ${LOCAL_MODULES_${KERN_IDENT}}
+.endif
# Default to installing all modules installed by ports unless overridden
-# by the user.
+# by the user. A LOCAL_MODULES default can be supplied, but we also support
+# per-KERNCONF LOCAL_MODULES *instead* with LOCAL_MODULES_${KERNCONF} variables.
.if !defined(LOCAL_MODULES) && exists(${LOCAL_MODULES_DIR})
LOCAL_MODULES!= ls ${LOCAL_MODULES_DIR}
.endif

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 15, 9:13 AM (14 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15808758
Default Alt Text
D28626.diff (920 B)

Event Timeline