Re: make DESTDIR=foo failing in installkernel ?

2000-11-02 Thread David O'Brien

On Thu, Nov 02, 2000 at 10:20:36AM +0100, Adrian Chadd wrote:
> On Mon, Oct 30, 2000, David O'Brien wrote:
> > On Mon, Oct 30, 2000 at 09:15:00AM +0100, Adrian Chadd wrote:
> > > cd /crash/usr/src/sys/modules && env
> > > MAKEOBJDIRPREFIX=/usr/obj/crash/usr/src/sys/GENERIC/modules
> > > KMODDIR=/crash/boot/kernel make install
> > 
> > Don't explicitly add DESTDIR to KMODDIR.
> 
> Thats all fine and good, but I don't want to touch the makefile magic.

I mean when you set KMODDIR, only use "/boot/kernel", as the bsd.*.mk
Makefiles will add DESTDIR for you.

> Can someone else proficient in Makefile h0h0magick do it if it hasn't
> been done already? :)

Not sure what Makefile hackery is needed as I'm not sure what you're
wanting to do.
 
-- 
-- David  ([EMAIL PROTECTED])
  GNU is Not Unix / Linux Is Not UniX


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: make DESTDIR=foo failing in installkernel ?

2000-11-02 Thread Adrian Chadd

On Mon, Oct 30, 2000, David O'Brien wrote:
> On Mon, Oct 30, 2000 at 09:15:00AM +0100, Adrian Chadd wrote:
> > cd /crash/usr/src/sys/modules && env
> > MAKEOBJDIRPREFIX=/usr/obj/crash/usr/src/sys/GENERIC/modules
> > KMODDIR=/crash/boot/kernel make install
> 
> 
> Don't explicitly add DESTDIR to KMODDIR.
> 
> -- 
> -- David  ([EMAIL PROTECTED])
>   GNU is Not Unix / Linux Is Not UniX

Thats all fine and good, but I don't want to touch the makefile magic.
Can someone else proficient in Makefile h0h0magick do it if it hasn't
been done already? :)

Thanks!


Adrian

-- 
Adrian Chadd"Programming is like sex:
<[EMAIL PROTECTED]>   One mistake and you have to support for
a lifetime." -- rec.humor.funny



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: make DESTDIR=foo failing in installkernel ?

2000-10-30 Thread David O'Brien

On Mon, Oct 30, 2000 at 09:15:00AM +0100, Adrian Chadd wrote:
> cd /crash/usr/src/sys/modules && env
> MAKEOBJDIRPREFIX=/usr/obj/crash/usr/src/sys/GENERIC/modules
> KMODDIR=/crash/boot/kernel make install


Don't explicitly add DESTDIR to KMODDIR.

-- 
-- David  ([EMAIL PROTECTED])
  GNU is Not Unix / Linux Is Not UniX


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



make DESTDIR=foo failing in installkernel ?

2000-10-30 Thread Adrian Chadd


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:
<[EMAIL PROTECTED]>   One mistake and you have to support for
a lifetime." -- rec.humor.funny



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message