Building FreeBSD MIPS
Erik Moe
ehmoeok at gmail.com
Tue Jul 15 22:54:52 UTC 2008
Question, is current the FreeBSD MIPS code in a state where one could
build a kernel? I've got the latest code from
svn://svn.freebsd.org/base/head. I'm trying to build the
kernel-toolchain with the following script:
#!/bin/sh
SRCROOT=/usr/home/emoe/fbsd-mips/current-svn/head
export MAKEOBJDIRPREFIX=/usr/home/emoe/fbsd-mips/build-current-svn
TARGET_ARCH=mips
TARGET=mips
TARGET_CPUTYPE=mips32
cd ${SRCROOT}
make TARGET_ARCH=mips TARGET=mips TARGET_CPUTYPE=mips32 kernel-toolchain
#make TARGET_ARCH=mips NO_MODULES=yes MIPS_LITTLE_ENDIAN=yes \
# buildkernel KERNCONF=MALTA
I getting the following error:
make: don't know how to make
/usr/home/emoe/fbsd-mips/current-svn/head/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config//.c.
Stop
I believe that this is because the GCC_CPU variable is not being set in
gnu/usr.bin/cc/Makefile.tgt
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == "arm"
GCC_CPU= arm
.elif ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
GCC_CPU= i386
.elif ${TARGET_ARCH} == "ia64"
TARGET_CPU_DEFAULT= MASK_GNU_AS|MASK_GNU_LD
GCC_CPU= ia64
.elif ${TARGET_ARCH} == "powerpc"
GCC_CPU= rs6000
.elif ${TARGET_ARCH} == "sparc64"
GCC_CPU= sparc
TARGET_CPU_DEFAULT= TARGET_CPU_ultrasparc
.endif
So my assumption is that all the pieces to build the MIPS tool-chain
aren't there.
Erik Moe
ehmoeok at gmail.com
More information about the freebsd-mips
mailing list