On Tue, Mar 2, 2010 at 11:17 AM, Bryan <bra...@gmail.com> wrote:
> On 3/2/2010 12:32 PM, Marc Espie wrote:
>>
>> No, it's more complicated than that. It obviously installs mk stuff, then
>> include, then it builds libs and install them, then it builds everything
>> else and installs it.
>>
>> It's not a complicated bootstrap procedure like in freebsd land, it
>> assumes
>> you already have a mostly working system (for instance, it takes no
>> precautions
>> for compiler bootstrap).
>>
>> follow release(8), find out the step you missed (most likely make obj) and
>> proceed from there. You definitely want a clean build before you play
>>
>> (snide remark: you think you're smart, so you took shortcuts. Well, think
>> again. And anyone who can follow instructions can actually build OpenBSD
>> fairly easily. ;-) )
>>
>
> I missed building "make obj" on a few occasions.  It happens if you are
> typing in things too quickly, or it's late at night.  I got into the habit
> of using a script that I built from the faq to build each (kernel,
userland,
> X).
>
> The most recent thing I did was move /usr/obj, /usr/xobj/, /usr/build, and
> /tmp to a ramdisk to allow for faster building, and also began using the
> "-j" on make.  I forgot that I could do that. Makes things way faster.  But
> I only did the scripting and changes when I knew what I was doing, and I
had
> enough RAM.
>
> for example, here is my script to build my kernel:
>
> #!/bin/sh
>
> cd /usr/obj
> rm -rf *
> cd /usr/xobj
> rm -rf *
> cd /usr/build
> rm -rf *
> cp /usr/src/sys/arch/i386/conf/GENERIC.MP .
> config -s /usr/src/sys -b . GENERIC.MP
> make clean && make depend && make && make install

What if for some reason /usr/obj doesn't exist? what will it remove?  :-)


-B

Reply via email to