heads/patches
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
..
coreboot-4.8.1 coreboot buildgcc: TEMPORARY HACK: gnu mirrors are failing because of https errors. Falling back to http. 2021-01-03 21:14:50 -05:00
coreboot-4.11 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
coreboot-4.13 board/librem_{mini,mini_v2}: Migrate from coreboot 4.13 to 4.14 2021-10-15 15:11:39 -04:00
coreboot-4.14 patches/coreboot-4.14: Add patches for Librem mini, 14 2021-10-15 15:11:39 -04:00
coreboot-4.15 patches/coreboot-4.15: Add Librem 4.15 patches 2022-01-27 16:38:51 -06:00
flashrom-b1f858f65b2abd276542650d8cb9e382da258967 modules/flashrom: update to add support for Comet Lake-U (#855) 2020-10-18 10:17:34 -04:00
linux-4.14.62 Enable verbose bootup debugging and ensure that the serial IO base port is configured 2018-09-28 06:25:00 -04:00
linux-4.19.139 Support Multiple Kernel Options (#805) 2020-08-20 19:26:48 -04:00
linux-5.4.69 modules/linux: add support for building with kernel 5.4.69 (#854) 2020-10-25 01:26:08 -04:00
linux-5.10.5 modules/linux: Add support for building against Linux 5.10.5. All patches besides 0000-efi_bds.patch port cleanly. As a result of 0000-efi_bds.patch missing, it is strongly encouraged that no linuxboot boards use Linux 5.10.5 until a proper review has been done. 2021-01-07 19:24:03 +00:00
busybox-1.28.0.patch busybox 1.28.0 (#310) 2018-02-09 12:15:35 -05:00
cryptsetup2-2.3.3.patch make cryptsetup1/cryptsetup2 optional 2021-01-30 07:28:28 +02:00
cryptsetup-1.7.3.patch make cryptsetup1/cryptsetup2 optional 2021-01-30 07:28:28 +02:00
dropbear-2016.74.patch fix patches to have the correct -p level 2017-09-20 14:26:07 -04:00
gpg2-2.2.10.patch Revert "GPG toolstack upgrade to latest available versions (Fixes Gawk issue)" 2020-05-22 14:55:41 -04:00
gpg2-2.2.21.patch WiP: gpg2 2.21 LTS upgrade (gnupg toolstack) (#860) 2020-10-26 10:19:57 -04:00
gpg-1.4.21.patch force cross_compile=yes for gnupg (issue #299) 2018-01-20 16:56:53 -05:00
kexec-2.0.22.patch kexec: Update to version 2.0.22 (was: 2.0.20) 2021-09-15 10:22:54 -05:00
libassuan-2.5.1.patch Revert "GPG toolstack upgrade to latest available versions (Fixes Gawk issue)" 2020-05-22 14:55:41 -04:00
libassuan-2.5.3.patch WiP: gpg2 2.21 LTS upgrade (gnupg toolstack) (#860) 2020-10-26 10:19:57 -04:00
libgcrypt-1.8.3.patch Revert "GPG toolstack upgrade to latest available versions (Fixes Gawk issue)" 2020-05-22 14:55:41 -04:00
libgcrypt-1.8.6.patch WiP: gpg2 2.21 LTS upgrade (gnupg toolstack) (#860) 2020-10-26 10:19:57 -04:00
libksba-1.3.5.patch modules: maintain reproducibility by removing rpath 2020-01-16 09:36:42 -08:00
libksba-1.4.0.patch WiP: gpg2 2.21 LTS upgrade (gnupg toolstack) (#860) 2020-10-26 10:19:57 -04:00
lvm2-2.02.168.patch lvm2: turn off buffering, which prevents segfault with new musl (#651) 2020-01-09 13:27:09 +01:00
make-4.2.1.patch Fix make 4.2.1 to build on newer systems 2021-09-30 22:01:55 +02:00
pciutils-3.5.4.patch build the superiotool, which requires a hack on the pciutils lib/types.h file 2018-03-02 09:37:31 -05:00