Subject: port-playstation2/16249: playstation2 kernel build uses gratuitously odd toolchain
To: None <>
From: Ben Harris <>
List: netbsd-bugs
Date: 04/08/2002 19:07:57
>Number:         16249
>Category:       port-playstation2
>Synopsis:       playstation2 kernel build uses odd toolchain
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-playstation2-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 08 11:08:02 PDT 2002
>Originator:     Ben Harris
>Release:        2002-04-07
Cross-compile from Debian GNU/Linux 2.2
sys/arch/playstation2/conf/ contains:

EETOOLDIR       =       /usr/pkg/cross-ps2
TARGET  =       mipsEEel-netbsd

CC      =       ${EETOOLDIR}/bin/${TARGET}-gcc
LD      =       ${EETOOLDIR}/bin/${TARGET}-ld
CXX     =       ${EETOOLDIR}/bin/${TARGET}-g++
AS      =       ${EETOOLDIR}/bin/${TARGET}-as
CPP     =       ${EETOOLDIR}/bin/${TARGET}-cpp
RANLIB  =       ${EETOOLDIR}/bin/${TARGET}-ranlib
AR      =       ${EETOOLDIR}/bin/${TARGET}-ar
NM      =       ${EETOOLDIR}/bin/${TARGET}-nm
SIZE    =       ${EETOOLDIR}/bin/${TARGET}-size
STRIP   =       ${EETOOLDIR}/bin/${TARGET}-strip

This overrides the normal cross-compile (or indeed native)  toolchain, so
that kernel builds (e.g. as part of a "make release")  have no chance of

        sh \
                -U -m $MACHINE \
                -T /u1/ben/netbsd/tools \
                -O /u1/ben/netbsd/obj.$MACHINE \
                -D /u1/ben/netbsd/dest.$MACHINE \
                -R /u1/ben/netbsd/release.$MACHINE \
                > build.log.$MACHINE 2>&1