From 6747079a2a94d19be58387b0e29b83c8e33fecc0 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 20 Sep 2026 18:10:51 +0100 Subject: rename coreboot/fam15h to fam15h_cb411 i'm going to add the 15h.org fork and name it fam15h Signed-off-by: Leah Rowe --- config/module/coreboot/fam15h/nuke.list | 1 - ...defaults-for-KCMA-D8-for-a-little-speed-b.patch | 38 ------- ...16-enable-lc_cache_partitioning-and-exper.patch | 32 ------ ...-util-cbfstool-Makefile-support-distclean.patch | 41 ------- ...sgcc-patch-binutils-2.32-for-newer-hostcc.patch | 37 ------- ...fix-crossgcc-acpica-build-on-newer-hostcc.patch | 108 ------------------- ...reboot-fam15h-use-new-upstream-for-acpica.patch | 35 ------ ...1-use-mirrorservire.org-for-gcc-downloads.patch | 47 -------- ...cc-don-t-treat-binutil-warnings-as-errors.patch | 35 ------ ...13-Fix-build-with-GCC-15-as-host-compiler.patch | 39 ------- .../0014-util-romcc-Fix-build-with-GCC-15.patch | 119 --------------------- .../fam15h/patches/0015-gmp-gcc15-patch.patch | 65 ----------- ...r-fix-for-std-c23-on-gmp-with-host-gcc-15.patch | 55 ---------- .../patches/0017-xgcc-update-nasm-to-2.16.03.patch | 44 -------- .../patches/0018-fix-arch-linux-build-error.patch | 30 ------ .../patches/0019-fix-gcc-error-with-__unused.patch | 52 --------- config/module/coreboot/fam15h/target.cfg | 7 -- config/module/coreboot/fam15h_cb411/nuke.list | 1 + ...defaults-for-KCMA-D8-for-a-little-speed-b.patch | 38 +++++++ ...16-enable-lc_cache_partitioning-and-exper.patch | 32 ++++++ ...-util-cbfstool-Makefile-support-distclean.patch | 41 +++++++ ...sgcc-patch-binutils-2.32-for-newer-hostcc.patch | 37 +++++++ ...fix-crossgcc-acpica-build-on-newer-hostcc.patch | 108 +++++++++++++++++++ ...reboot-fam15h-use-new-upstream-for-acpica.patch | 35 ++++++ ...1-use-mirrorservire.org-for-gcc-downloads.patch | 47 ++++++++ ...cc-don-t-treat-binutil-warnings-as-errors.patch | 35 ++++++ ...13-Fix-build-with-GCC-15-as-host-compiler.patch | 39 +++++++ .../0014-util-romcc-Fix-build-with-GCC-15.patch | 119 +++++++++++++++++++++ .../patches/0015-gmp-gcc15-patch.patch | 65 +++++++++++ ...r-fix-for-std-c23-on-gmp-with-host-gcc-15.patch | 55 ++++++++++ .../patches/0017-xgcc-update-nasm-to-2.16.03.patch | 44 ++++++++ .../patches/0018-fix-arch-linux-build-error.patch | 30 ++++++ .../patches/0019-fix-gcc-error-with-__unused.patch | 52 +++++++++ config/module/coreboot/fam15h_cb411/target.cfg | 7 ++ config/module/coreboot/kcma_d8_16mb/target.cfg | 2 +- config/module/coreboot/kcma_d8_2mb/target.cfg | 2 +- config/module/coreboot/kfsn4_dre_1mb/target.cfg | 2 +- config/module/coreboot/kfsn4_dre_2mb/target.cfg | 2 +- config/module/coreboot/kgpe_d16_16mb/target.cfg | 2 +- config/module/coreboot/kgpe_d16_2mb/target.cfg | 2 +- 40 files changed, 791 insertions(+), 791 deletions(-) delete mode 100644 config/module/coreboot/fam15h/nuke.list delete mode 100644 config/module/coreboot/fam15h/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch delete mode 100644 config/module/coreboot/fam15h/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch delete mode 100644 config/module/coreboot/fam15h/patches/0007-util-cbfstool-Makefile-support-distclean.patch delete mode 100644 config/module/coreboot/fam15h/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch delete mode 100644 config/module/coreboot/fam15h/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch delete mode 100644 config/module/coreboot/fam15h/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch delete mode 100644 config/module/coreboot/fam15h/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch delete mode 100644 config/module/coreboot/fam15h/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch delete mode 100644 config/module/coreboot/fam15h/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch delete mode 100644 config/module/coreboot/fam15h/patches/0014-util-romcc-Fix-build-with-GCC-15.patch delete mode 100644 config/module/coreboot/fam15h/patches/0015-gmp-gcc15-patch.patch delete mode 100644 config/module/coreboot/fam15h/patches/0016-further-fix-for-std-c23-on-gmp-with-host-gcc-15.patch delete mode 100644 config/module/coreboot/fam15h/patches/0017-xgcc-update-nasm-to-2.16.03.patch delete mode 100644 config/module/coreboot/fam15h/patches/0018-fix-arch-linux-build-error.patch delete mode 100644 config/module/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch delete mode 100644 config/module/coreboot/fam15h/target.cfg create mode 100644 config/module/coreboot/fam15h_cb411/nuke.list create mode 100644 config/module/coreboot/fam15h_cb411/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0007-util-cbfstool-Makefile-support-distclean.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0014-util-romcc-Fix-build-with-GCC-15.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0015-gmp-gcc15-patch.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0016-further-fix-for-std-c23-on-gmp-with-host-gcc-15.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0017-xgcc-update-nasm-to-2.16.03.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0018-fix-arch-linux-build-error.patch create mode 100644 config/module/coreboot/fam15h_cb411/patches/0019-fix-gcc-error-with-__unused.patch create mode 100644 config/module/coreboot/fam15h_cb411/target.cfg (limited to 'config/module') diff --git a/config/module/coreboot/fam15h/nuke.list b/config/module/coreboot/fam15h/nuke.list deleted file mode 100644 index 8ca7a4cf..00000000 --- a/config/module/coreboot/fam15h/nuke.list +++ /dev/null @@ -1 +0,0 @@ -3rdparty/vboot/tests diff --git a/config/module/coreboot/fam15h/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch b/config/module/coreboot/fam15h/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch deleted file mode 100644 index 5a39bd69..00000000 --- a/config/module/coreboot/fam15h/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 7a00638cea41ad939a59fc0e5996959435fbdb7f Mon Sep 17 00:00:00 2001 -From: "D.d.P.F. Lombard" -Date: Sun, 7 Feb 2021 16:40:05 +0100 -Subject: [PATCH 3/6] Tweak cmos defaults for KCMA-D8 (for a little speed - boost) - -63xx CPUs have the option to use a reduced latency value inside the crossbar. -Setting "experimental_memory_speed_boost=Enable" aparently only has an effect -on 63xx CPUs and may, in certain cases, yield a slight memory bandwidth -increase (according to Timothy Pearson), but maybe it also works for -43xx CPUs. - -Setting "l3_cache_partitioning=Enable" will increase performance in certain -situations. See: -https://developer.arm.com/documentation/100453/0401/functional-description/l3-cache/l3-cache-partitioning?lang=en ---- - src/mainboard/asus/kcma-d8/cmos.default | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/mainboard/asus/kcma-d8/cmos.default b/src/mainboard/asus/kcma-d8/cmos.default -index 306687157f..4e033d756f 100644 ---- a/src/mainboard/asus/kcma-d8/cmos.default -+++ b/src/mainboard/asus/kcma-d8/cmos.default -@@ -21,9 +21,9 @@ sata_ahci_mode=Enable - sata_alpm=Disable - maximum_p_state_limit=0xf - probe_filter=Auto --l3_cache_partitioning=Disable -+l3_cache_partitioning=Enable - gart=Enable - ehci_async_data_cache=Enable --experimental_memory_speed_boost=Disable -+experimental_memory_speed_boost=Enable - power_on_after_fail=On - boot_option=Fallback --- -2.25.1 - diff --git a/config/module/coreboot/fam15h/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch b/config/module/coreboot/fam15h/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch deleted file mode 100644 index 5ada0dff..00000000 --- a/config/module/coreboot/fam15h/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch +++ /dev/null @@ -1,32 +0,0 @@ -From f0aac7261e16adc8e61eca7a506ff2de5112be47 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Fri, 7 May 2021 19:43:32 +0100 -Subject: [PATCH 6/6] asus/kgpe-d16: enable lc_cache_partitioning and - experimental_memory_speed_boost - -This really only benefits 63xx opterons which are less reliable in libreboot due -to lack of CPU microcode updates, but we might aswell enable this anyway. ---- - src/mainboard/asus/kgpe-d16/cmos.default | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/mainboard/asus/kgpe-d16/cmos.default b/src/mainboard/asus/kgpe-d16/cmos.default -index 7c496a50d7..8a25620e1d 100644 ---- a/src/mainboard/asus/kgpe-d16/cmos.default -+++ b/src/mainboard/asus/kgpe-d16/cmos.default -@@ -21,10 +21,10 @@ sata_ahci_mode=Enable - sata_alpm=Disable - maximum_p_state_limit=0xf - probe_filter=Auto --l3_cache_partitioning=Disable -+l3_cache_partitioning=Enable - ieee1394_controller=Enable - gart=Enable - ehci_async_data_cache=Enable --experimental_memory_speed_boost=Disable -+experimental_memory_speed_boost=Enable - power_on_after_fail=On - boot_option=Fallback --- -2.25.1 - diff --git a/config/module/coreboot/fam15h/patches/0007-util-cbfstool-Makefile-support-distclean.patch b/config/module/coreboot/fam15h/patches/0007-util-cbfstool-Makefile-support-distclean.patch deleted file mode 100644 index 87db312c..00000000 --- a/config/module/coreboot/fam15h/patches/0007-util-cbfstool-Makefile-support-distclean.patch +++ /dev/null @@ -1,41 +0,0 @@ -From d5dc3f23eb546cf328fdfe1e918afa028fb9cd8c Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Sun, 9 Jul 2023 04:13:52 +0100 -Subject: [PATCH 1/1] util/cbfstool Makefile: support distclean - -it just does make-clean - -this is so that this super-old coreboot revision -interfaces well with lbmk, which runs distclean -on cbfstool (which is supported, on modern cbfstool) - -Signed-off-by: Leah Rowe ---- - util/cbfstool/Makefile | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile -index d5321f6959..b8424d7d87 100644 ---- a/util/cbfstool/Makefile -+++ b/util/cbfstool/Makefile -@@ -26,7 +26,7 @@ ifittool: $(objutil)/cbfstool/ifittool - - cbfs-compression-tool: $(objutil)/cbfstool/cbfs-compression-tool - --.PHONY: clean cbfstool ifittool fmaptool rmodtool ifwitool cbfs-compression-tool -+.PHONY: distclean clean cbfstool ifittool fmaptool rmodtool ifwitool cbfs-compression-tool - clean: - $(RM) fmd_parser.c fmd_parser.h fmd_scanner.c fmd_scanner.h - $(RM) $(objutil)/cbfstool/cbfstool $(cbfsobj) -@@ -55,6 +55,8 @@ install: all - $(INSTALL) ifittool $(DESTDIR)$(BINDIR) - $(INSTALL) cbfs-compression-tool $(DESTDIR)$(BINDIR) - -+distclean: clean -+ - ifneq ($(V),1) - .SILENT: - endif --- -2.40.1 - diff --git a/config/module/coreboot/fam15h/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch b/config/module/coreboot/fam15h/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch deleted file mode 100644 index 72681490..00000000 --- a/config/module/coreboot/fam15h/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 4b4b2bdc2cedb3e219c6f90809e5684441b1dafa Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Sun, 9 Jul 2023 04:54:19 +0100 -Subject: [PATCH 1/1] crossgcc: patch binutils 2.32 for newer hostcc - -tested on debian sid as of 9 July 2023 - -implicit string declaration - -easy peasy - -Signed-off-by: Leah Rowe ---- - util/crossgcc/patches/binutils-2.32_stringfix.patch | 11 +++++++++++ - 1 file changed, 11 insertions(+) - create mode 100644 util/crossgcc/patches/binutils-2.32_stringfix.patch - -diff --git a/util/crossgcc/patches/binutils-2.32_stringfix.patch b/util/crossgcc/patches/binutils-2.32_stringfix.patch -new file mode 100644 -index 0000000000..de27a2752a ---- /dev/null -+++ b/util/crossgcc/patches/binutils-2.32_stringfix.patch -@@ -0,0 +1,11 @@ -+diff -u binutils-2.32/gold/errors.h binutils-2.32.patched/gold/errors.h -+--- binutils-2.32/gold/errors.h -++++ binutils-2.32.patched/gold/errors.h -+@@ -24,6 +24,7 @@ -+ #define GOLD_ERRORS_H -+ -+ #include -++#include -+ -+ #include "gold-threads.h" -+ --- -2.40.1 - diff --git a/config/module/coreboot/fam15h/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch b/config/module/coreboot/fam15h/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch deleted file mode 100644 index ecc06d00..00000000 --- a/config/module/coreboot/fam15h/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch +++ /dev/null @@ -1,108 +0,0 @@ -From 373dd351e374f391c9e2048e5f3e535267a04719 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Sun, 9 Jul 2023 19:37:39 +0100 -Subject: [PATCH 1/1] fix crossgcc/acpica build on newer hostcc - -Changes made to acpica/iasl: - -remove superfluous YYSTYPE declaration - -make LuxBuffer variables static, to avoid warnings -treated as errors about multiple definitions - -AcpiGbl_DbOpt_NoRegionSupport - remove this definition -in source/tools/acpiexec/aemain.c because it's already -re-defined by acpiexec. otherwise the linker complains -about multiple definitions - -Signed-off-by: Leah Rowe ---- - .../acpica-unix2-20190703_mitigategcc.patch | 76 +++++++++++++++++++ - 1 file changed, 76 insertions(+) - create mode 100644 util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch - -diff --git a/util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch b/util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch -new file mode 100644 -index 0000000000..8de47245bd ---- /dev/null -+++ b/util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch -@@ -0,0 +1,76 @@ -+From 66b927d923183ff62c9a757fafdeca9d1ac3fa87 Mon Sep 17 00:00:00 2001 -+From: Leah Rowe -+Date: Sun, 9 Jul 2023 18:58:11 +0100 -+Subject: [PATCH 1/1] fix building on newer hostcc (debian sid tested) -+ -+remove superfluous YYSTYPE declaration -+ -+make LuxBuffer variables static, to avoid warnings -+treated as errors about multiple definitions -+ -+AcpiGbl_DbOpt_NoRegionSupport - remove this definition -+in source/tools/acpiexec/aemain.c because it's already -+re-defined by acpiexec. otherwise the linker complains -+about multiple definitions -+ -+Signed-off-by: Leah Rowe -+--- -+ source/compiler/aslcompiler.l | 1 - -+ source/compiler/dtparser.l | 2 +- -+ source/compiler/prparser.l | 2 +- -+ source/tools/acpiexec/aemain.c | 1 - -+ 4 files changed, 2 insertions(+), 4 deletions(-) -+ -+diff --git a/source/compiler/aslcompiler.l b/source/compiler/aslcompiler.l -+index 1949b32..a24f028 100644 -+--- a/source/compiler/aslcompiler.l -++++ b/source/compiler/aslcompiler.l -+@@ -48,7 +48,6 @@ -+ -+ #include -+ #include -+-YYSTYPE AslCompilerlval; -+ -+ /* -+ * Generation: Use the following command line: -+diff --git a/source/compiler/dtparser.l b/source/compiler/dtparser.l -+index 6517e52..d35181c 100644 -+--- a/source/compiler/dtparser.l -++++ b/source/compiler/dtparser.l -+@@ -100,7 +100,7 @@ NewLine [\n] -+ /* -+ * Local support functions -+ */ -+-YY_BUFFER_STATE LexBuffer; -++static YY_BUFFER_STATE LexBuffer; -+ -+ /****************************************************************************** -+ * -+diff --git a/source/compiler/prparser.l b/source/compiler/prparser.l -+index bcdef14..5a1b848 100644 -+--- a/source/compiler/prparser.l -++++ b/source/compiler/prparser.l -+@@ -116,7 +116,7 @@ Identifier [a-zA-Z][0-9a-zA-Z]* -+ /* -+ * Local support functions -+ */ -+-YY_BUFFER_STATE LexBuffer; -++static YY_BUFFER_STATE LexBuffer; -+ -+ -+ /****************************************************************************** -+diff --git a/source/tools/acpiexec/aemain.c b/source/tools/acpiexec/aemain.c -+index 58640dd..cd0add6 100644 -+--- a/source/tools/acpiexec/aemain.c -++++ b/source/tools/acpiexec/aemain.c -+@@ -84,7 +84,6 @@ BOOLEAN AcpiGbl_VerboseHandlers = FALSE; -+ UINT8 AcpiGbl_RegionFillValue = 0; -+ BOOLEAN AcpiGbl_IgnoreErrors = FALSE; -+ BOOLEAN AcpiGbl_AbortLoopOnTimeout = FALSE; -+-BOOLEAN AcpiGbl_DbOpt_NoRegionSupport = FALSE; -+ UINT8 AcpiGbl_UseHwReducedFadt = FALSE; -+ BOOLEAN AcpiGbl_DoInterfaceTests = FALSE; -+ BOOLEAN AcpiGbl_LoadTestTables = FALSE; -+-- -+2.40.1 -+ --- -2.40.1 - diff --git a/config/module/coreboot/fam15h/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch b/config/module/coreboot/fam15h/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch deleted file mode 100644 index b48e88cd..00000000 --- a/config/module/coreboot/fam15h/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch +++ /dev/null @@ -1,35 +0,0 @@ -From ba94a3f27a26d181291b5908bdd627be375eb606 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Sun, 16 Jul 2023 00:44:22 +0100 -Subject: [PATCH 1/1] coreboot/fam15h: use new upstream for acpica - -the original upstream died - -i decided to host it myself, on libreboot rsync, -for use by mirrors. - -this change is not necessary on other coreboot trees, -which adhere to new coreboot policy (newer coreboot -pulls acpica from github, which is fairly reliable) - -Signed-off-by: Leah Rowe ---- - util/crossgcc/buildgcc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc -index b75b90a877..e3efa722f1 100755 ---- a/util/crossgcc/buildgcc -+++ b/util/crossgcc/buildgcc -@@ -73,7 +73,7 @@ MPC_ARCHIVE="https://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz" - GCC_ARCHIVE="https://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz" - BINUTILS_ARCHIVE="https://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.xz" - GDB_ARCHIVE="https://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.xz" --IASL_ARCHIVE="https://acpica.org/sites/acpica/files/acpica-unix2-${IASL_VERSION}.tar.gz" -+IASL_ARCHIVE="https://www.mirrorservice.org/sites/libreboot.org/release/misc/acpica/acpica-unix2-${IASL_VERSION}.tar.gz" - PYTHON_ARCHIVE="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz" - EXPAT_ARCHIVE="https://downloads.sourceforge.net/sourceforge/expat/expat-${EXPAT_VERSION}.tar.bz2" - # CLANG toolchain archive locations --- -2.40.1 - diff --git a/config/module/coreboot/fam15h/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch b/config/module/coreboot/fam15h/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch deleted file mode 100644 index bee2d89a..00000000 --- a/config/module/coreboot/fam15h/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 5358f0adc28bb1300162aa6bcfaa45aea69970d0 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Sun, 5 Nov 2023 23:08:43 +0000 -Subject: [PATCH 1/1] use mirrorservire.org for gcc downloads - -the gnu.org 302 redirect often fails - -Signed-off-by: Leah Rowe ---- - util/crossgcc/buildgcc | 14 +++++++------- - 1 file changed, 7 insertions(+), 7 deletions(-) - -diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc -index 4b838208bb..438fb5a59f 100755 ---- a/util/crossgcc/buildgcc -+++ b/util/crossgcc/buildgcc -@@ -67,12 +67,12 @@ NASM_VERSION=2.14.02 - # These are sanitized by the jenkins toolchain test builder, so if - # a completely new URL is added here, it probably needs to be added - # to the jenkins build as well, or the builder won't download it. --GMP_ARCHIVE="https://ftpmirror.gnu.org/gmp/gmp-${GMP_VERSION}.tar.xz" --MPFR_ARCHIVE="https://ftpmirror.gnu.org/mpfr/mpfr-${MPFR_VERSION}.tar.xz" --MPC_ARCHIVE="https://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz" --GCC_ARCHIVE="https://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz" --BINUTILS_ARCHIVE="https://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.xz" --GDB_ARCHIVE="https://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.xz" -+GMP_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz" -+MPFR_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/mpfr/mpfr-${MPFR_VERSION}.tar.xz" -+MPC_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz" -+GCC_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz" -+BINUTILS_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERSION}.tar.xz" -+GDB_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.xz" - IASL_ARCHIVE="https://www.mirrorservice.org/sites/libreboot.org/release/misc/acpica/acpica-unix2-${IASL_VERSION}.tar.gz" - PYTHON_ARCHIVE="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz" - EXPAT_ARCHIVE="https://downloads.sourceforge.net/sourceforge/expat/expat-${EXPAT_VERSION}.tar.bz2" -@@ -81,7 +81,7 @@ LLVM_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/llvm-${CLANG_VERSION}.s - CFE_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/cfe-${CLANG_VERSION}.src.tar.xz" - CRT_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/compiler-rt-${CLANG_VERSION}.src.tar.xz" - CTE_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/clang-tools-extra-${CLANG_VERSION}.src.tar.xz" --MAKE_ARCHIVE="https://ftpmirror.gnu.org/make/make-${MAKE_VERSION}.tar.bz2" -+MAKE_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/make/make-${MAKE_VERSION}.tar.bz2" - CMAKE_ARCHIVE="https://cmake.org/files/v3.15/cmake-${CMAKE_VERSION}.tar.gz" - NASM_ARCHIVE="https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/nasm-${NASM_VERSION}.tar.bz2" - --- -2.39.2 - diff --git a/config/module/coreboot/fam15h/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch b/config/module/coreboot/fam15h/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch deleted file mode 100644 index c767968b..00000000 --- a/config/module/coreboot/fam15h/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 5ec265deac0da077c9b1e23fc52abe1b5f0696b5 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Sat, 13 Jan 2024 14:57:46 +0000 -Subject: [PATCH 1/1] buildgcc: don't treat binutil warnings as errors - -binutils 2.32 has too many build warnings on modern toolchains, -and newer gcc versions are much more pedantic about warnings, -treating them as errors by default. - -instead of patching binutils like before, just let the warnings -persist. the warnings are benign. a user on gnuboot irc had serious -issues building binutils 2.32 specifically, on current gentoo as -of 13 January 2024. this patch mitigates those warning messages. - -Signed-off-by: Leah Rowe ---- - util/crossgcc/buildgcc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc -index 505cd7484c..6f1953e68d 100755 ---- a/util/crossgcc/buildgcc -+++ b/util/crossgcc/buildgcc -@@ -719,7 +719,7 @@ build_BINUTILS() { - --disable-werror --disable-nls --enable-lto --enable-gold \ - --enable-interwork --enable-multilib \ - --enable-plugins --enable-multilibs \ -- CFLAGS="$HOSTCFLAGS" \ -+ CFLAGS="$HOSTCFLAGS -Wno-error -w" \ - CXXFLAGS="$HOSTCFLAGS" \ - || touch .failed - # shellcheck disable=SC2086 --- -2.39.2 - diff --git a/config/module/coreboot/fam15h/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch b/config/module/coreboot/fam15h/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch deleted file mode 100644 index b08c9edf..00000000 --- a/config/module/coreboot/fam15h/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 281151d85240bd8a60545b6415e0f44ce6a2af33 Mon Sep 17 00:00:00 2001 -From: Alper Nebi Yasak -Date: Tue, 29 Apr 2025 17:31:13 +0300 -Subject: [PATCH] WIP: Fix build with GCC 15 as host compiler - -GCC 15 now considers the unterminated-string-initialization warning as -part of -Werror by default. Coreboot compiles host utilities with the -system compiler, which results in getting this error in some files. - -Mark a hexadecimal translation table in cbfstool code as "nonstring" to -avoid the warning-turned-error. - -The bios log prefixes are non-null-terminated as well, but I couldn't -figure out how to mark them as non-strings. Temporarily disable the -warning with a pragma to avoid the error. That pragma causes an error on -GCC 14, so disable pragma warnings along with it to avoid that as well. - -Signed-off-by: Alper Nebi Yasak ---- - util/cbfstool/common.c | 2 +- - 1 files changed, 1 insertion(+), 1 deletion(-) - -diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c -index 7154bc9d5425..cb08c9e8ec11 100644 ---- a/util/cbfstool/common.c -+++ b/util/cbfstool/common.c -@@ -192,7 +192,7 @@ uint64_t intfiletype(const char *name) - - char *bintohex(uint8_t *data, size_t len) - { -- static const char translate[16] = "0123456789abcdef"; -+ static const char translate[16] __attribute__((__nonstring__)) = "0123456789abcdef"; - - char *result = malloc(len * 2 + 1); - if (result == NULL) - --- -2.49.0 - diff --git a/config/module/coreboot/fam15h/patches/0014-util-romcc-Fix-build-with-GCC-15.patch b/config/module/coreboot/fam15h/patches/0014-util-romcc-Fix-build-with-GCC-15.patch deleted file mode 100644 index d9de94c6..00000000 --- a/config/module/coreboot/fam15h/patches/0014-util-romcc-Fix-build-with-GCC-15.patch +++ /dev/null @@ -1,119 +0,0 @@ -From 74dc3c0a4603bc635c8bc5e95490cdf168af5f41 Mon Sep 17 00:00:00 2001 -From: Alper Nebi Yasak -Date: Tue, 29 Apr 2025 19:46:14 +0300 -Subject: [PATCH] util/romcc: Fix build with GCC 15 - -With GCC 15, we get build errors complaining bool is a reserved keyword, -so cannot be used as a function name. Rename our bool() to bool_(). - -Signed-off-by: Alper Nebi Yasak ---- - util/romcc/romcc.c | 24 ++++++++++++------------ - 1 file changed, 12 insertions(+), 12 deletions(-) - -diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c -index 378bfc50f290..b375e0fc83cb 100644 ---- a/util/romcc/romcc.c -+++ b/util/romcc/romcc.c -@@ -7137,7 +7137,7 @@ static void integral(struct compile_state *state, struct triple *def) - } - - --static void bool(struct compile_state *state, struct triple *def) -+static void bool_(struct compile_state *state, struct triple *def) - { - if (!TYPE_ARITHMETIC(def->type->type) && - ((def->type->type & TYPE_MASK) != TYPE_POINTER)) { -@@ -7705,7 +7705,7 @@ static struct triple *mkcond_expr( - struct triple *def, *val, *var, *jmp1, *jmp2, *top, *mid, *end; - struct type *result_type; - unsigned int left_type, right_type; -- bool(state, test); -+ bool_(state, test); - left_type = left->type->type; - right_type = right->type->type; - result_type = 0; -@@ -11036,7 +11036,7 @@ static struct triple *unary_expr(struct compile_state *state) - case TOK_BANG: - eat(state, TOK_BANG); - right = read_expr(state, cast_expr(state)); -- bool(state, right); -+ bool_(state, right); - def = lfalse_expr(state, right); - break; - case TOK_SIZEOF: -@@ -11363,10 +11363,10 @@ static struct triple *land_expr(struct compile_state *state) - while(peek(state) == TOK_LOGAND) { - struct triple *left, *right; - left = read_expr(state, def); -- bool(state, left); -+ bool_(state, left); - eat(state, TOK_LOGAND); - right = read_expr(state, or_expr(state)); -- bool(state, right); -+ bool_(state, right); - - def = mkland_expr(state, - ltrue_expr(state, left), -@@ -11382,10 +11382,10 @@ static struct triple *lor_expr(struct compile_state *state) - while(peek(state) == TOK_LOGOR) { - struct triple *left, *right; - left = read_expr(state, def); -- bool(state, left); -+ bool_(state, left); - eat(state, TOK_LOGOR); - right = read_expr(state, land_expr(state)); -- bool(state, right); -+ bool_(state, right); - - def = mklor_expr(state, - ltrue_expr(state, left), -@@ -11400,7 +11400,7 @@ static struct triple *conditional_expr(struct compile_state *state) - def = lor_expr(state); - if (peek(state) == TOK_QUEST) { - struct triple *test, *left, *right; -- bool(state, def); -+ bool_(state, def); - test = ltrue_expr(state, read_expr(state, def)); - eat(state, TOK_QUEST); - left = read_expr(state, expr(state)); -@@ -11676,7 +11676,7 @@ static void if_statement(struct compile_state *state, struct triple *first) - eat(state, TOK_IF); - eat(state, TOK_LPAREN); - test = expr(state); -- bool(state, test); -+ bool_(state, test); - /* Cleanup and invert the test */ - test = lfalse_expr(state, read_expr(state, test)); - eat(state, TOK_RPAREN); -@@ -11719,7 +11719,7 @@ static void for_statement(struct compile_state *state, struct triple *first) - eat(state, TOK_SEMI); - if (peek(state) != TOK_SEMI) { - test = expr(state); -- bool(state, test); -+ bool_(state, test); - test = ltrue_expr(state, read_expr(state, test)); - } - eat(state, TOK_SEMI); -@@ -11767,7 +11767,7 @@ static void while_statement(struct compile_state *state, struct triple *first) - eat(state, TOK_WHILE); - eat(state, TOK_LPAREN); - test = expr(state); -- bool(state, test); -+ bool_(state, test); - test = ltrue_expr(state, read_expr(state, test)); - eat(state, TOK_RPAREN); - /* Generate the needed pieces */ -@@ -11818,7 +11818,7 @@ static void do_statement(struct compile_state *state, struct triple *first) - eat(state, TOK_WHILE); - eat(state, TOK_LPAREN); - test = read_expr(state, expr(state)); -- bool(state, test); -+ bool_(state, test); - eat(state, TOK_RPAREN); - eat(state, TOK_SEMI); - /* Thread the pieces together */ - --- -2.49.0 - diff --git a/config/module/coreboot/fam15h/patches/0015-gmp-gcc15-patch.patch b/config/module/coreboot/fam15h/patches/0015-gmp-gcc15-patch.patch deleted file mode 100644 index 40ea7c14..00000000 --- a/config/module/coreboot/fam15h/patches/0015-gmp-gcc15-patch.patch +++ /dev/null @@ -1,65 +0,0 @@ -From 8663b2a75d69aa241f86dd6e813232343a05b609 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Tue, 29 Apr 2025 21:26:25 +0100 -Subject: [PATCH 1/1] gmp gcc15 patch - -https://gmplib.org/list-archives/gmp-devel/2025-January/006279.html - -Signed-off-by: Leah Rowe ---- - ...include.m4-fix-std-c23-build-failure.patch | 43 +++++++++++++++++++ - 1 file changed, 43 insertions(+) - create mode 100644 util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch - -diff --git a/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch -new file mode 100644 -index 0000000000..adb66c6043 ---- /dev/null -+++ b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch -@@ -0,0 +1,43 @@ -+From 7d4aa08224b53054754b8ee6fd61a4297ac47119 Mon Sep 17 00:00:00 2001 -+From: Rudi Heitbaum -+Date: Wed, 22 Jan 2025 02:34:09 +0100 -+Subject: [PATCH 1/1] acinclude.m4: fix -std=c23 build failure -+ -+Add prototype to configure test function as c23 removes unprototyped -+functions. -+ -+gcc-15 switched to -std=c23 by default: -+ -+ https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 -+ -+As a result `configure` fails with: -+ conftest.c: In function 'f': -+ conftest.c:12:48: error: too many arguments to function 'g'; expected 0, have 6 -+ 12 | for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}} -+ | ^ ~ -+ conftest.c:7:6: note: declared here -+ 7 | void g(){} -+ | ^ -+ -+Link: https://gmplib.org/list-archives/gmp-bugs/2024-November/005550.html -+Signed-off-by: Rudi Heitbaum -+--- -+ acinclude.m4 | 2 +- -+ 1 file changed, 1 insertion(+), 1 deletion(-) -+ -+diff --git a/acinclude.m4 b/acinclude.m4 -+index 3c3ecf5..3a226fd 100644 -+--- a/acinclude.m4 -++++ b/acinclude.m4 -+@@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1], -+ -+ #if defined (__GNUC__) && ! defined (__cplusplus) -+ typedef unsigned long long t1;typedef t1*t2; -+-void g(){} -++void g(int,const t1 *,t1,t1 *,const t1 *,int){} -+ void h(){} -+ static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) -+ {t1 c,x,r;int i;if(v0){c=1;for(i=1;i -Date: Tue, 29 Apr 2025 23:18:56 +0100 -Subject: [PATCH 1/1] further fix for std=c23 on gmp with host gcc-15 - -the fix had to be applied in the configure file, so that -the correct function call is generated in conftest.c - -Signed-off-by: Leah Rowe ---- - ...e.m4-fix-std-c23-build-failure-extra.patch | 32 +++++++++++++++++++ - 1 file changed, 32 insertions(+) - create mode 100644 util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch - -diff --git a/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch -new file mode 100644 -index 0000000000..40569b27d8 ---- /dev/null -+++ b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch -@@ -0,0 +1,32 @@ -+From 6316016cfe6834b6d3242e7e088b7d2af91ada22 Mon Sep 17 00:00:00 2001 -+From: Leah Rowe -+Date: Tue, 29 Apr 2025 23:16:51 +0100 -+Subject: [PATCH 1/1] further -std=23 gcc-15 fix for gmp -+ -+the previously merged revision was correct, but -+applied in the wrong place. the conftest.c file -+was being generated by configure, in this place. -+ -+this should fix build errors now, on gcc-15. -+ -+Signed-off-by: Leah Rowe -+--- -+ configure | 2 +- -+ 1 file changed, 1 insertion(+), 1 deletion(-) -+ -+diff --git a/configure b/configure -+index 12ddffd..8b07818 100755 -+--- a/configure -++++ b/configure -+@@ -6458,7 +6458,7 @@ if test "$gmp_prog_cc_works" = yes; then -+ -+ #if defined (__GNUC__) && ! defined (__cplusplus) -+ typedef unsigned long long t1;typedef t1*t2; -+-void g(){} -++void g(int,const t1 *,t1,t1 *,const t1 *,int){} -+ void h(){} -+ static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) -+ {t1 c,x,r;int i;if(v0){c=1;for(i=1;i -Date: Wed, 30 Apr 2025 04:07:31 +0100 -Subject: [PATCH 1/1] xgcc: update nasm to 2.16.03 - -Signed-off-by: Leah Rowe ---- - util/crossgcc/buildgcc | 2 +- - util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum | 1 - - util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum | 1 + - 3 files changed, 2 insertions(+), 2 deletions(-) - delete mode 100644 util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum - create mode 100644 util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum - -diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc -index 0ad1980104..2d48ff038e 100755 ---- a/util/crossgcc/buildgcc -+++ b/util/crossgcc/buildgcc -@@ -61,7 +61,7 @@ EXPAT_VERSION=2.2.7 - CLANG_VERSION=8.0.0 - MAKE_VERSION=4.2.1 - CMAKE_VERSION=3.15.3 --NASM_VERSION=2.14.02 -+NASM_VERSION=2.16.03 - - # GCC toolchain archive locations - # These are sanitized by the jenkins toolchain test builder, so if -diff --git a/util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum b/util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum -deleted file mode 100644 -index f3b9de9d29..0000000000 ---- a/util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum -+++ /dev/null -@@ -1 +0,0 @@ --fe098ee4dc9c4c983696c4948e64b23e4098b92b tarballs/nasm-2.14.02.tar.bz2 -diff --git a/util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum b/util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum -new file mode 100644 -index 0000000000..9ca23fb0c4 ---- /dev/null -+++ b/util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum -@@ -0,0 +1 @@ -+c63080347a5c1c8904456fe6c680b722558383b4 tarballs/nasm-2.16.03.tar.bz2 --- -2.39.5 - diff --git a/config/module/coreboot/fam15h/patches/0018-fix-arch-linux-build-error.patch b/config/module/coreboot/fam15h/patches/0018-fix-arch-linux-build-error.patch deleted file mode 100644 index d712f444..00000000 --- a/config/module/coreboot/fam15h/patches/0018-fix-arch-linux-build-error.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 0e6a5b0e82309715683ce3033dc34897852827e5 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Wed, 1 Apr 2026 08:25:07 +0100 -Subject: [PATCH 1/1] fix arch linux build error - -fixes cbfstool builds on arch linux on this old coreboot - -Signed-off-by: Leah Rowe ---- - src/commonlib/include/commonlib/helpers.h | 4 ---- - 1 file changed, 4 deletions(-) - -diff --git a/src/commonlib/include/commonlib/helpers.h b/src/commonlib/include/commonlib/helpers.h -index ca3b3c58f9..e28b5c4c37 100644 ---- a/src/commonlib/include/commonlib/helpers.h -+++ b/src/commonlib/include/commonlib/helpers.h -@@ -133,10 +133,6 @@ - /* Calculate size of structure member. */ - #define member_size(type, member) (sizeof(((type *)0)->member)) - --#ifndef __unused --#define __unused __attribute__((unused)) --#endif -- - #ifndef alloca - #define alloca(x) __builtin_alloca(x) - #endif --- -2.47.3 - diff --git a/config/module/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch b/config/module/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch deleted file mode 100644 index f6a2e643..00000000 --- a/config/module/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 330177da40df12813d6e45c9cdb6285dcbff8b59 Mon Sep 17 00:00:00 2001 -From: Leah Rowe -Date: Mon, 3 Aug 2026 22:22:39 +0100 -Subject: [PATCH 1/1] fix gcc error with __unused - -just discard it explicitly. - -really now, this is better. it's what i do. - -(void)foo; - -then gcc won't blow up. fixes building on my debian machine. - -Signed-off-by: Leah Rowe ---- - src/commonlib/region.c | 11 ++++++++--- - 1 file changed, 8 insertions(+), 3 deletions(-) - -diff --git a/src/commonlib/region.c b/src/commonlib/region.c -index 4a7e285747..b016600da9 100644 ---- a/src/commonlib/region.c -+++ b/src/commonlib/region.c -@@ -229,18 +229,23 @@ void xlate_region_device_rw_init(struct xlate_region_device *xdev, - } - - static void *mdev_mmap(const struct region_device *rd, size_t offset, -- size_t size __unused) -+ size_t size) - { - const struct mem_region_device *mdev; - -+ (void)size; -+ - mdev = container_of(rd, __typeof__(*mdev), rdev); - - return &mdev->base[offset]; - } - --static int mdev_munmap(const struct region_device *rd __unused, -- void *mapping __unused) -+static int mdev_munmap(const struct region_device *rd, -+ void *mapping) - { -+ (void)mapping; -+ (void)rd; -+ - return 0; - } - --- -2.47.3 - diff --git a/config/module/coreboot/fam15h/target.cfg b/config/module/coreboot/fam15h/target.cfg deleted file mode 100644 index 96ec0bd1..00000000 --- a/config/module/coreboot/fam15h/target.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-3.0-or-later - -rev="1c13f8d85c7306213cd525308ee8973e5663a3f8" - -tree="fam15h" - -xlang="c" # disable use of gnat on this tree diff --git a/config/module/coreboot/fam15h_cb411/nuke.list b/config/module/coreboot/fam15h_cb411/nuke.list new file mode 100644 index 00000000..8ca7a4cf --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/nuke.list @@ -0,0 +1 @@ +3rdparty/vboot/tests diff --git a/config/module/coreboot/fam15h_cb411/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch b/config/module/coreboot/fam15h_cb411/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch new file mode 100644 index 00000000..5a39bd69 --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0003-Tweak-cmos-defaults-for-KCMA-D8-for-a-little-speed-b.patch @@ -0,0 +1,38 @@ +From 7a00638cea41ad939a59fc0e5996959435fbdb7f Mon Sep 17 00:00:00 2001 +From: "D.d.P.F. Lombard" +Date: Sun, 7 Feb 2021 16:40:05 +0100 +Subject: [PATCH 3/6] Tweak cmos defaults for KCMA-D8 (for a little speed + boost) + +63xx CPUs have the option to use a reduced latency value inside the crossbar. +Setting "experimental_memory_speed_boost=Enable" aparently only has an effect +on 63xx CPUs and may, in certain cases, yield a slight memory bandwidth +increase (according to Timothy Pearson), but maybe it also works for +43xx CPUs. + +Setting "l3_cache_partitioning=Enable" will increase performance in certain +situations. See: +https://developer.arm.com/documentation/100453/0401/functional-description/l3-cache/l3-cache-partitioning?lang=en +--- + src/mainboard/asus/kcma-d8/cmos.default | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/mainboard/asus/kcma-d8/cmos.default b/src/mainboard/asus/kcma-d8/cmos.default +index 306687157f..4e033d756f 100644 +--- a/src/mainboard/asus/kcma-d8/cmos.default ++++ b/src/mainboard/asus/kcma-d8/cmos.default +@@ -21,9 +21,9 @@ sata_ahci_mode=Enable + sata_alpm=Disable + maximum_p_state_limit=0xf + probe_filter=Auto +-l3_cache_partitioning=Disable ++l3_cache_partitioning=Enable + gart=Enable + ehci_async_data_cache=Enable +-experimental_memory_speed_boost=Disable ++experimental_memory_speed_boost=Enable + power_on_after_fail=On + boot_option=Fallback +-- +2.25.1 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch b/config/module/coreboot/fam15h_cb411/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch new file mode 100644 index 00000000..5ada0dff --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0006-asus-kgpe-d16-enable-lc_cache_partitioning-and-exper.patch @@ -0,0 +1,32 @@ +From f0aac7261e16adc8e61eca7a506ff2de5112be47 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Fri, 7 May 2021 19:43:32 +0100 +Subject: [PATCH 6/6] asus/kgpe-d16: enable lc_cache_partitioning and + experimental_memory_speed_boost + +This really only benefits 63xx opterons which are less reliable in libreboot due +to lack of CPU microcode updates, but we might aswell enable this anyway. +--- + src/mainboard/asus/kgpe-d16/cmos.default | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/mainboard/asus/kgpe-d16/cmos.default b/src/mainboard/asus/kgpe-d16/cmos.default +index 7c496a50d7..8a25620e1d 100644 +--- a/src/mainboard/asus/kgpe-d16/cmos.default ++++ b/src/mainboard/asus/kgpe-d16/cmos.default +@@ -21,10 +21,10 @@ sata_ahci_mode=Enable + sata_alpm=Disable + maximum_p_state_limit=0xf + probe_filter=Auto +-l3_cache_partitioning=Disable ++l3_cache_partitioning=Enable + ieee1394_controller=Enable + gart=Enable + ehci_async_data_cache=Enable +-experimental_memory_speed_boost=Disable ++experimental_memory_speed_boost=Enable + power_on_after_fail=On + boot_option=Fallback +-- +2.25.1 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0007-util-cbfstool-Makefile-support-distclean.patch b/config/module/coreboot/fam15h_cb411/patches/0007-util-cbfstool-Makefile-support-distclean.patch new file mode 100644 index 00000000..87db312c --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0007-util-cbfstool-Makefile-support-distclean.patch @@ -0,0 +1,41 @@ +From d5dc3f23eb546cf328fdfe1e918afa028fb9cd8c Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Sun, 9 Jul 2023 04:13:52 +0100 +Subject: [PATCH 1/1] util/cbfstool Makefile: support distclean + +it just does make-clean + +this is so that this super-old coreboot revision +interfaces well with lbmk, which runs distclean +on cbfstool (which is supported, on modern cbfstool) + +Signed-off-by: Leah Rowe +--- + util/cbfstool/Makefile | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile +index d5321f6959..b8424d7d87 100644 +--- a/util/cbfstool/Makefile ++++ b/util/cbfstool/Makefile +@@ -26,7 +26,7 @@ ifittool: $(objutil)/cbfstool/ifittool + + cbfs-compression-tool: $(objutil)/cbfstool/cbfs-compression-tool + +-.PHONY: clean cbfstool ifittool fmaptool rmodtool ifwitool cbfs-compression-tool ++.PHONY: distclean clean cbfstool ifittool fmaptool rmodtool ifwitool cbfs-compression-tool + clean: + $(RM) fmd_parser.c fmd_parser.h fmd_scanner.c fmd_scanner.h + $(RM) $(objutil)/cbfstool/cbfstool $(cbfsobj) +@@ -55,6 +55,8 @@ install: all + $(INSTALL) ifittool $(DESTDIR)$(BINDIR) + $(INSTALL) cbfs-compression-tool $(DESTDIR)$(BINDIR) + ++distclean: clean ++ + ifneq ($(V),1) + .SILENT: + endif +-- +2.40.1 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch b/config/module/coreboot/fam15h_cb411/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch new file mode 100644 index 00000000..72681490 --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0008-crossgcc-patch-binutils-2.32-for-newer-hostcc.patch @@ -0,0 +1,37 @@ +From 4b4b2bdc2cedb3e219c6f90809e5684441b1dafa Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Sun, 9 Jul 2023 04:54:19 +0100 +Subject: [PATCH 1/1] crossgcc: patch binutils 2.32 for newer hostcc + +tested on debian sid as of 9 July 2023 + +implicit string declaration + +easy peasy + +Signed-off-by: Leah Rowe +--- + util/crossgcc/patches/binutils-2.32_stringfix.patch | 11 +++++++++++ + 1 file changed, 11 insertions(+) + create mode 100644 util/crossgcc/patches/binutils-2.32_stringfix.patch + +diff --git a/util/crossgcc/patches/binutils-2.32_stringfix.patch b/util/crossgcc/patches/binutils-2.32_stringfix.patch +new file mode 100644 +index 0000000000..de27a2752a +--- /dev/null ++++ b/util/crossgcc/patches/binutils-2.32_stringfix.patch +@@ -0,0 +1,11 @@ ++diff -u binutils-2.32/gold/errors.h binutils-2.32.patched/gold/errors.h ++--- binutils-2.32/gold/errors.h +++++ binutils-2.32.patched/gold/errors.h ++@@ -24,6 +24,7 @@ ++ #define GOLD_ERRORS_H ++ ++ #include +++#include ++ ++ #include "gold-threads.h" ++ +-- +2.40.1 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch b/config/module/coreboot/fam15h_cb411/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch new file mode 100644 index 00000000..ecc06d00 --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0009-fix-crossgcc-acpica-build-on-newer-hostcc.patch @@ -0,0 +1,108 @@ +From 373dd351e374f391c9e2048e5f3e535267a04719 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Sun, 9 Jul 2023 19:37:39 +0100 +Subject: [PATCH 1/1] fix crossgcc/acpica build on newer hostcc + +Changes made to acpica/iasl: + +remove superfluous YYSTYPE declaration + +make LuxBuffer variables static, to avoid warnings +treated as errors about multiple definitions + +AcpiGbl_DbOpt_NoRegionSupport - remove this definition +in source/tools/acpiexec/aemain.c because it's already +re-defined by acpiexec. otherwise the linker complains +about multiple definitions + +Signed-off-by: Leah Rowe +--- + .../acpica-unix2-20190703_mitigategcc.patch | 76 +++++++++++++++++++ + 1 file changed, 76 insertions(+) + create mode 100644 util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch + +diff --git a/util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch b/util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch +new file mode 100644 +index 0000000000..8de47245bd +--- /dev/null ++++ b/util/crossgcc/patches/acpica-unix2-20190703_mitigategcc.patch +@@ -0,0 +1,76 @@ ++From 66b927d923183ff62c9a757fafdeca9d1ac3fa87 Mon Sep 17 00:00:00 2001 ++From: Leah Rowe ++Date: Sun, 9 Jul 2023 18:58:11 +0100 ++Subject: [PATCH 1/1] fix building on newer hostcc (debian sid tested) ++ ++remove superfluous YYSTYPE declaration ++ ++make LuxBuffer variables static, to avoid warnings ++treated as errors about multiple definitions ++ ++AcpiGbl_DbOpt_NoRegionSupport - remove this definition ++in source/tools/acpiexec/aemain.c because it's already ++re-defined by acpiexec. otherwise the linker complains ++about multiple definitions ++ ++Signed-off-by: Leah Rowe ++--- ++ source/compiler/aslcompiler.l | 1 - ++ source/compiler/dtparser.l | 2 +- ++ source/compiler/prparser.l | 2 +- ++ source/tools/acpiexec/aemain.c | 1 - ++ 4 files changed, 2 insertions(+), 4 deletions(-) ++ ++diff --git a/source/compiler/aslcompiler.l b/source/compiler/aslcompiler.l ++index 1949b32..a24f028 100644 ++--- a/source/compiler/aslcompiler.l +++++ b/source/compiler/aslcompiler.l ++@@ -48,7 +48,6 @@ ++ ++ #include ++ #include ++-YYSTYPE AslCompilerlval; ++ ++ /* ++ * Generation: Use the following command line: ++diff --git a/source/compiler/dtparser.l b/source/compiler/dtparser.l ++index 6517e52..d35181c 100644 ++--- a/source/compiler/dtparser.l +++++ b/source/compiler/dtparser.l ++@@ -100,7 +100,7 @@ NewLine [\n] ++ /* ++ * Local support functions ++ */ ++-YY_BUFFER_STATE LexBuffer; +++static YY_BUFFER_STATE LexBuffer; ++ ++ /****************************************************************************** ++ * ++diff --git a/source/compiler/prparser.l b/source/compiler/prparser.l ++index bcdef14..5a1b848 100644 ++--- a/source/compiler/prparser.l +++++ b/source/compiler/prparser.l ++@@ -116,7 +116,7 @@ Identifier [a-zA-Z][0-9a-zA-Z]* ++ /* ++ * Local support functions ++ */ ++-YY_BUFFER_STATE LexBuffer; +++static YY_BUFFER_STATE LexBuffer; ++ ++ ++ /****************************************************************************** ++diff --git a/source/tools/acpiexec/aemain.c b/source/tools/acpiexec/aemain.c ++index 58640dd..cd0add6 100644 ++--- a/source/tools/acpiexec/aemain.c +++++ b/source/tools/acpiexec/aemain.c ++@@ -84,7 +84,6 @@ BOOLEAN AcpiGbl_VerboseHandlers = FALSE; ++ UINT8 AcpiGbl_RegionFillValue = 0; ++ BOOLEAN AcpiGbl_IgnoreErrors = FALSE; ++ BOOLEAN AcpiGbl_AbortLoopOnTimeout = FALSE; ++-BOOLEAN AcpiGbl_DbOpt_NoRegionSupport = FALSE; ++ UINT8 AcpiGbl_UseHwReducedFadt = FALSE; ++ BOOLEAN AcpiGbl_DoInterfaceTests = FALSE; ++ BOOLEAN AcpiGbl_LoadTestTables = FALSE; ++-- ++2.40.1 ++ +-- +2.40.1 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch b/config/module/coreboot/fam15h_cb411/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch new file mode 100644 index 00000000..b48e88cd --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0010-coreboot-fam15h-use-new-upstream-for-acpica.patch @@ -0,0 +1,35 @@ +From ba94a3f27a26d181291b5908bdd627be375eb606 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Sun, 16 Jul 2023 00:44:22 +0100 +Subject: [PATCH 1/1] coreboot/fam15h: use new upstream for acpica + +the original upstream died + +i decided to host it myself, on libreboot rsync, +for use by mirrors. + +this change is not necessary on other coreboot trees, +which adhere to new coreboot policy (newer coreboot +pulls acpica from github, which is fairly reliable) + +Signed-off-by: Leah Rowe +--- + util/crossgcc/buildgcc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc +index b75b90a877..e3efa722f1 100755 +--- a/util/crossgcc/buildgcc ++++ b/util/crossgcc/buildgcc +@@ -73,7 +73,7 @@ MPC_ARCHIVE="https://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz" + GCC_ARCHIVE="https://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz" + BINUTILS_ARCHIVE="https://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.xz" + GDB_ARCHIVE="https://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.xz" +-IASL_ARCHIVE="https://acpica.org/sites/acpica/files/acpica-unix2-${IASL_VERSION}.tar.gz" ++IASL_ARCHIVE="https://www.mirrorservice.org/sites/libreboot.org/release/misc/acpica/acpica-unix2-${IASL_VERSION}.tar.gz" + PYTHON_ARCHIVE="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz" + EXPAT_ARCHIVE="https://downloads.sourceforge.net/sourceforge/expat/expat-${EXPAT_VERSION}.tar.bz2" + # CLANG toolchain archive locations +-- +2.40.1 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch b/config/module/coreboot/fam15h_cb411/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch new file mode 100644 index 00000000..bee2d89a --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0011-use-mirrorservire.org-for-gcc-downloads.patch @@ -0,0 +1,47 @@ +From 5358f0adc28bb1300162aa6bcfaa45aea69970d0 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Sun, 5 Nov 2023 23:08:43 +0000 +Subject: [PATCH 1/1] use mirrorservire.org for gcc downloads + +the gnu.org 302 redirect often fails + +Signed-off-by: Leah Rowe +--- + util/crossgcc/buildgcc | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc +index 4b838208bb..438fb5a59f 100755 +--- a/util/crossgcc/buildgcc ++++ b/util/crossgcc/buildgcc +@@ -67,12 +67,12 @@ NASM_VERSION=2.14.02 + # These are sanitized by the jenkins toolchain test builder, so if + # a completely new URL is added here, it probably needs to be added + # to the jenkins build as well, or the builder won't download it. +-GMP_ARCHIVE="https://ftpmirror.gnu.org/gmp/gmp-${GMP_VERSION}.tar.xz" +-MPFR_ARCHIVE="https://ftpmirror.gnu.org/mpfr/mpfr-${MPFR_VERSION}.tar.xz" +-MPC_ARCHIVE="https://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz" +-GCC_ARCHIVE="https://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz" +-BINUTILS_ARCHIVE="https://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.xz" +-GDB_ARCHIVE="https://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.xz" ++GMP_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz" ++MPFR_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/mpfr/mpfr-${MPFR_VERSION}.tar.xz" ++MPC_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz" ++GCC_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz" ++BINUTILS_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERSION}.tar.xz" ++GDB_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.xz" + IASL_ARCHIVE="https://www.mirrorservice.org/sites/libreboot.org/release/misc/acpica/acpica-unix2-${IASL_VERSION}.tar.gz" + PYTHON_ARCHIVE="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz" + EXPAT_ARCHIVE="https://downloads.sourceforge.net/sourceforge/expat/expat-${EXPAT_VERSION}.tar.bz2" +@@ -81,7 +81,7 @@ LLVM_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/llvm-${CLANG_VERSION}.s + CFE_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/cfe-${CLANG_VERSION}.src.tar.xz" + CRT_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/compiler-rt-${CLANG_VERSION}.src.tar.xz" + CTE_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/clang-tools-extra-${CLANG_VERSION}.src.tar.xz" +-MAKE_ARCHIVE="https://ftpmirror.gnu.org/make/make-${MAKE_VERSION}.tar.bz2" ++MAKE_ARCHIVE="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/make/make-${MAKE_VERSION}.tar.bz2" + CMAKE_ARCHIVE="https://cmake.org/files/v3.15/cmake-${CMAKE_VERSION}.tar.gz" + NASM_ARCHIVE="https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/nasm-${NASM_VERSION}.tar.bz2" + +-- +2.39.2 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch b/config/module/coreboot/fam15h_cb411/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch new file mode 100644 index 00000000..c767968b --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0012-buildgcc-don-t-treat-binutil-warnings-as-errors.patch @@ -0,0 +1,35 @@ +From 5ec265deac0da077c9b1e23fc52abe1b5f0696b5 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Sat, 13 Jan 2024 14:57:46 +0000 +Subject: [PATCH 1/1] buildgcc: don't treat binutil warnings as errors + +binutils 2.32 has too many build warnings on modern toolchains, +and newer gcc versions are much more pedantic about warnings, +treating them as errors by default. + +instead of patching binutils like before, just let the warnings +persist. the warnings are benign. a user on gnuboot irc had serious +issues building binutils 2.32 specifically, on current gentoo as +of 13 January 2024. this patch mitigates those warning messages. + +Signed-off-by: Leah Rowe +--- + util/crossgcc/buildgcc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc +index 505cd7484c..6f1953e68d 100755 +--- a/util/crossgcc/buildgcc ++++ b/util/crossgcc/buildgcc +@@ -719,7 +719,7 @@ build_BINUTILS() { + --disable-werror --disable-nls --enable-lto --enable-gold \ + --enable-interwork --enable-multilib \ + --enable-plugins --enable-multilibs \ +- CFLAGS="$HOSTCFLAGS" \ ++ CFLAGS="$HOSTCFLAGS -Wno-error -w" \ + CXXFLAGS="$HOSTCFLAGS" \ + || touch .failed + # shellcheck disable=SC2086 +-- +2.39.2 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch b/config/module/coreboot/fam15h_cb411/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch new file mode 100644 index 00000000..b08c9edf --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch @@ -0,0 +1,39 @@ +From 281151d85240bd8a60545b6415e0f44ce6a2af33 Mon Sep 17 00:00:00 2001 +From: Alper Nebi Yasak +Date: Tue, 29 Apr 2025 17:31:13 +0300 +Subject: [PATCH] WIP: Fix build with GCC 15 as host compiler + +GCC 15 now considers the unterminated-string-initialization warning as +part of -Werror by default. Coreboot compiles host utilities with the +system compiler, which results in getting this error in some files. + +Mark a hexadecimal translation table in cbfstool code as "nonstring" to +avoid the warning-turned-error. + +The bios log prefixes are non-null-terminated as well, but I couldn't +figure out how to mark them as non-strings. Temporarily disable the +warning with a pragma to avoid the error. That pragma causes an error on +GCC 14, so disable pragma warnings along with it to avoid that as well. + +Signed-off-by: Alper Nebi Yasak +--- + util/cbfstool/common.c | 2 +- + 1 files changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c +index 7154bc9d5425..cb08c9e8ec11 100644 +--- a/util/cbfstool/common.c ++++ b/util/cbfstool/common.c +@@ -192,7 +192,7 @@ uint64_t intfiletype(const char *name) + + char *bintohex(uint8_t *data, size_t len) + { +- static const char translate[16] = "0123456789abcdef"; ++ static const char translate[16] __attribute__((__nonstring__)) = "0123456789abcdef"; + + char *result = malloc(len * 2 + 1); + if (result == NULL) + +-- +2.49.0 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0014-util-romcc-Fix-build-with-GCC-15.patch b/config/module/coreboot/fam15h_cb411/patches/0014-util-romcc-Fix-build-with-GCC-15.patch new file mode 100644 index 00000000..d9de94c6 --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0014-util-romcc-Fix-build-with-GCC-15.patch @@ -0,0 +1,119 @@ +From 74dc3c0a4603bc635c8bc5e95490cdf168af5f41 Mon Sep 17 00:00:00 2001 +From: Alper Nebi Yasak +Date: Tue, 29 Apr 2025 19:46:14 +0300 +Subject: [PATCH] util/romcc: Fix build with GCC 15 + +With GCC 15, we get build errors complaining bool is a reserved keyword, +so cannot be used as a function name. Rename our bool() to bool_(). + +Signed-off-by: Alper Nebi Yasak +--- + util/romcc/romcc.c | 24 ++++++++++++------------ + 1 file changed, 12 insertions(+), 12 deletions(-) + +diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c +index 378bfc50f290..b375e0fc83cb 100644 +--- a/util/romcc/romcc.c ++++ b/util/romcc/romcc.c +@@ -7137,7 +7137,7 @@ static void integral(struct compile_state *state, struct triple *def) + } + + +-static void bool(struct compile_state *state, struct triple *def) ++static void bool_(struct compile_state *state, struct triple *def) + { + if (!TYPE_ARITHMETIC(def->type->type) && + ((def->type->type & TYPE_MASK) != TYPE_POINTER)) { +@@ -7705,7 +7705,7 @@ static struct triple *mkcond_expr( + struct triple *def, *val, *var, *jmp1, *jmp2, *top, *mid, *end; + struct type *result_type; + unsigned int left_type, right_type; +- bool(state, test); ++ bool_(state, test); + left_type = left->type->type; + right_type = right->type->type; + result_type = 0; +@@ -11036,7 +11036,7 @@ static struct triple *unary_expr(struct compile_state *state) + case TOK_BANG: + eat(state, TOK_BANG); + right = read_expr(state, cast_expr(state)); +- bool(state, right); ++ bool_(state, right); + def = lfalse_expr(state, right); + break; + case TOK_SIZEOF: +@@ -11363,10 +11363,10 @@ static struct triple *land_expr(struct compile_state *state) + while(peek(state) == TOK_LOGAND) { + struct triple *left, *right; + left = read_expr(state, def); +- bool(state, left); ++ bool_(state, left); + eat(state, TOK_LOGAND); + right = read_expr(state, or_expr(state)); +- bool(state, right); ++ bool_(state, right); + + def = mkland_expr(state, + ltrue_expr(state, left), +@@ -11382,10 +11382,10 @@ static struct triple *lor_expr(struct compile_state *state) + while(peek(state) == TOK_LOGOR) { + struct triple *left, *right; + left = read_expr(state, def); +- bool(state, left); ++ bool_(state, left); + eat(state, TOK_LOGOR); + right = read_expr(state, land_expr(state)); +- bool(state, right); ++ bool_(state, right); + + def = mklor_expr(state, + ltrue_expr(state, left), +@@ -11400,7 +11400,7 @@ static struct triple *conditional_expr(struct compile_state *state) + def = lor_expr(state); + if (peek(state) == TOK_QUEST) { + struct triple *test, *left, *right; +- bool(state, def); ++ bool_(state, def); + test = ltrue_expr(state, read_expr(state, def)); + eat(state, TOK_QUEST); + left = read_expr(state, expr(state)); +@@ -11676,7 +11676,7 @@ static void if_statement(struct compile_state *state, struct triple *first) + eat(state, TOK_IF); + eat(state, TOK_LPAREN); + test = expr(state); +- bool(state, test); ++ bool_(state, test); + /* Cleanup and invert the test */ + test = lfalse_expr(state, read_expr(state, test)); + eat(state, TOK_RPAREN); +@@ -11719,7 +11719,7 @@ static void for_statement(struct compile_state *state, struct triple *first) + eat(state, TOK_SEMI); + if (peek(state) != TOK_SEMI) { + test = expr(state); +- bool(state, test); ++ bool_(state, test); + test = ltrue_expr(state, read_expr(state, test)); + } + eat(state, TOK_SEMI); +@@ -11767,7 +11767,7 @@ static void while_statement(struct compile_state *state, struct triple *first) + eat(state, TOK_WHILE); + eat(state, TOK_LPAREN); + test = expr(state); +- bool(state, test); ++ bool_(state, test); + test = ltrue_expr(state, read_expr(state, test)); + eat(state, TOK_RPAREN); + /* Generate the needed pieces */ +@@ -11818,7 +11818,7 @@ static void do_statement(struct compile_state *state, struct triple *first) + eat(state, TOK_WHILE); + eat(state, TOK_LPAREN); + test = read_expr(state, expr(state)); +- bool(state, test); ++ bool_(state, test); + eat(state, TOK_RPAREN); + eat(state, TOK_SEMI); + /* Thread the pieces together */ + +-- +2.49.0 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0015-gmp-gcc15-patch.patch b/config/module/coreboot/fam15h_cb411/patches/0015-gmp-gcc15-patch.patch new file mode 100644 index 00000000..40ea7c14 --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0015-gmp-gcc15-patch.patch @@ -0,0 +1,65 @@ +From 8663b2a75d69aa241f86dd6e813232343a05b609 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Tue, 29 Apr 2025 21:26:25 +0100 +Subject: [PATCH 1/1] gmp gcc15 patch + +https://gmplib.org/list-archives/gmp-devel/2025-January/006279.html + +Signed-off-by: Leah Rowe +--- + ...include.m4-fix-std-c23-build-failure.patch | 43 +++++++++++++++++++ + 1 file changed, 43 insertions(+) + create mode 100644 util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch + +diff --git a/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch +new file mode 100644 +index 0000000000..adb66c6043 +--- /dev/null ++++ b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure.patch +@@ -0,0 +1,43 @@ ++From 7d4aa08224b53054754b8ee6fd61a4297ac47119 Mon Sep 17 00:00:00 2001 ++From: Rudi Heitbaum ++Date: Wed, 22 Jan 2025 02:34:09 +0100 ++Subject: [PATCH 1/1] acinclude.m4: fix -std=c23 build failure ++ ++Add prototype to configure test function as c23 removes unprototyped ++functions. ++ ++gcc-15 switched to -std=c23 by default: ++ ++ https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 ++ ++As a result `configure` fails with: ++ conftest.c: In function 'f': ++ conftest.c:12:48: error: too many arguments to function 'g'; expected 0, have 6 ++ 12 | for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}} ++ | ^ ~ ++ conftest.c:7:6: note: declared here ++ 7 | void g(){} ++ | ^ ++ ++Link: https://gmplib.org/list-archives/gmp-bugs/2024-November/005550.html ++Signed-off-by: Rudi Heitbaum ++--- ++ acinclude.m4 | 2 +- ++ 1 file changed, 1 insertion(+), 1 deletion(-) ++ ++diff --git a/acinclude.m4 b/acinclude.m4 ++index 3c3ecf5..3a226fd 100644 ++--- a/acinclude.m4 +++++ b/acinclude.m4 ++@@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1], ++ ++ #if defined (__GNUC__) && ! defined (__cplusplus) ++ typedef unsigned long long t1;typedef t1*t2; ++-void g(){} +++void g(int,const t1 *,t1,t1 *,const t1 *,int){} ++ void h(){} ++ static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) ++ {t1 c,x,r;int i;if(v0){c=1;for(i=1;i +Date: Tue, 29 Apr 2025 23:18:56 +0100 +Subject: [PATCH 1/1] further fix for std=c23 on gmp with host gcc-15 + +the fix had to be applied in the configure file, so that +the correct function call is generated in conftest.c + +Signed-off-by: Leah Rowe +--- + ...e.m4-fix-std-c23-build-failure-extra.patch | 32 +++++++++++++++++++ + 1 file changed, 32 insertions(+) + create mode 100644 util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch + +diff --git a/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch +new file mode 100644 +index 0000000000..40569b27d8 +--- /dev/null ++++ b/util/crossgcc/patches/gmp-6.1.2_acinclude.m4-fix-std-c23-build-failure-extra.patch +@@ -0,0 +1,32 @@ ++From 6316016cfe6834b6d3242e7e088b7d2af91ada22 Mon Sep 17 00:00:00 2001 ++From: Leah Rowe ++Date: Tue, 29 Apr 2025 23:16:51 +0100 ++Subject: [PATCH 1/1] further -std=23 gcc-15 fix for gmp ++ ++the previously merged revision was correct, but ++applied in the wrong place. the conftest.c file ++was being generated by configure, in this place. ++ ++this should fix build errors now, on gcc-15. ++ ++Signed-off-by: Leah Rowe ++--- ++ configure | 2 +- ++ 1 file changed, 1 insertion(+), 1 deletion(-) ++ ++diff --git a/configure b/configure ++index 12ddffd..8b07818 100755 ++--- a/configure +++++ b/configure ++@@ -6458,7 +6458,7 @@ if test "$gmp_prog_cc_works" = yes; then ++ ++ #if defined (__GNUC__) && ! defined (__cplusplus) ++ typedef unsigned long long t1;typedef t1*t2; ++-void g(){} +++void g(int,const t1 *,t1,t1 *,const t1 *,int){} ++ void h(){} ++ static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) ++ {t1 c,x,r;int i;if(v0){c=1;for(i=1;i +Date: Wed, 30 Apr 2025 04:07:31 +0100 +Subject: [PATCH 1/1] xgcc: update nasm to 2.16.03 + +Signed-off-by: Leah Rowe +--- + util/crossgcc/buildgcc | 2 +- + util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum | 1 - + util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum | 1 + + 3 files changed, 2 insertions(+), 2 deletions(-) + delete mode 100644 util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum + create mode 100644 util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum + +diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc +index 0ad1980104..2d48ff038e 100755 +--- a/util/crossgcc/buildgcc ++++ b/util/crossgcc/buildgcc +@@ -61,7 +61,7 @@ EXPAT_VERSION=2.2.7 + CLANG_VERSION=8.0.0 + MAKE_VERSION=4.2.1 + CMAKE_VERSION=3.15.3 +-NASM_VERSION=2.14.02 ++NASM_VERSION=2.16.03 + + # GCC toolchain archive locations + # These are sanitized by the jenkins toolchain test builder, so if +diff --git a/util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum b/util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum +deleted file mode 100644 +index f3b9de9d29..0000000000 +--- a/util/crossgcc/sum/nasm-2.14.02.tar.bz2.cksum ++++ /dev/null +@@ -1 +0,0 @@ +-fe098ee4dc9c4c983696c4948e64b23e4098b92b tarballs/nasm-2.14.02.tar.bz2 +diff --git a/util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum b/util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum +new file mode 100644 +index 0000000000..9ca23fb0c4 +--- /dev/null ++++ b/util/crossgcc/sum/nasm-2.16.03.tar.bz2.cksum +@@ -0,0 +1 @@ ++c63080347a5c1c8904456fe6c680b722558383b4 tarballs/nasm-2.16.03.tar.bz2 +-- +2.39.5 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0018-fix-arch-linux-build-error.patch b/config/module/coreboot/fam15h_cb411/patches/0018-fix-arch-linux-build-error.patch new file mode 100644 index 00000000..d712f444 --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0018-fix-arch-linux-build-error.patch @@ -0,0 +1,30 @@ +From 0e6a5b0e82309715683ce3033dc34897852827e5 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Wed, 1 Apr 2026 08:25:07 +0100 +Subject: [PATCH 1/1] fix arch linux build error + +fixes cbfstool builds on arch linux on this old coreboot + +Signed-off-by: Leah Rowe +--- + src/commonlib/include/commonlib/helpers.h | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/commonlib/include/commonlib/helpers.h b/src/commonlib/include/commonlib/helpers.h +index ca3b3c58f9..e28b5c4c37 100644 +--- a/src/commonlib/include/commonlib/helpers.h ++++ b/src/commonlib/include/commonlib/helpers.h +@@ -133,10 +133,6 @@ + /* Calculate size of structure member. */ + #define member_size(type, member) (sizeof(((type *)0)->member)) + +-#ifndef __unused +-#define __unused __attribute__((unused)) +-#endif +- + #ifndef alloca + #define alloca(x) __builtin_alloca(x) + #endif +-- +2.47.3 + diff --git a/config/module/coreboot/fam15h_cb411/patches/0019-fix-gcc-error-with-__unused.patch b/config/module/coreboot/fam15h_cb411/patches/0019-fix-gcc-error-with-__unused.patch new file mode 100644 index 00000000..f6a2e643 --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/patches/0019-fix-gcc-error-with-__unused.patch @@ -0,0 +1,52 @@ +From 330177da40df12813d6e45c9cdb6285dcbff8b59 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Mon, 3 Aug 2026 22:22:39 +0100 +Subject: [PATCH 1/1] fix gcc error with __unused + +just discard it explicitly. + +really now, this is better. it's what i do. + +(void)foo; + +then gcc won't blow up. fixes building on my debian machine. + +Signed-off-by: Leah Rowe +--- + src/commonlib/region.c | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +diff --git a/src/commonlib/region.c b/src/commonlib/region.c +index 4a7e285747..b016600da9 100644 +--- a/src/commonlib/region.c ++++ b/src/commonlib/region.c +@@ -229,18 +229,23 @@ void xlate_region_device_rw_init(struct xlate_region_device *xdev, + } + + static void *mdev_mmap(const struct region_device *rd, size_t offset, +- size_t size __unused) ++ size_t size) + { + const struct mem_region_device *mdev; + ++ (void)size; ++ + mdev = container_of(rd, __typeof__(*mdev), rdev); + + return &mdev->base[offset]; + } + +-static int mdev_munmap(const struct region_device *rd __unused, +- void *mapping __unused) ++static int mdev_munmap(const struct region_device *rd, ++ void *mapping) + { ++ (void)mapping; ++ (void)rd; ++ + return 0; + } + +-- +2.47.3 + diff --git a/config/module/coreboot/fam15h_cb411/target.cfg b/config/module/coreboot/fam15h_cb411/target.cfg new file mode 100644 index 00000000..41802d8a --- /dev/null +++ b/config/module/coreboot/fam15h_cb411/target.cfg @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-3.0-or-later + +rev="1c13f8d85c7306213cd525308ee8973e5663a3f8" + +tree="fam15h_cb411" + +xlang="c" # disable use of gnat on this tree diff --git a/config/module/coreboot/kcma_d8_16mb/target.cfg b/config/module/coreboot/kcma_d8_16mb/target.cfg index bc86da22..6733c4d9 100644 --- a/config/module/coreboot/kcma_d8_16mb/target.cfg +++ b/config/module/coreboot/kcma_d8_16mb/target.cfg @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later -tree="fam15h" +tree="fam15h_cb411" xarch="i386-elf" payload_seabios="y" payload_grub="y" diff --git a/config/module/coreboot/kcma_d8_2mb/target.cfg b/config/module/coreboot/kcma_d8_2mb/target.cfg index bc86da22..6733c4d9 100644 --- a/config/module/coreboot/kcma_d8_2mb/target.cfg +++ b/config/module/coreboot/kcma_d8_2mb/target.cfg @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later -tree="fam15h" +tree="fam15h_cb411" xarch="i386-elf" payload_seabios="y" payload_grub="y" diff --git a/config/module/coreboot/kfsn4_dre_1mb/target.cfg b/config/module/coreboot/kfsn4_dre_1mb/target.cfg index 6699350f..f719cb6c 100644 --- a/config/module/coreboot/kfsn4_dre_1mb/target.cfg +++ b/config/module/coreboot/kfsn4_dre_1mb/target.cfg @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later -tree="fam15h" +tree="fam15h_cb411" xarch="i386-elf" payload_seabios="y" payload_memtest="y" diff --git a/config/module/coreboot/kfsn4_dre_2mb/target.cfg b/config/module/coreboot/kfsn4_dre_2mb/target.cfg index 63717af2..4e691142 100644 --- a/config/module/coreboot/kfsn4_dre_2mb/target.cfg +++ b/config/module/coreboot/kfsn4_dre_2mb/target.cfg @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later -tree="fam15h" +tree="fam15h_cb411" xarch="i386-elf" payload_seabios="y" payload_grub="y" diff --git a/config/module/coreboot/kgpe_d16_16mb/target.cfg b/config/module/coreboot/kgpe_d16_16mb/target.cfg index bc86da22..6733c4d9 100644 --- a/config/module/coreboot/kgpe_d16_16mb/target.cfg +++ b/config/module/coreboot/kgpe_d16_16mb/target.cfg @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later -tree="fam15h" +tree="fam15h_cb411" xarch="i386-elf" payload_seabios="y" payload_grub="y" diff --git a/config/module/coreboot/kgpe_d16_2mb/target.cfg b/config/module/coreboot/kgpe_d16_2mb/target.cfg index bc86da22..6733c4d9 100644 --- a/config/module/coreboot/kgpe_d16_2mb/target.cfg +++ b/config/module/coreboot/kgpe_d16_2mb/target.cfg @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later -tree="fam15h" +tree="fam15h_cb411" xarch="i386-elf" payload_seabios="y" payload_grub="y" -- cgit v1.2.1