On Tue, Mar 2, 2010 at 4:30 PM, Hugo Villeneuve <harpa...@jwales.eintr.net> wrote: > On Tue, Mar 02, 2010 at 08:40:47PM +0100, Marc Espie wrote: >> On Tue, Mar 02, 2010 at 01:17:09PM -0600, Bryan wrote: >> > [...] >> >> #! /bin/sh >> set -e > >> cd /usr/obj && rm -rf * >> cd /usr/xobj && rm -rf * > > Stupid question: Is that even necessary before building a kernel > on i386?
Not that I am aware. The orthodox kernel compilation, cd /usr/src/sys/arch/<name your poison>/conf config <name of kernel> cd .. make clean && make depend && make <check your work> make install does not use /usr/*obj at all, nor anything outside of /usr/src/sys, (But when you make the raft of kernels with "make release", /usr/obj is used.) In the ancient days, many only had the /usr/src/sys hierarchy installed, since they needed only to roll a custom kernel -- this made a difference in days of 10MByte main memory and 120MB disks, and was in fact a necessity. No longer, though, thanks to sysctl's and related solutions. A second point, I like to keep /usr/*obj around in case I mess around with something in /usr/src/ and wish to recompile just a component. This is handy when a source patch comes out. > I know mac68k/m68k archs will make /usr/src/sys/arch/m68k/fpsp as > part of a kernel build. And annoyingly, if you didn't "make obj" I see that's under /usr/src/sys I'd put up with the ?'s. Or maybe stick .cvsignore files in the obj dirs. potato/potahto. > in that folder first, your next "cvs up" will be peppered with ? > lines. > > Any other arch is "special" in that way? Each snowflake is unique :) Dave -- teh googlez read my emails 'n' STUFF!!!! LOLZ!!! urz 2!!! LOLZ!!!