[coreboot-gerrit] Patch merged into coreboot/master: buildgcc: Move a bunch of code into a function