/usr/share/doc/cross-gcc-dev/README.source is in cross-gcc-dev 76.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 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.
|