fix gnat build issue on coreboot repositories

backported from newer coreboot revisions, see patch

coreboot/default/patches/0014-coreboot-default-fix-crossgcc-build.patch
fsdg20230625
Leah Rowe 2022-11-19 03:33:38 +00:00
parent 6114c34988
commit 60793c552f
14 changed files with 83 additions and 26 deletions

View File

@ -1,7 +1,7 @@
From 4df63d823092dc06e3cfc27165a4850b996af90d Mon Sep 17 00:00:00 2001 From 087327fa0513b27be0487a4dd8fbf4c3c783cf12 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@retroboot.org> From: Leah Rowe <leah@retroboot.org>
Date: Fri, 19 Mar 2021 05:54:58 +0000 Date: Fri, 19 Mar 2021 05:54:58 +0000
Subject: [PATCH 01/11] apple/macbook21: Set default VRAM to 64MiB instead of Subject: [PATCH 01/14] apple/macbook21: Set default VRAM to 64MiB instead of
8MiB 8MiB
--- ---

View File

@ -1,7 +1,7 @@
From a43fee19b7a4615aceb9bdf96afda980c106445e Mon Sep 17 00:00:00 2001 From 7f5cdb1b4677cacc396ac62dd4f62b600d1a324a Mon Sep 17 00:00:00 2001
From: Vitali64 <5405891-vitali64yt@users.noreply.gitlab.com> From: Vitali64 <5405891-vitali64yt@users.noreply.gitlab.com>
Date: Wed, 27 Oct 2021 13:36:01 +0200 Date: Wed, 27 Oct 2021 13:36:01 +0200
Subject: [PATCH 02/11] add c3 and clockgen to apple/macbook21 Subject: [PATCH 02/14] add c3 and clockgen to apple/macbook21
--- ---
src/mainboard/apple/macbook21/Kconfig | 1 + src/mainboard/apple/macbook21/Kconfig | 1 +

View File

@ -1,7 +1,7 @@
From 6302d89dfd785330944ad091767c7e7eb8da4aed Mon Sep 17 00:00:00 2001 From 1582b3d799e43dc44f92d4e043ac2f86cfd1bd86 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@osboot.org> From: Leah Rowe <leah@osboot.org>
Date: Sun, 3 Jan 2021 03:34:01 +0000 Date: Sun, 3 Jan 2021 03:34:01 +0000
Subject: [PATCH 03/11] lenovo/x60: 64MiB Video RAM changed to default Subject: [PATCH 03/14] lenovo/x60: 64MiB Video RAM changed to default
(previously it was 8MiB) (previously it was 8MiB)
--- ---

View File

@ -1,7 +1,7 @@
From f13f10f6b61d0581970a508b626cd63adf607eff Mon Sep 17 00:00:00 2001 From 0fb538599c46a4e7f950c57b67b2d8c0d92200f4 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@osboot.org> From: Leah Rowe <leah@osboot.org>
Date: Mon, 22 Feb 2021 22:16:59 +0000 Date: Mon, 22 Feb 2021 22:16:59 +0000
Subject: [PATCH 04/11] lenovo/t60: make 64MiB VRAM the default in cmos.default Subject: [PATCH 04/14] lenovo/t60: make 64MiB VRAM the default in cmos.default
--- ---
src/mainboard/lenovo/t60/cmos.default | 2 +- src/mainboard/lenovo/t60/cmos.default | 2 +-

View File

@ -1,7 +1,7 @@
From e3b971134ffc2f52e575efe53a571978ed291dc6 Mon Sep 17 00:00:00 2001 From 702e80f25436126f0b157dff95a90fdbe318c2c5 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:10:33 +0100 Date: Fri, 14 May 2021 13:10:33 +0100
Subject: [PATCH 05/11] lenovo/t400: set VRAM to 352MiB VRAM by default Subject: [PATCH 05/14] lenovo/t400: set VRAM to 352MiB VRAM by default
In the past, this caused stability issues so we set it to 256MiB. Nowadays, In the past, this caused stability issues so we set it to 256MiB. Nowadays,
coreboot has fixed the issue preventing this. See: coreboot has fixed the issue preventing this. See:

View File

@ -1,7 +1,7 @@
From 383c273f0c44eec93cd55c3d21d6c1a8316d8dbe Mon Sep 17 00:00:00 2001 From d9d2e1fceb4abf99e140662a25059c6e913556de Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:11:59 +0100 Date: Fri, 14 May 2021 13:11:59 +0100
Subject: [PATCH 06/11] lenovo/x200: set VRAM to 352MiB by default Subject: [PATCH 06/14] lenovo/x200: set VRAM to 352MiB by default
This fix makes it possible: This fix makes it possible:
https://review.coreboot.org/c/coreboot/+/16831 https://review.coreboot.org/c/coreboot/+/16831

View File

@ -1,7 +1,7 @@
From 4f4f957ea967cc94841746821144ee807747f540 Mon Sep 17 00:00:00 2001 From b69a04a9ec173a431507e35e70f150fbd864fde3 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:18:26 +0100 Date: Fri, 14 May 2021 13:18:26 +0100
Subject: [PATCH 07/11] gigabyte/ga-g41m-es2l: set VRAM to 352MiB by default Subject: [PATCH 07/14] gigabyte/ga-g41m-es2l: set VRAM to 352MiB by default
--- ---
src/mainboard/gigabyte/ga-g41m-es2l/cmos.default | 2 +- src/mainboard/gigabyte/ga-g41m-es2l/cmos.default | 2 +-

View File

@ -1,7 +1,7 @@
From 1ee893f9fc5251968500695824ab9fd39461d318 Mon Sep 17 00:00:00 2001 From 5409b84b222f4f04238dcafb7411986692909098 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:21:39 +0100 Date: Fri, 14 May 2021 13:21:39 +0100
Subject: [PATCH 08/11] acer/g43t-am3: set VRAM to 352MiB by default Subject: [PATCH 08/14] acer/g43t-am3: set VRAM to 352MiB by default
--- ---
src/mainboard/acer/g43t-am3/cmos.default | 2 +- src/mainboard/acer/g43t-am3/cmos.default | 2 +-

View File

@ -1,7 +1,7 @@
From c4ab3bd4c88d83ca3ca391519cec31fa7b7a6c2a Mon Sep 17 00:00:00 2001 From 1c3812ccecef2b22379e4999666de95cd7f38acf Mon Sep 17 00:00:00 2001
From: persmule <persmule@gmail.com> From: persmule <persmule@gmail.com>
Date: Sun, 31 Oct 2021 23:33:26 +0000 Date: Sun, 31 Oct 2021 23:33:26 +0000
Subject: [PATCH 11/11] lenovo/t400: Enable all SATA ports Subject: [PATCH 09/14] lenovo/t400: Enable all SATA ports
There are 2 SATA ports on the chassis of t400(s), but at least one dock for There are 2 SATA ports on the chassis of t400(s), but at least one dock for
t400 contains a port for (P/S)ATA device, and t400s has a eSATA port on its t400 contains a port for (P/S)ATA device, and t400s has a eSATA port on its

View File

@ -1,7 +1,7 @@
From 6a8bf6d6a52081c06baab2b49ea571f04d4d6e5d Mon Sep 17 00:00:00 2001 From d35656413f27f37b0d7680f6ed0a2b1aac31b982 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Mon, 20 Dec 2021 01:29:31 +0000 Date: Mon, 20 Dec 2021 01:29:31 +0000
Subject: [PATCH 1/1] coreboot: Add Lenovo X230 patch: gfx_uma_size 224M by Subject: [PATCH 10/14] coreboot: Add Lenovo X230 patch: gfx_uma_size 224M by
default default
--- ---

View File

@ -1,7 +1,7 @@
From 146a4d6454e72da4a9204cb4c48c4994ba4cdd8d Mon Sep 17 00:00:00 2001 From 0f2cd8edad3326a8c9f3b785efbda395d1c8cde9 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Mon, 3 Jan 2022 19:06:22 +0000 Date: Mon, 3 Jan 2022 19:06:22 +0000
Subject: [PATCH 1/1] lenovo/x230: set me_state=Disabled in cmos.default Subject: [PATCH 11/14] lenovo/x230: set me_state=Disabled in cmos.default
I only recently found out about this. It's possible to use me_cleaner to I only recently found out about this. It's possible to use me_cleaner to
do the same thing, but some people might just flash coreboot and not do do the same thing, but some people might just flash coreboot and not do

View File

@ -1,7 +1,7 @@
From 75a44087be5da44b95133906b2213d7f234e7d0e Mon Sep 17 00:00:00 2001 From 694fac8e25949c20de421ee1b199a16b94c202e5 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Wed, 2 Mar 2022 21:50:01 +0000 Date: Wed, 2 Mar 2022 21:50:01 +0000
Subject: [PATCH 1/1] set me_state=Disabled on all cmos.default files! Subject: [PATCH 12/14] set me_state=Disabled on all cmos.default files!
yeah. why the hell isn't this the default yeah. why the hell isn't this the default
--- ---

View File

@ -1,7 +1,7 @@
From cb3b04a3849952d8c0fa90616f45cfe5e613a286 Mon Sep 17 00:00:00 2001 From 4106d0163987ae926a7f4261dec06e3e8bf85ff0 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org> From: Leah Rowe <leah@libreboot.org>
Date: Sun, 13 Mar 2022 18:04:55 +0000 Date: Sun, 13 Mar 2022 18:04:55 +0000
Subject: [PATCH 1/1] specifically use python3, in scripts Subject: [PATCH 13/14] specifically use python3, in scripts
--- ---
src/drivers/intel/fsp2_0/Makefile.inc | 2 +- src/drivers/intel/fsp2_0/Makefile.inc | 2 +-

View File

@ -0,0 +1,57 @@
From 9837b542ee2ff56032950b211e60e1e180343f44 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Sat, 19 Nov 2022 03:30:34 +0000
Subject: [PATCH 14/14] coreboot/default: fix crossgcc build
patch copied from
coreboot f9b5665d280faa35c6b41fe0c48a9e9e1afd634b
---
util/crossgcc/patches/gcc-11.2.0_gnat.patch | 32 ++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/util/crossgcc/patches/gcc-11.2.0_gnat.patch b/util/crossgcc/patches/gcc-11.2.0_gnat.patch
index 2d7cecee24..c22cec45d0 100644
--- a/util/crossgcc/patches/gcc-11.2.0_gnat.patch
+++ b/util/crossgcc/patches/gcc-11.2.0_gnat.patch
@@ -5,7 +5,37 @@
# Extra flags to pass to recursive makes.
-COMMON_ADAFLAGS= -gnatpg
-+COMMON_ADAFLAGS= -gnatpg -gnatwGUR
++COMMON_ADAFLAGS= -gnatpg -gnatwn
ifeq ($(TREECHECKING),)
CHECKING_ADAFLAGS=
else
+diff -Nurp gcc-11.2.0/gcc/ada/gcc-interface/Make-lang.in gcc-11.2.0.new/gcc/ada/gcc-interface/Make-lang.in
+--- gcc-11.2.0/gcc/ada/gcc-interface/Make-lang.in 2022-06-03 00:31:57.993273717 +0200
++++ gcc-11.2.0.new/gcc/ada/gcc-interface/Make-lang.in 2022-06-03 00:30:50.214166847 +0200
+@@ -334,6 +334,7 @@ GNAT_ADA_OBJS = \
+ ada/hostparm.o \
+ ada/impunit.o \
+ ada/inline.o \
++ ada/libgnat/i-c.o \
+ ada/libgnat/interfac.o \
+ ada/itypes.o \
+ ada/krunch.o \
+@@ -364,7 +365,10 @@ GNAT_ADA_OBJS = \
+ ada/rtsfind.o \
+ ada/libgnat/s-addope.o \
+ ada/libgnat/s-addima.o \
++ ada/libgnat/s-aotase.o \
+ ada/libgnat/s-assert.o \
++ ada/libgnat/s-atoope.o \
++ ada/libgnat/s-atopri.o \
+ ada/libgnat/s-bitops.o \
+ ada/libgnat/s-carun8.o \
+ ada/libgnat/s-casuti.o \
+@@ -548,6 +552,7 @@ GNATBIND_OBJS = \
+ ada/hostparm.o \
+ ada/init.o \
+ ada/initialize.o \
++ ada/libgnat/i-c.o \
+ ada/libgnat/interfac.o \
+ ada/krunch.o \
+ ada/lib.o \
--
2.25.1