Comment various stages of buildkernel, symmetrical to buildworld.
This commit is contained in:
parent
b4f5ef7eac
commit
ba3ae5543b
@ -537,20 +537,36 @@ buildkernel:
|
|||||||
@echo "===> ${_kernel}"
|
@echo "===> ${_kernel}"
|
||||||
mkdir -p ${KRNLOBJDIR}
|
mkdir -p ${KRNLOBJDIR}
|
||||||
.if !defined(NO_KERNELCONFIG)
|
.if !defined(NO_KERNELCONFIG)
|
||||||
|
@echo
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
|
@echo ">>> stage 1: configuring the kernel"
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${KRNLCONFDIR}; \
|
cd ${KRNLCONFDIR}; \
|
||||||
PATH=${TMPPATH} \
|
PATH=${TMPPATH} \
|
||||||
config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \
|
config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \
|
||||||
${KERNCONFDIR}/${_kernel}
|
${KERNCONFDIR}/${_kernel}
|
||||||
.endif
|
.endif
|
||||||
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
|
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
|
||||||
|
@echo
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
|
@echo ">>> stage 2.1: cleaning up the object tree"
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} ${CLEANDIR}
|
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} ${CLEANDIR}
|
||||||
.endif
|
.endif
|
||||||
|
@echo
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
|
@echo ">>> stage 2.2: rebuilding the object tree"
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
|
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||||
|
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} obj
|
||||||
|
@echo
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
|
@echo ">>> stage 2.3: build tools"
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||||
MAKESRCPATH=${KERNSRCDIR}/dev/aic7xxx/aicasm \
|
MAKESRCPATH=${KERNSRCDIR}/dev/aic7xxx/aicasm \
|
||||||
${MAKE} -DNO_CPU_CFLAGS -f ${KERNSRCDIR}/dev/aic7xxx/aicasm/Makefile
|
${MAKE} -DNO_CPU_CFLAGS -f ${KERNSRCDIR}/dev/aic7xxx/aicasm/Makefile
|
||||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
|
||||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} obj
|
|
||||||
# XXX - Gratuitously builds aicasm in the ``makeoptions NO_MODULES'' case.
|
# XXX - Gratuitously builds aicasm in the ``makeoptions NO_MODULES'' case.
|
||||||
.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KERNSRCDIR}/modules)
|
.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KERNSRCDIR}/modules)
|
||||||
.for target in obj depend all
|
.for target in obj depend all
|
||||||
@ -560,9 +576,17 @@ buildkernel:
|
|||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
.if !defined(NO_KERNELDEPEND)
|
.if !defined(NO_KERNELDEPEND)
|
||||||
|
@echo
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
|
@echo ">>> stage 3.1: making dependencies"
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} depend -DNO_MODULES_OBJ
|
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} depend -DNO_MODULES_OBJ
|
||||||
.endif
|
.endif
|
||||||
|
@echo
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
|
@echo ">>> stage 3.2: building everything"
|
||||||
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||||
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} all -DNO_MODULES_OBJ
|
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} all -DNO_MODULES_OBJ
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user