diff options
author | obrien <obrien@FreeBSD.org> | 2000-10-05 06:51:56 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-10-05 06:51:56 +0000 |
commit | da9b1783beb272561640b24a0deec5ee692bcaf4 (patch) | |
tree | 9f987b3733463b8419591f4c6ad1e8a2134eebe5 | |
parent | eb2e3ded126c7b9de316f1bf4612522d8deb9ba3 (diff) | |
download | FreeBSD-src-da9b1783beb272561640b24a0deec5ee692bcaf4.zip FreeBSD-src-da9b1783beb272561640b24a0deec5ee692bcaf4.tar.gz |
This change adds:
/boot/GENERIC/kernel
/boot/kernel/kernel
/boot/kernel/*.ko
and removes:
/kernel.GENERIC
from the bin dist.
Approved by: jkh
-rw-r--r-- | release/Makefile | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/release/Makefile b/release/Makefile index 538f3f4..149fe16 100644 --- a/release/Makefile +++ b/release/Makefile @@ -267,7 +267,6 @@ rerelease release: echo "export BUILDNAME=${BUILDNAME}" >> ${CHROOTDIR}/mk echo "export VNDEVICE=${VNDEVICE}" >> ${CHROOTDIR}/mk echo "export OBJFORMAT=${OBJFORMAT}" >> ${CHROOTDIR}/mk - echo "export MODULES_WITH_WORLD=YES" >> ${CHROOTDIR}/mk .if defined(RELEASETAG) echo "export RELEASETAG=${RELEASETAG}" >> ${CHROOTDIR}/mk .endif @@ -371,12 +370,16 @@ release.2: # Make and install the generic kernel(s). release.3: .for kernel in ${KERNELS} - rm -f ${RD}/kernels/${kernel} + -chflags -R noschg ${RD}/kernels/${kernel} + rm -rf ${RD}/kernels/${kernel} rm -rf ${.CURDIR}/../sys/compile/${kernel} - cd ${.CURDIR} && ${MAKE} doKERNEL KERNEL=${kernel} KERNEL_KO=${kernel} KODIR="" + cd ${.CURDIR} && ${MAKE} doSTDKERNEL KERNEL=${kernel} KODIR=/${kernel} rm -rf ${.CURDIR}/../sys/compile/${kernel} - cp ${RD}/kernels/${kernel} ${RD}/trees/bin/kernel.${kernel} + -mkdir ${RD}/trees/bin/boot/${kernel} + cp -p ${RD}/kernels/${kernel}/kernel ${RD}/trees/bin/boot/${kernel} .endfor + # Install a standard boot kernel+modules + cp -Rp ${RD}/kernels/GENERIC ${RD}/trees/bin/boot/kernel touch release.3 # Make and install the three crunched binaries which live on the floppies. @@ -784,6 +787,16 @@ doKERNEL: [ -r ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ] && \ cp ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ${RD}/kernels +doSTDKERNEL: + @rm -f ${RD}/kernels/${KERNEL} + @cd ${.CURDIR}/../sys/${MACHINE}/conf && config ${KERNEL} + @cd ${.CURDIR}/../sys/compile/${KERNEL} && \ + make depend && \ + make ${KERNEL_FLAGS} KERNEL=${kernel} && \ + make KERNEL=${kernel} DESTDIR=${RD}/kernels install && \ + [ -r ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ] && \ + cp ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ${RD}/kernels + # # --==## Put a filesystem into a BOOTMFS kernel ##==-- # |