Subject: cross compiling on a FreeBSD machine
To: None <port-mac68k@NetBSD.org>
From: Nuno Teixeira <nunotex@pt-quorum.com>
List: port-mac68k
Date: 11/30/2003 20:22:11
Hello to all,

I'm about to finish sup for netbsd stable (tag release-1-6) for my SE/30
and then I will try to cross compile userland and kernel on a i386 FreeBSD
5.1.

I setup NFS filesystems to simplify installation:

FreeBSD "/usr/home/se30" NFS exported to SE/30 "/mnt/freebsd".

Inside se30 I have the following dirs:

	src
	cross
	build

For what I've read I will follow this steps:
===========================================

### FreeBSD:

 cd /usr/home/se30/src/
# compile cross tools
 ./build.sh -m mac68k -T ../cross tools
# compile kernel
 ./build.sh kernel=SE30
# compile userland
 ./build.sh -D ../build -d

### SE/30:

# install kernel
 mv /netbsd /onetbsd
 mv /usr/home/se30/src/sys/arch/mac68k/compile/SE30/netbsd /netbsd

REBOOT

# install userland
 ./build.sh install=/
 etcupdate -s /usr/home/se30/src/etc

REBOOT

===========================================

1- Can I install userland with "./build.sh install=/" on SE/30?
2- It is possible to use gcc optimizations like "-O2 -pipe -m68030" on
building machine?

Thanks vey much,

		Nuno Teixeira
-- 

/*
PGP fingerprint:
C6D1 06ED EB54 A99C 6B14  6732 0A5D 810D 727D F6C6
*/