diff options
author | imp <imp@FreeBSD.org> | 2004-11-11 23:58:14 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-11-11 23:58:14 +0000 |
commit | bf6428d60dfe55633faebc1cab749fd38d687e4d (patch) | |
tree | ab06a5967e4049b15b467c25385861fea0fde9e8 /sys/conf/kern.post.mk | |
parent | 9489ed77794edeb251c3792c88ffc4ec518df279 (diff) | |
download | FreeBSD-src-bf6428d60dfe55633faebc1cab749fd38d687e4d.zip FreeBSD-src-bf6428d60dfe55633faebc1cab749fd38d687e4d.tar.gz |
PORTS_MODULES: a list of ports to build with this kernel.
# I directly use the targets for building this, but it was suggested
# to use portupgrade. I couldn't fit that into the target model, so I
# punted.
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r-- | sys/conf/kern.post.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 475f700..44e0f30 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -27,6 +27,20 @@ modules-${target}: .endif .endfor +# Handle out of tree ports +.if defined(PORTS_MODULES) +.if defined(SYSDIR) +PORTSMODULESENV=SYSDIR=${SYSDIR} +.endif +.for target in all install clean +${target}: ports-${target} +ports-${target}: +.for __i in ${PORTS_MODULES} + cd /usr/ports/${__i}; ${PORTSMODULESENV} ${MAKE} ${target} +.endfor +.endfor +.endif + .ORDER: kernel-install modules-install kernel-all: ${KERNEL_KO} |