Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 8241c45f0d6762729a9f02e41ca04784d210e259
parent 56878e05bf9e889f28c93f71934bdede2aecc4de
Author: Francis Rowe <>
Date:   Fri,  6 Nov 2015 03:08:47 +0000

build/module/coreboot: also build crossgcc arm

docs/git/index.html | 12------------
docs/maintain/index.html | 13+++----------
resources/scripts/helpers/build/module/coreboot | 6++++--
3 files changed, 7 insertions(+), 24 deletions(-)

diff --git a/docs/git/index.html b/docs/git/index.html @@ -874,18 +874,6 @@ </p> <p> - NOTE: crossgcc is included in <i>coreboot/util/crossgcc/tarballs/</i> in the release archives, - but the build system for libreboot does not automatically download/build it. - If you are using libreboot from the git repository, make sure to do the following:<br/> - $ <b>cd coreboot/</b><br/> - $ <b>make crossgcc-i386</b><br/> - $ <b>make crossgcc-arm</b><br/> - $ <b>cd ../</b><br/> - This will download coreboot's reference cross-compile toolchain, - which is highly recommended by the coreboot project. - </p> - - <p> After that, build the ROM images (for all boards):<br/> $ <b>./build roms withgrub</b><br/> Alternatively, you can build for a specific board or set of boards. diff --git a/docs/maintain/index.html b/docs/maintain/index.html @@ -395,25 +395,18 @@ <p> Finally, re-build the parts from coreboot that are used - by the build system:<br/> + by the build system (also builds GCC):<br/> $ <b>./build module coreboot</b> </p> - - <p> - You also need to build crossgcc:<br/> - $ <b>cd coreboot/</b><br/> - $ <b>make crossgcc-i386</b><br/> - $ <b>make crossgcc-arm</b><br/> - $ <b>cd ../</b> - </p> <p> - Instead of running the above command, you can save time + Before running the above command, you can save time by copying out the crossgcc that you compiled before (from coreboot/util/crossgcc/) and then putting it back. After you've done that, run everything in <i>resources/scripts/helpers/build/module/coreboot</i> except for the part that builds GCC. + <b>Only do this if the version is correct.</b> </p> <p> diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot @@ -31,8 +31,10 @@ set -u -e printf "Building the utilities in coreboot\n" # crossgcc -# coreboot is 32-bit, so only build for i386 -make -j$(nproc) -BC coreboot crossgcc-i386 +# coreboot on x86 is 32-bit, so only build for i386. Also build for ARM +for architecture in i386 arm; do + make -j$(nproc) -BC coreboot crossgcc-${architecture} +done # cbfstool, ifdtool, cbmem, nvramtool for util in {cbfs,ifd,nvram}tool cbmem; do