blob: d451a716dd2a2c652d0456dcd14b02b1388f6c1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $NetBSD: bsd.kernobj.mk,v 1.1.1.1 2004/03/11 13:04:17 grant 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
|