44f4566e1a
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. #
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.8 2001/11/29 22:45:56 thorpej Exp $
|
|
#
|
|
# mac68k-specific release building goo
|
|
#
|
|
|
|
# You will find no configs for GENERICSBC or INSTALLSBC in the
|
|
# sources. That's because they're trivial to generate--each is
|
|
# simply its corresponding config with "ncrscsi" commented out,
|
|
# and "sbc" uncommented.
|
|
#
|
|
|
|
KERNEL_SETS= GENERIC GENERICSBC
|
|
|
|
BUILD_KERNELS= INSTALL INSTALLSBC
|
|
|
|
INSTALLATION_DIRS+= installation/instkernel
|
|
|
|
snap_md_post:
|
|
.ifndef UPDATE
|
|
cd ${.CURDIR}/../distrib/mac68k/instkernel/ramdisk && ${MAKE} ${MAKEFLAGS} clean
|
|
.endif
|
|
cd ${.CURDIR}/../distrib/mac68k/instkernel/ramdisk && ${MAKE} ${MAKEFLAGS}
|
|
.ifndef UPDATE
|
|
cd ${.CURDIR}/../distrib/mac68k/instkernel/instkernel && ${MAKE} ${MAKEFLAGS} clean
|
|
.endif
|
|
.for k in ${BUILD_KERNELS}
|
|
.ifndef UPDATE
|
|
cd ${.CURDIR}/../distrib/mac68k/instkernel/instkernel && \
|
|
${MAKE} clean
|
|
.endif
|
|
cd ${.CURDIR}/../distrib/mac68k/instkernel/instkernel && \
|
|
${MAKE} ${MAKEFLAGS} INSTALL_KERNEL=${k} && \
|
|
${MAKE} ${MAKEFLAGS} INSTALL_KERNEL=${k} release
|
|
.endfor
|
|
cd ${KERNOBJDIR}/GENERICSBC && \
|
|
tar cf - netbsd |\
|
|
gzip -c -9 > ${RELEASEDIR}/binary/sets/kern_sbc.tgz
|
|
.ifndef UPDATE
|
|
cd ${.CURDIR}/../distrib/notes && ${MAKE} clean
|
|
.endif
|
|
cd ${.CURDIR}/../distrib/notes && \
|
|
${MAKE} ${MAKEFLAGS} && \
|
|
${MAKE} ${MAKEFLAGS} release
|
|
sh ../distrib/sets/makesums -t ${RELEASEDIR}/installation/instkernel
|