From owner-freebsd-current Wed Jan 22 14:37:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E398337B401 for ; Wed, 22 Jan 2003 14:37:10 -0800 (PST) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC56643F5F for ; Wed, 22 Jan 2003 14:37:09 -0800 (PST) (envelope-from dmp@pantherdragon.org) Received: from sparx.techno.pagans (12-224-208-117.client.attbi.com [12.224.208.117]) by spork.pantherdragon.org (Postfix) with ESMTP id 309101005F for ; Wed, 22 Jan 2003 14:37:08 -0800 (PST) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.techno.pagans (Postfix) with ESMTP id D57FBAA8F for ; Wed, 22 Jan 2003 14:37:06 -0800 (PST) Message-ID: <3E2F1D12.8070603@pantherdragon.org> Date: Wed, 22 Jan 2003 14:37:06 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20030119 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: How to build -current and install to empty slice? References: <20030117231450.A441C5D04@ptavv.es.net> <3E2B4B61.2090603@pantherdragon.org> <20030120021031.GA41361@arkadia.nv.cox.net> In-Reply-To: <20030117231450.A441C5D04@ptavv.es.net> Content-Type: multipart/mixed; boundary="------------090405080302030809020104" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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