Allow one to specify what the installed kernel's name is by setting
"INSTKERNNAME". Reviewed by: marcel
This commit is contained in:
parent
06a5e547a9
commit
ae78d52fe5
@ -358,6 +358,7 @@ reinstall:
|
|||||||
# properly.
|
# properly.
|
||||||
|
|
||||||
KERNEL?= GENERIC
|
KERNEL?= GENERIC
|
||||||
|
INSTKERNNAME?= kernel
|
||||||
|
|
||||||
# The only exotic MACHINE_ARCH/MACHINE combination valid at this
|
# The only exotic MACHINE_ARCH/MACHINE combination valid at this
|
||||||
# time is i386/pc98. In all other cases set MACHINE equal to
|
# time is i386/pc98. In all other cases set MACHINE equal to
|
||||||
@ -408,10 +409,10 @@ buildkernel:
|
|||||||
${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/Makefile
|
${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/Makefile
|
||||||
.if !defined(NO_KERNELDEPEND)
|
.if !defined(NO_KERNELDEPEND)
|
||||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||||
${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel depend
|
${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} depend
|
||||||
.endif
|
.endif
|
||||||
cd ${KRNLOBJDIR}/${_kernel}; \
|
cd ${KRNLOBJDIR}/${_kernel}; \
|
||||||
${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel all
|
${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} all
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -421,7 +422,14 @@ buildkernel:
|
|||||||
#
|
#
|
||||||
installkernel:
|
installkernel:
|
||||||
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
|
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
|
||||||
${CROSSENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel install
|
${CROSSENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} install
|
||||||
|
|
||||||
|
#
|
||||||
|
# kernel
|
||||||
|
#
|
||||||
|
# Short hand for `make buildkernel installkernel'
|
||||||
|
#
|
||||||
|
kernel: buildkernel installkernel
|
||||||
|
|
||||||
#
|
#
|
||||||
# update
|
# update
|
||||||
|
Loading…
Reference in New Issue
Block a user