- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate
more consistent. To quote the comment in etc/Makefile
that describes how it's done:
# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.
Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...
Reviewed by Todd Whitesel and Thomas Klausner.
and install:
o INSTALL and INSTALL_TINY kernels (for boot floppy images)
o GENERIC_TINY kernel
o Boot floppy images
Ideas borrowed from etc/etc.sun3/ setup.
1. Provide a consistent and extensible framework for compiling
kernels for the "make snapshot" target.
2. Add OBJDIR support for the "make snapshot" target, in the form
of three new make variables: KERNOBJDIR, KERNSRCDIR, and KERNCONFDIR.
Default values are in the Makefile.inc, and for OBJDIR they should
be defined in /etc/mk.conf as
KERNSRCDIR=${BSDSRCDIR}/sys
KERNOBJDIR=${BSDOBJDIR}/sys/arch/${MACHINE}/compile
The next step is to make a new target in the src/etc/Makefile for "release"
(or something like that) to make release(7) format files.
GENERICBT were replaced with GENERICADP and GENERICOTHER some time ago.
XXX The kc_* targets here are still broken, but aren't currently used
XXX anyhow. This change allows one to at least do a "make snapshot".