This package contains the rules and scripts which generate
cross-toolchain _source_ packages of the form cross-gcc-<ver>-<arch>.

Those packages build actual cross-toolchain binary packages. A set of
those (created with this cross-gcc-dev package) is already uploaded to
the archive. You can also build other toolchain combinations which are
not provided in the archive using this package.


Generating cross-compiler source packages
-----------------------------------------

cross-gcc-gensource is the command that does the work.

Running simply 
cross-gcc-gensource 4.9
will generate source packages for the default debian set of TARGET and
HOST architectures.

To change the set of TARGET architectures built or the set of HOST
architectures they are built for, set the TARGET_LIST and HOST_LIST
variables respectively, and generate the source trees. For instance,
to make a pair of packages that will build armhf and armel gcc 4.9
cross-compilers for amd64, i386 and arm64, install cross-gcc-dev and
run:

 TARGET_LIST="armel armhf" HOST_LIST="amd64 i386 arm64" cross-gcc-gensource 4.9

This generates a separate source package for each target. The packages
are generated in a cross-gcc-packages-$HOSTARCH directory in the
current directory. At this point each of these source packages is
ready to be built normally with sbuild (or dpkg-buildpackage on a
system where the target architecture is enabled as a multiarch
architecture).


Helper scripts
--------------

The git repo for this package also contains cross-gcc-buildall and
auto-build-all.sh helper scripts for updating patches, checking
build-deps and doing builds of multiple cross-compilers for upload to
the archive. These are only really useful to the maintainers, and will
hopefully be superseded soon so are not packaged.
