Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2000 09:15:00 +0100
From:      Adrian Chadd <adrian@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   make DESTDIR=foo failing in installkernel ?
Message-ID:  <20001030091500.A29598@roaming.cacheboy.net>

next in thread | raw e-mail | index | archive | help

I can't be the only person who is trying to do this :)

I have my laptop with two BSD partitions - one active, and one for the
most current -current. (Its running -current from a couple months ago.)
So, I do the following:


roaming# cat crash-buildworld.sh
#!/bin/sh

DESTDIR=/crash ; export DESTDIR
MAKEOBJDIRPREFIX=/crash ; export MAKEOBJDIRPREFIX

cd /crash/usr/src
make buildworld && make installworld
make buildkernel && make installkernel

now, besides needing to copy GENERIC.hints to /crash/boot/device.hints, this
should work, right ?

Unfortunately, I get this error:

mkdir -p /crash/boot/kernel
install -c -m 555 -o root -g wheel -fschg  kernel /crash/boot/kernel
cd /crash/usr/src/sys/modules && env MAKEOBJDIRPREFIX=/usr/obj/crash/usr/src/sys/GENERIC/modules KMODDIR=/crash/boot/kernel make install
===> 3dfx
install -c -o root -g wheel -m 555   3dfx.ko /crash/crash/boot/kernel
install: /crash/crash/boot/kernel: No such file or directory
*** Error code 71

Now, in src/sys/conf/kmod.mk, is this bit of magic:

realinstall: _SUBDIR
        ${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
            ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}

KMODDIR includes DESTDIR from what I can see, in
/usr/obj/crash/usr/src/sys/GENERIC/Makefile :


MKMODULESENV=   MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${DESTDIR}${KODIR}


To be triple-sure, i did a make install in /usr/src/share/mk/ to update my
mkfiles, but that still hasn't helped.

Any clues?



Adrian
-- 
Adrian Chadd			"Programming is like sex:
<adrian@freebsd.org>		   One mistake and you have to support for
				    a lifetime." -- rec.humor.funny



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001030091500.A29598>