On Mon, Nov 9, 2020 at 5:38 PM Peter Stuge peter@stuge.se wrote:
Branden Waldner wrote:
Is there an expected minimal system gcc version and if so, is it documented? I couldn't find it noted anywhere.
There's the crossgcc tool and make target to create a known-working toolchain for building coreboot.
See:
https://doc.coreboot.org/tutorial/part1.html Step 3 - Build the coreboot toolchain
Please note that this can take a significant amount of time. Use CPUS= to specify number of make jobs to run in parallel.
This will list toolchain options and supported architectures:
$ make help_toolchain
Here are some examples:
$ make crossgcc-i386 CPUS=$(nproc) # build i386 toolchain $ make crossgcc-aarch64 CPUS=$(nproc) # build Aarch64 toolchain $ make crossgcc-riscv CPUS=$(nproc) # build RISC-V toolchain
Note that the i386 toolchain is currently used for all x86 platforms, including x86_64.
Also note that you can possibly use your system toolchain, but the results are not reproducible, and may have issues, so this is not recommended. See step 5 to use your system toolchain.
//Peter _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org