Subject: Re: I can't buil a decent kernel
To: None <port-sparc@NetBSD.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 08/18/2006 01:16:33
On Thu, Aug 17, 2006 at 20:10:20 +0100, Nuno Pires wrote:

> The problem is that I can't build a kernel that boots the system. 
> Building GENERIC results in a kernel that just makes the system reboot 
> after: "ms0 at zs1 channel 1: baud rate 1200". And it is much bigger 
> than the distribution one:
> -rwxr-xr-x   1 root  wheel  3812216 Dec 19  2005 netbsd.dist
> -rwxr-xr-x   1 root  wheel  6377427 Aug 16 16:05 netbsd.test
> 
> My mk.conf goes like this:
> COPTS+=-mcpu=v8
> CPUFLAGS=-mcpu=v8
> COPTS+=-mtune=v8
> CPUFLAGS=-mtune=v8
> COPTS+=-pipe
> BUILDFLAGS+=-j3

Check the build logs.  I guess you nuke -O2 from COPTS with those
assignemnts (+= sets it, so ?= -O2 in the makefile is ignored)

    CPUFLAGS=-mcpu=supersparc

is enough to get the v8 optimizations you want.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen