75f8e74b32
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.
27 lines
723 B
Makefile
27 lines
723 B
Makefile
#
|
|
# $NetBSD: Makefile.inc,v 1.3 1998/06/28 09:38:42 fair Exp $
|
|
#
|
|
# etc.atari/Makefile.inc -- atari-specific etc Makefile targets
|
|
#
|
|
|
|
.ifdef DESTDIR
|
|
|
|
# the regular expression does a basename(1) on .CURDIR so that we don't
|
|
# have to keep looking up .. at compile time.
|
|
|
|
KERNSRCDIR?= ${.CURDIR:C/[^\/]+$//}sys
|
|
KERNOBJDIR?= ${KERNSRCDIR}/arch/${MACHINE}/compile
|
|
KERNCONFDIR?= ${KERNSRCDIR}/arch/${MACHINE}/conf
|
|
|
|
snap_md:
|
|
.for kernel in GENERIC ATARITT BOOT BOOTX HADES
|
|
cd ${KERNCONFDIR} && config \
|
|
-b ${KERNOBJDIR}/${kernel} \
|
|
-s ${KERNSRCDIR} \
|
|
${kernel}
|
|
cd ${KERNOBJDIR}/${kernel} && make clean && make depend && make && \
|
|
gzip -c -9 netbsd > ${DESTDIR}/snapshot/netbsd.${kernel}.gz
|
|
.endfor
|
|
|
|
.endif # DESTDIR check
|