mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
3b99caa996
Heads build system is reextracting archives and reapplying patches on each iteration. CircleCI optimizes building time by providing cache mechanisms and forces users to build a target under an hour. This is to force Open Source projects (free tier) to not be leechers of the free tier. In the past days, CircleCI bails on building coreboot 4.11 boards because some files being cached are already being present (created files from patches). In those, two files were unwanted artifacts, recreated on top of coreboot 4.11 extracted original files (undesired .orig files), while bailing on the creating of src/security/tpm/sha1.c from patches/coreboot-4.11/0001-Add-Heads-TPM-measured-boot-support.patch. Hopefully, this is CircleCI having a maximum of 3 automatically entered input (it fails on the 3rd)... And this fix will permit src/security/tpm/sha1.c and src/security/tpm/sha1.h to be skipped if existing. Below, we see that CircleCI fills patch prompts with EOF 2 times, and then waits for input and then timeouts. Here is the failing log trace from https://app.circleci.com/pipelines/github/tlaurion/heads/990/workflows/f2a430fd-dc8c-4e95-abe3-364a0e825533/jobs/4914/parallel-runs/0/steps/0-103: Exerpt of that log: if [ -d patches/coreboot-4.11 ] && [ -r patches/coreboot-4.11 ] ; then for patch in patches/coreboot-4.11/*.patch ; do echo "Applying patch file : $patch " ; ( cd /root/project/build/coreboot-4.11/ ; patch -p1 ) < $patch || exit 1 ; done ; fi Applying patch file : patches/coreboot-4.11/0000-cpu-x86-smm-Use-PRIxPTR-to-print-uintptr_t.patch patching file src/cpu/x86/smm/tseg_region.c Applying patch file : patches/coreboot-4.11/0001-Add-Heads-TPM-measured-boot-support.patch patching file src/Kconfig The next patch would create the file src/Kconfig.orig, which already exists! Assume -R? [n] EOF Apply anyway? [n] EOF Skipping patch. 1 out of 1 hunk ignored patching file src/include/program_loading.h patching file src/lib/cbfs.c patching file src/lib/hardwaremain.c Hunk #2 succeeded at 549 (offset 8 lines). patching file src/lib/rmodule.c patching file src/security/tpm/Makefile.inc The next patch would create the file src/security/tpm/sha1.c, which already exists! Assume -R? [n] make: *** [Makefile:507: /root/project/build/coreboot-4.11/.canary] Hangup context deadline exceeded |
||
---|---|---|
.. | ||
0000-cpu-x86-smm-Use-PRIxPTR-to-print-uintptr_t.patch | ||
0001-Add-Heads-TPM-measured-boot-support.patch | ||
0002-soc-intel-broadwell_de-Add-measured-boot-support.patch | ||
0003-drivers-generic-cbfs-serial-Add-driver-to-read-seria.patch | ||
0004-mb-purism-librem_l1um-Add-new-board.patch | ||
0005-soc-fsp_broadwell_de-acpi-Remove-ADR-from-uncore-obj.patch | ||
0020-kgpe-d16_measured-boot-support.patch | ||
0021-kgpe-d16_c-environment_bootblock.patch | ||
0022-kgpe-d16_dstd-asl_Remove-HID-for-PCI-devices.patch | ||
0070-crossgcc-iasl-2021-instead-of-2018_fix-old_coreboot-build-on-newer-platforms.patch | ||
0071-crossgcc-binutils-gold-error-strings.patch | ||
0072-crossgcc-gnat-eh.patch | ||
0073-build-race-condition-fixes.patch |