Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107453061
D28626.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
920 B
Referenced Files
None
Subscribers
None
D28626.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D28626: build: kern: support per-KERNCONF LOCAL_MODULES overrides
Attached
Detach File
Event Timeline
Log In to Comment