heads/patches/coreboot-4.11
Thierry Laurion 3b99caa996 coreboot-4.11 patches: remove unwanted .orig artifacts that seems to be making CircleCI fail in the past days.
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
2022-02-23 16:59:26 -05:00
..
0000-cpu-x86-smm-Use-PRIxPTR-to-print-uintptr_t.patch Add new board: Purism Librem Server L1UM (#858) 2020-10-18 14:48:25 -04:00
0001-Add-Heads-TPM-measured-boot-support.patch coreboot-4.11 patches: remove unwanted .orig artifacts that seems to be making CircleCI fail in the past days. 2022-02-23 16:59:26 -05:00
0002-soc-intel-broadwell_de-Add-measured-boot-support.patch Add new board: Purism Librem Server L1UM (#858) 2020-10-18 14:48:25 -04:00
0003-drivers-generic-cbfs-serial-Add-driver-to-read-seria.patch Add new board: Purism Librem Server L1UM (#858) 2020-10-18 14:48:25 -04:00
0004-mb-purism-librem_l1um-Add-new-board.patch Add new board: Purism Librem Server L1UM (#858) 2020-10-18 14:48:25 -04:00
0005-soc-fsp_broadwell_de-acpi-Remove-ADR-from-uncore-obj.patch patches/coreboot-4.11: Add patches to build on newer systems 2022-02-03 15:04:09 -05:00
0020-kgpe-d16_measured-boot-support.patch On KGPE-D16 boards, ensure linux-kgpe-d16*.config are up-to-date by: 2020-12-02 15:56:42 +00:00
0021-kgpe-d16_c-environment_bootblock.patch Activate dual console by default and restructure board config 2020-12-02 15:56:34 +00:00
0022-kgpe-d16_dstd-asl_Remove-HID-for-PCI-devices.patch Retry CircleCI for 4.11 on Debian 10 docker 2022-02-03 15:04:09 -05:00
0070-crossgcc-iasl-2021-instead-of-2018_fix-old_coreboot-build-on-newer-platforms.patch patches/coreboot-4.11: Add patches to build on newer systems 2022-02-03 15:04:09 -05:00
0071-crossgcc-binutils-gold-error-strings.patch patches/coreboot-4.11: Add patches to build on newer systems 2022-02-03 15:04:09 -05:00
0072-crossgcc-gnat-eh.patch patches/coreboot-4.11: Add patches to build on newer systems 2022-02-03 15:04:09 -05:00
0073-build-race-condition-fixes.patch coreboot 4.11: add patch to fix assembly.inc directory not always being present and causing race condition in parallelized builds with high number of cores 2022-02-08 13:58:14 -05:00