|
Lines 339-344
Link Here
|
| 339 |
# properly. |
339 |
# properly. |
| 340 |
|
340 |
|
| 341 |
KERNEL?= GENERIC GENERIC98 |
341 |
KERNEL?= GENERIC GENERIC98 |
|
|
342 |
INSTKERNEL?= kernel |
| 342 |
|
343 |
|
| 343 |
# The only exotic MACHINE_ARCH/MACHINE combination valid at this |
344 |
# The only exotic MACHINE_ARCH/MACHINE combination valid at this |
| 344 |
# time is i386/pc98. In all other cases set MACHINE equal to |
345 |
# time is i386/pc98. In all other cases set MACHINE equal to |
|
Lines 357-367
Link Here
|
| 357 |
|
358 |
|
| 358 |
BUILDKERNELS= |
359 |
BUILDKERNELS= |
| 359 |
INSTALLKERNEL= |
360 |
INSTALLKERNEL= |
|
|
361 |
INSTALLKERNELS= |
| 360 |
.for _kernel in ${KERNEL} |
362 |
.for _kernel in ${KERNEL} |
| 361 |
.if exists(${KRNLCONFDIR}/${_kernel}) |
363 |
.if exists(${KRNLCONFDIR}/${_kernel}) |
| 362 |
BUILDKERNELS+= ${_kernel} |
364 |
BUILDKERNELS+= ${_kernel} |
| 363 |
.if empty(INSTALLKERNEL) |
365 |
.if empty(INSTALLKERNEL) |
| 364 |
INSTALLKERNEL= ${_kernel} |
366 |
INSTALLKERNEL= ${_kernel} |
|
|
367 |
.else |
| 368 |
INSTALLKERNELS+= ${_kernel} |
| 365 |
.endif |
369 |
.endif |
| 366 |
.endif |
370 |
.endif |
| 367 |
.endfor |
371 |
.endfor |
|
Lines 392-403
Link Here
|
| 392 |
# |
396 |
# |
| 393 |
# installkernel |
397 |
# installkernel |
| 394 |
# |
398 |
# |
| 395 |
# Install the kernel defined by INSTALLKERNEL |
399 |
# Install the kernel defined by INSTALLKERNEL and INSTALLKERNELS |
| 396 |
# |
400 |
# |
| 397 |
installkernel: |
401 |
installkernel: |
|
|
402 |
@echo |
| 403 |
@echo "--------------------------------------------------------------" |
| 404 |
@echo ">>> Installing kernel(s)" |
| 405 |
@echo "--------------------------------------------------------------" |
| 406 |
@echo "===> ${INSTALLKERNEL} as ${DESTDIR}/${INSTKERNEL}" |
| 398 |
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \ |
407 |
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \ |
| 399 |
${IMAKEENV} MACHINE=${MACHINE} KERNEL=${INSTALLKERNEL} \ |
408 |
${IMAKEENV} MACHINE=${MACHINE} KERNEL=${INSTALLKERNEL} \ |
| 400 |
${MAKE} install |
409 |
INSTKERNEL=${INSTKERNEL} ${MAKE} install |
|
|
410 |
.for _kernel in ${INSTALLKERNELS} |
| 411 |
@echo "===> ${_kernel} as ${DESTDIR}/${INSTKERNEL}.${_kernel}" |
| 412 |
cd ${KRNLOBJDIR}/${_kernel}; \ |
| 413 |
${IMAKEENV} MACHINE=${MACHINE} KERNEL=${_kernel} \ |
| 414 |
INSTKERNEL=${INSTKERNEL}.${_kernel} ${MAKE} install |
| 415 |
.endfor |
| 416 |
|
| 417 |
|
| 401 |
|
418 |
|
| 402 |
# |
419 |
# |
| 403 |
# update |
420 |
# update |