Normal usage is
cross-gcc-gensource gcc_version
Where "gcc_version" is the base version of the toolchain we're building. At the time of this writing we
know about versions 4.9, 5, 6, 7, 8. This commandline argument is required.
Specifyingthetargetarchitectures
This tool generates a separate source package for each target architecture (the architecture targetted by
the cross-compiler being built). By default these architectures are targetted:
arm64
armel
armhf
mips
mipsel
powerpc
ppc64el
If a different set of target architectures is required, set the "TARGET_LIST" environment variable. For
instance, to build for "armel" and "armhf":
TARGET_LIST="armel armhf" cross-gcc-gensource 5
Specifyingthehostarchitectures
Similarly, this tool generates a separate source tree for each host architecture (the architecture the
cross-compiler being built runs on). By default these architectures are targetted:
amd64
i386
If a different set of host architectures is required, set the "HOST_LIST" environment variable. For
instance, to build just for "amd64":
HOST_LIST="amd64" cross-gcc-gensource 5
Specifyingaverisonsuffix
If you need to upload a new source package when the version of gcc-source built-against hasn't changed,
then you need to add a version suffix to avoid binary-version clashes. An optional SUFFIX env var allows
this.
TARGET_LIST="armel armhf" SUFFIX=.1 cross-gcc-gensource 5
cross-gcc-dev=249 2024-02-19 CROSS-GCC-GENSOURCE(1)