Commit Graph

12 Commits

Author SHA1 Message Date
lukem 7b256958f1 Only try to KERNOBJDIR!= if the required directory exists. 2003-10-11 08:05:57 +00:00
lukem 87610a53a9 whitespace cleanup 2003-07-18 04:04:03 +00:00
lukem 4bb41ae2f2 Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile.  Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00
lukem 82172c42f6 Implement NETBSDSRCDIR, which is the top level of the NetBSD source tree.
Defaults to the directory determined by the _SRC_TOP_ logic (if != ""),
and the BSDSRCDIR.

NETBSDSRCDIR has been provided for use by the various NetBSD source
Makefiles to find the top of the NetBSD source tree, and isn't
affected by the inheritance properties of _SRC_TOP_, nor does it
have the magic BSDOBJDIR baggage that BSDSRCDIR is stuck with.
2002-04-26 15:02:02 +00:00
lukem 0476c683f0 replace BSDSRCDIR with _SRC_TOP_, since the latter is more likely to
be "accurate".  document _SRC_TOP_.
2002-04-10 15:05:41 +00:00
jmc 423e88b943 Ok, take 2 on redoing KERNOBJDIR logic.
Use the old setup for MAKEOBJDIRPREFIX but also add a new check for
_SRC_TOP_OBJ_ and use that if it's set. This allows a make release using
build.sh (which uses MAKEOBJDIR patterns) to function correctly on r/o
source tree's.
2001-11-27 05:39:03 +00:00
jmc 6c76413f2f Back out last. Typo'd some things I need to test again 2001-11-27 05:17:31 +00:00
jmc 917bc8ae24 Change logic around for kernel objdir handling.
Use MAKEOBJDIRPREFIX as before if it's set

otherwise if _SRC_TOP_OBJ_ is set and isn't "" use it as the base for the
obj dir
2001-11-27 05:11:41 +00:00
sjg 3540a44721 correct description of KERNSRCDIR and others 2000-05-07 01:20:47 +00:00
sjg 940f61650e if make(obj) then use MAKEOBJDIRPREFIX regardless 2000-05-06 07:41:59 +00:00
sjg 45fb67b360 remove/change missleading comments 2000-05-03 00:10:33 +00:00
sjg a434bb7045 Added bsd.kernobj.mk to centralize the magic for the location
of kernel configs and compiles.  Relies on BSDSRCDIR being set
which is now handled by src/Makefile.inc if need be.
2000-05-02 03:43:15 +00:00