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?
--------------------------------------------------------------
>>> 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.
# 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.