build/crossgcc: insert .coreboot-version

fsdg20230625
Leah Rowe 2021-05-22 20:28:06 +01:00
parent 85ec4e0e08
commit 15e4b8a00c
2 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ fi
if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
if [ ! -d "${cbdir}/util/crossgcc/xgcc/i386-elf/" ]; then if [ ! -d "${cbdir}/util/crossgcc/xgcc/i386-elf/" ]; then
( (
cat version > "${cbdir}/.coreboot-version"
cd "${cbdir}" cd "${cbdir}"
make crossgcc-i386 CPUS=$(nproc) # even for 64-bit machines, coreboot builds make crossgcc-i386 CPUS=$(nproc) # even for 64-bit machines, coreboot builds
# 32-bit ROM images, so we only need to worry about i386-elf # 32-bit ROM images, so we only need to worry about i386-elf

View File

@ -35,6 +35,7 @@ fi
if [ ! -d "coreboot/default/util/crossgcc/xgcc/i386-elf" ]; then if [ ! -d "coreboot/default/util/crossgcc/xgcc/i386-elf" ]; then
( (
cat version coreboot/default/.coreboot-version
cd coreboot/default/ cd coreboot/default/
make crossgcc-i386 CPUS=$(nproc) # tianocore actually uses host gcc, which means make crossgcc-i386 CPUS=$(nproc) # tianocore actually uses host gcc, which means
# right now you should be building this on a 64-bit x86 host. # right now you should be building this on a 64-bit x86 host.