Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Oct 2019 01:02:09 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        ports-list freebsd <freebsd-ports@freebsd.org>, "bapt@freebsd.org " <bapt@FreeBSD.org>
Subject:   Re: [HEADSUP] Removing DESTDIR support (aka chroot not staging)
Message-ID:  <FDCE639A-115D-4F2C-A517-18F30E8525E5@yahoo.com>

next in thread | raw e-mail | index | archive | help
You may want to contact "jhb": head/base/README says:

QUOTE
# $FreeBSD$

How to cross build initial toolchain

Example with sparc64

1/ install a cross toolchain
pkg install sparc64-xtoolchain-gcc

2/ cross build world
make CROSS_TOOLCHAIN=3Dsparc64-gcc TARGET=3Dsparc64 TARGET_ARCH=3Dsparc64 =
buildworld

3/ install the world in a sysroot
make CROSS_TOOLCHAIN=3Dsparc64-gcc TARGET=3Dsparc64 TARGET_ARCH=3Dsparc64 =
installworld DESTDIR=3D/sysroots/sparc64

4/ build the required port
$ cd base/binutils
make CROSS_TOOLCHAIN=3Dsparc64-gcc CROSS_SYSROOT=3D/sysroots/sparc64 =
package

$ cd base/gcc
make CROSS_TOOLCHAIN=3Dsparc64-gcc CROSS_SYSROOT=3D/sysroots/sparc64 =
package

the package are in base/gcc/work/pkg/*.txz and =
base/binutils/work/pkg/*.txz

To add a plist for a new binutils target
$ cd base/binutils
make CROSS_TOOLCHAIN=3Dsparc64-gcc CROSS_SYSROOT=3D/sysroots/sparc64 =
makeplist > pkg-plist

edit the pkg-plist and remove everything which base does not provide via =
the
elftoolchain
END QUOTE

Note the "DESTDIR=3D/sysroots/sparc64" and the
"CROSS_SYSROOT=3D/sysroots/sparc64" in the example.

Are there consequences for this for what you are
proposing to do?


I do this sort of thing targetting powerpc64
at times.

I also sometimes build pkg at times this way
for powerpc64 to bootstrap it.



=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FDCE639A-115D-4F2C-A517-18F30E8525E5>