Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 14:37:06 -0800
From:      Darren Pilgrim <dmp@pantherdragon.org>
To:        freebsd-current@freebsd.org
Subject:   Re: How to build -current and install to empty slice?
Message-ID:  <3E2F1D12.8070603@pantherdragon.org>
In-Reply-To: <20030117231450.A441C5D04@ptavv.es.net>
References:  <20030117231450.A441C5D04@ptavv.es.net> <xzpu1g6zk5u.fsf@flood.ping.uio.no> <3E2B4B61.2090603@pantherdragon.org> <20030120021031.GA41361@arkadia.nv.cox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090405080302030809020104
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Ray Kohler wrote:
> On Sun, Jan 19, 2003 at 05:05:37PM -0800, Darren Pilgrim wrote:
> 
>> How do tell make to use /5/usr/obj instead of /usr/obj?  Will 
>> MAKEOBJDIRPREFIX=/5/usr/obj do this?
>> 
>> I have more questons:
>> 
>> Can I force make to ignore /etc/make.conf and
>> /etc/defaults/make.conf and read another set of config files?
>> Would it be safe to use /5/usr/src/etc/defaults/make.conf?
>> 
>> Will DESTDIR=/5 cause the new build tools to install under /5 as 
>> well, or do I need to set something else to avoid having my 4.7p3
>> build tools clobbered?
>> 
>> So far I have this set of commands:
>> 
>> # cd /5/usr/src && MAKEOBJDIRPREFIX=/5/usr/obj DESTDIR=/5 make buildworld
 >> # MAKEOBJDIRPREFIX=/5/usr/obj DESTDIR=/5 make kernel

The buildkernel portion worked just fine, but the installkernel portion 
stopped with an error about the lack of a /5/boot/device.hints.  Copying 
that file from sys/i386/conf/GENERIC.hints worked.  The relevant output 
is attached as error1.

Then I got another error saying /5/boot/defaults/loader.conf didn't 
exist and that I needed to activate device.hints.  I copied 
sys/boot/forth/loader.conf to /5/boot/defaults/loader.conf and was then 
able to make installkernel.  The output for this error is attached as 
error2.

Is there a make target to build up ${DESTDIR}/boot, or should I keep 
this in my notes as a normal part of the process when installing to an 
empty disk?

--------------090405080302030809020104
Content-Type: text/plain;
 name="error1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="error1"

--------------------------------------------------------------
>>> Kernel build for GENERIC completed on Wed Jan 22 04:43:24 PST 2003
--------------------------------------------------------------
cd /5/usr/obj/5/usr/src/sys/GENERIC;  MAKEOBJDIRPREFIX=/5/usr/obj  MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE=p3  GROFF_BIN_PATH=/5/usr/obj/5/usr/src/i386/usr/bin  GROFF_FONT_PATH=/5/usr/obj/5/usr/src/i386/usr/share/groff_font  GROFF_TMAC_PATH=/5/usr/obj/5/usr/src/i386/usr/share/tmac PATH=/5/usr/obj/5/usr/src/i386/usr/sbin:/5/usr/obj/5/usr/src/i386/usr/bin:/5/usr/obj/5/usr/src/i386/usr/games:/5/usr/obj/5/usr/src/make.i386:/sbin:/bin:/usr/sbin:/usr/bin  make KERNEL=kernel install
You must set up a /5/boot/device.hints file first.
*** Error code 1

Stop in /5/usr/obj/5/usr/src/sys/GENERIC.
*** Error code 1

Stop in /5/usr/src.
*** Error code 1

Stop in /5/usr/src.


--------------090405080302030809020104
Content-Type: text/plain;
 name="error2"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="error2"

# MAKEOBJDIRPREFIX=/5/usr/obj DESTDIR=/5 make installkernel
Running test variables
PASS: Test variables detected no regression, output matches.
Running test targets
PASS: Test targets detected no regression.
Running test sysvmatch
PASS: Test sysvmatch detected no regression.
Running test lhs_expn
PASS: Test lhs_expn detected no regression.
Running test notdef
PASS: Test notdef detected no regression.
Running test modifiers
PASS: Test modifiers detected no regression.
Running test funny_targets
PASS: Test funny_targets detected no regression.
cd /5/usr/obj/5/usr/src/sys/GENERIC;  MAKEOBJDIRPREFIX=/5/usr/obj  MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE=p3  GROFF_BIN_PATH=/5/usr/obj/5/usr/src/i386/usr/bin  GROFF_FONT_PATH=/5/usr/obj/5/usr/src/i386/usr/share/groff_font  GROFF_TMAC_PATH=/5/usr/obj/5/usr/src/i386/usr/share/tmac PATH=/5/usr/obj/5/usr/src/i386/usr/sbin:/5/usr/obj/5/usr/src/i386/usr/bin:/5/usr/obj/5/usr/src/i386/usr/games:/5/usr/obj/5/usr/src/make.i386:/sbin:/bin:/usr/sbin:/usr/bin  make KERNEL=kernel install
grep: /5/boot/defaults/loader.conf: No such file or directory
You must activate /boot/device.hints in loader.conf.
*** Error code 1

Stop in /5/usr/obj/5/usr/src/sys/GENERIC.
*** Error code 1

Stop in /5/usr/src.
*** Error code 1

Stop in /5/usr/src.


--------------090405080302030809020104--


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?3E2F1D12.8070603>