diff options
author | jlam <jlam> | 2006-07-14 23:13:00 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-07-14 23:13:00 +0000 |
commit | c4fe1575ac2abc74dab256c549254bb41b6c0888 (patch) | |
tree | cb2a5752ca9c59c207af95b74e0862b27a809316 /pkgtools/bootstrap-mk-files/files/bsd.kernobj.mk | |
parent | 884d76479a2aa601cc22aa1139d4b6178b8b8b09 (diff) | |
download | pkgsrc-c4fe1575ac2abc74dab256c549254bb41b6c0888.tar.gz |
Import pkgtools/bootstrap-mk-files, which is the collection of bmake *.mk
files from the bootstrap kit. This package is used during bootstrap to
properly register the installed *.mk files.
The bootstrap bmake(1) utility uses some customised .mk files in order
to pre-define certain definitions and targets, which guide the build
process. This package provides those *.mk files for the bmake(1)
utility.
Diffstat (limited to 'pkgtools/bootstrap-mk-files/files/bsd.kernobj.mk')
-rw-r--r-- | pkgtools/bootstrap-mk-files/files/bsd.kernobj.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgtools/bootstrap-mk-files/files/bsd.kernobj.mk b/pkgtools/bootstrap-mk-files/files/bsd.kernobj.mk new file mode 100644 index 00000000000..e2f91e5e870 --- /dev/null +++ b/pkgtools/bootstrap-mk-files/files/bsd.kernobj.mk @@ -0,0 +1,33 @@ +# $NetBSD: bsd.kernobj.mk,v 1.1.1.1 2006/07/14 23:13:00 jlam Exp $ + +# KERNSRCDIR Is the location of the top of the kernel src. +# It defaults to ${BSDSRCDIR}/sys, but the top-level +# Makefile.inc sets it to ${ABSTOP}/sys (ABSTOP is the +# absolute path to the directory where the top-level +# Makefile.inc was found. +# +# KERNARCHDIR Is the location of the machine dependent kernel +# sources. It defaults to arch/${MACHINE} +# +# KERNCONFDIR Is where the configuration files for kernels are +# found; default is ${KERNSRCDIR}/${KERNARCHDIR}/conf. +# +# KERNOBJDIR Is the kernel build directory. The kernel GENERIC for +# instance will be compiled in ${KERNOBJDIR}/GENERIC. +# The default value is +# ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile +# if it exists or the target 'obj' is being made. +# Otherwise the default is +# ${KERNSRCDIR}/${KERNARCHDIR}/compile. +# + +KERNSRCDIR?= ${BSDSRCDIR}/sys +# just incase ${MACHINE} is not always correct +KERNARCHDIR?= arch/${MACHINE} + +.if make(obj) || exists(${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile) +KERNOBJDIR?= ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile +.else +KERNOBJDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/compile +.endif +KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf |