Subject: build.sh confusion
To: None <netbsd-help@netbsd.org>
From: Brian <4thgensi@comcast.net>
List: netbsd-help
Date: 10/21/2004 16:20:00
Hi, 

Got a clean source tree in /usr/src from cvs -rnetbsd-2-0. Also a empty /usr/obj

Build the tools and distribution with
# ./build.sh tools
# ./build.sh distribution

Then go to build the kernel and it fails with

./build.sh: /usr/src/obj/tooldir.NetBSD-2.0_RC4-i386/bin/nbconfig: not found

The original tools was built with these settings.

TOOLDIR path:     /usr/src/tooldir.NetBSD-2.0_RC4-i386
DESTDIR path:     /usr/src/destdir.i386

I run ./build.sh tools again and this time the tool path gets set to

 ===> TOOLDIR path:     /usr/src/obj/tooldir.NetBSD-2.0_RC4-i386
===> DESTDIR path:     /usr/src/obj/destdir.i386



Same thing happens when I go to install, it looks for the destdir in the wrong place. 

Originally was built with

===> TOOLDIR path:     /usr/src/tooldir.NetBSD-2.0_RC4-i386
===> DESTDIR path:     /usr/src/destdir.i386

If I were to rerun now

===> TOOLDIR path:     /usr/src/obj/tooldir.NetBSD-2.0_RC4-i386
===> DESTDIR path:     /usr/src/obj/destdir.i386


Question is, why are the the paths changing? Isnt there supposed to be a default TOOLDIR and DESTDIR?

Thanks