summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2001-10-02 16:53:50 +0000
committerluigi <luigi@FreeBSD.org>2001-10-02 16:53:50 +0000
commit84344921ed20f582d6c867fcb292713027a3c6f0 (patch)
treecb52297605a8aa0c36ff491664e5be3758e1e982 /release
parent63b7da3bb406c9389cbec5603c1d885f7cd62911 (diff)
downloadFreeBSD-src-84344921ed20f582d6c867fcb292713027a3c6f0.zip
FreeBSD-src-84344921ed20f582d6c867fcb292713027a3c6f0.tar.gz
Compile the kernel under ${BUILDDIR} instead of polluting the source
tree. Unfortunately the latter cannot be completely readonly, because "config" still depends on the kernel config file being in sys/${ARCH}/conf (it seems to derive other pathnames from that one).
Diffstat (limited to 'release')
-rw-r--r--release/picobsd/build/Makefile.conf16
1 files changed, 13 insertions, 3 deletions
diff --git a/release/picobsd/build/Makefile.conf b/release/picobsd/build/Makefile.conf
index 1a352d3..a358a84 100644
--- a/release/picobsd/build/Makefile.conf
+++ b/release/picobsd/build/Makefile.conf
@@ -10,11 +10,20 @@
# and CONFIG may indicate an alternate config program
SRC?=/usr/src
-CONF?=${SRC}/sys/i386/conf
CONFIG?=config
+# These 3 variables determine where the kernel is built.
+# If config were smart enough, we could even place the config
+# file in some other place than ${SRC}/sys/i386/conf, but
+# at the moment (Oct.2001) this is not possible yet.
+CONF=${SRC}/sys/i386/conf
+#CONF=${BUILDDIR}/conf # XXX does not work yet
CONFFILE=PICOBSD-${name}
-COMPILE=${CONF}/../compile/${CONFFILE}
+
+# We can, however, compile the kernel somewhere else
+#COMPILE=${CONF}/../compile/${CONFFILE}
+COMPILE=${BUILDDIR}/${CONFFILE}
+
KERNFILE=${COMPILE}/kernel
${BUILDDIR}/kernel: ${KERNFILE}
@@ -28,10 +37,11 @@ do_a_make_in_the_kernel_directory_anyways:
(cd ${COMPILE}; make KERNEL=kernel -DNO_MODULES)
${COMPILE}: ${CONF}/${CONFFILE}
- (cd ${CONF}; ${CONFIG} ${CONFFILE}; \
+ (cd ${CONF}; ${CONFIG} -d ${COMPILE} ${CONFFILE}; \
cd ${COMPILE}; make KERNEL=kernel -DNO_MODULES depend )
${CONF}/${CONFFILE}: PICOBSD
+ # -mkdir -p ${CONF} # XXX not needed yet.
cp ${.OODATE} ${.TARGET}
if [ -f PICOBSD.hints ] ; then cp PICOBSD.hints ${CONF}/PICOBSD.hints ; fi
OpenPOWER on IntegriCloud