make buildkernel fails without complete source tree

Remko Lodder remko at elvandar.org
Thu Jan 18 18:54:08 UTC 2007


Ken Smith wrote:
> On Thu, 2007-01-18 at 10:27 -0800, Bruce A. Mah wrote:
>> If memory serves me right, Murray Stokely wrote:
>>> On 1/18/07, Remko Lodder <remko at elvandar.org> wrote:
>>>>         This is not true. I downloaded the packages which are being used by sysinstall
>>>>         and extracted them. I found the Makefile, it was properly filled with instructions.
>>> It looks to me like src/release/makefile builds the tar file ssys.tar
>>> by just tarring /usr/src/sys and therefore would in fact be missing
>>> /usr/src/Makefile and /usr/src/Makefile.inc1 necessary for "make
>>> buildkernel".
>>>
>>> Taking a look at the tar file:
>>>
>>> cat ssys.a?? > ssys.tar && tar tvf ssys.tar
>>>
>>> I see that only files in /usr/src/sys are included.
>>>
>>> We could add a tar -r -f .. /usr/src/Makefile /usr/src/Makefile.inc1
>>> to release.7 in /usr/src/release/Makefile to automatically add these
>>> two files as a special case to the ssys distribution.  CCing re@ for
>>> any comments on that proposal.
>> I vaguely remember this issue coming up before, and that we didn't make
>> any changes to packaging because that in order to use the buildkernel
>> target, one "should" have already done a buildworld, which requires the
>> complete source tree anyway.
>>
>> (Maybe I'm mis-remembering...)
>>
>> Bruce.
>>
> 
> I don't recall a discussion about this (it may pre-date my involvement
> in RE) but my understanding was the 'make <anything>' in /usr/src was
> only supported if you load all of the source tree (which is what Bruce
> is saying).  Extracting just the sys sources is still useful because you
> can do "manual" (old fashioned, which is why I know about it...) kernel
> builds on the current system:
> 
> 	cd /usr/src/sys/i386/conf
> 	config GENERIC
> 	cd ../compile/GENERIC
> 	etc...
> 
> But to do anything beyond that you really need the whole src tree.
> 

Hmm didn't notice that this was a sys/ only download, thought
it was an entire download. I downloaded the entire src/ stuff
from the ftp servers and with that extracted, i have a nice
Makefile with all the required stuff.

My apologies for the mislead!

-- 
Kind regards,

      Remko Lodder               ** remko at elvandar.org
      FreeBSD                    ** remko at FreeBSD.org

      /* Quis custodiet ipsos custodes */



More information about the freebsd-doc mailing list