Avoid cleaning modules twice in `buildkernel'.
This commit is contained in:
parent
2270ac91b4
commit
66002be3e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94221
@ -428,12 +428,11 @@ buildkernel:
|
||||
${KERNCONFDIR}/${_kernel}
|
||||
.endif
|
||||
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
|
||||
.if defined(MODULES_WITH_WORLD) || defined(NO_MODULES) || !exists(${KRNLSRCDIR}/modules)
|
||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} clean
|
||||
.else
|
||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} -DNO_MODULES clean
|
||||
.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KRNLSRCDIR}/modules)
|
||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} clean cleandir
|
||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} cleandir
|
||||
.endif
|
||||
.endif
|
||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||
|
Loading…
Reference in New Issue
Block a user