From 15e4b8a00caec6ee6a4df607ad93792575dbaac8 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Sat, 22 May 2021 20:28:06 +0100
Subject: build/crossgcc: insert .coreboot-version

---
 resources/scripts/build/boot/roms_helper | 1 +
 1 file changed, 1 insertion(+)

(limited to 'resources/scripts/build/boot')

diff --git a/resources/scripts/build/boot/roms_helper b/resources/scripts/build/boot/roms_helper
index f3608780..46b65be5 100755
--- a/resources/scripts/build/boot/roms_helper
+++ b/resources/scripts/build/boot/roms_helper
@@ -132,6 +132,7 @@ fi
 if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
 	if [ ! -d "${cbdir}/util/crossgcc/xgcc/i386-elf/" ]; then
 		(
+			cat version > "${cbdir}/.coreboot-version"
 			cd "${cbdir}"
 			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
-- 
cgit v1.2.1