Add mk and h files needed for cross compilation
This commit is contained in:
26
share/mk/bsd.kernobj.mk
Normal file
26
share/mk/bsd.kernobj.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
# $NetBSD: bsd.kernobj.mk,v 1.13 2010/01/25 00:43:00 christos Exp $
|
||||
|
||||
# KERNSRCDIR Is the location of the top of the kernel src.
|
||||
# It defaults to `${NETBSDSRCDIR}/sys'.
|
||||
#
|
||||
# KERNARCHDIR Is the location of the machine dependent kernel sources.
|
||||
# It defaults to `arch/${MACHINE}', but may be overridden
|
||||
# in case ${MACHINE} is not correct.
|
||||
#
|
||||
# KERNCONFDIR Is where the configuration files for kernels are found.
|
||||
# It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'.
|
||||
#
|
||||
# KERNOBJDIR Is the kernel build directory. The kernel GENERIC for
|
||||
# instance will be compiled in ${KERNOBJDIR}/GENERIC.
|
||||
# The default is the .OBJDIR of
|
||||
# `${KERNSRCDIR}/${KERNARCHDIR}/compile'.
|
||||
#
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
KERNSRCDIR?= ${NETBSDSRCDIR}/sys
|
||||
KERNARCHDIR?= arch/${MACHINE}
|
||||
KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
|
||||
.if !defined(KERNOBJDIR) && exists(${KERNSRCDIR}/${KERNARCHDIR}/compile)
|
||||
KERNOBJDIR!= cd "${KERNSRCDIR}/${KERNARCHDIR}/compile" && ${PRINTOBJDIR}
|
||||
.endif
|
||||
Reference in New Issue
Block a user