Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2005 22:57:14 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-security@FreeBSD.org, developers@FreeBSD.org
Subject:   Re: Is it feasible to cross-build compat5x binary?
Message-ID:  <20051027195714.GV68470@ip.net.ua>
In-Reply-To: <20051025.232323.93475319.imp@bsdimp.com>
References:  <20051024080811.GF39882@cirb503493.alcatel.com.au> <20051025004757.GH14063@obiwan.tataz.chchile.org> <20051025170934.GA29561@xor.obsecurity.org> <20051025.232323.93475319.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--DMefDzZywwCHZelG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 25, 2005 at 11:23:23PM -0600, M. Warner Losh wrote:
> I know that cross builds for i386 from amd64 work well enough.
> However, we[*] was unable to get a full cross build for i386 world
> seutp on my amd64 machine when last I tried.
>=20
I use it on a regular basis:

$ uname -srnm
FreeBSD hammer.runet 7.0-CURRENT amd64

$ uname -srnmv
FreeBSD lurker.runet 7.0-CURRENT FreeBSD 7.0-CURRENT #11: Fri Oct 14 10:05:=
37 EEST 2005     ru@hammer.runet:/usr/obj/i386/usr/src/sys/LURKER  i386

I NFS-mount /, /usr, and /var file systems from i386 to amd64,
and do everything from amd64, inluding installworld,
installkernel, and distribution, with TARGET_ARCH=3Di386 and
DESTDIR=3D/mnt.

make __MAKE_CONF=3D/dev/null \
    TARGET_ARCH=3Di386 \
    -DNO_PROFILE KERNCONF=3DLURKER \
    -DNO_CLEAN \
    buildworld buildkernel

NFS-mount /, /usr, and /var on /mnt.

make __MAKE_CONF=3D/dev/null \
    TARGET_ARCH=3Di386 \
    -DNO_PROFILE KERNCONF=3DLURKER \
    -DNO_CLEAN \
    DESTDIR=3D/mnt \
    installworld installkernel

mkdir /mnt/var/tmp/`date +%Y%m%d`

make __MAKE_CONF=3D/dev/null \
    TARGET_ARCH=3Di386 \
    -DNO_PROFILE KERNCONF=3DLURKER \
    -DNO_CLEAN \
    DESTDIR=3D/mnt/var/tmp/`date +%Y%m%d` \
    distrib-dirs distribution

(Sorry, I don't use mergemaster(8) at all.)


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--DMefDzZywwCHZelG
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDYTEaqRfpzJluFF4RAnfOAKCM1ayyAre45MKnviHqytMW1c1DkACgkVRE
IJRIsooANoz5/7c/pqjrtDs=
=jMRG
-----END PGP SIGNATURE-----

--DMefDzZywwCHZelG--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051027195714.GV68470>