Skip to content

Commit f92407d

Browse files
committed
patches/coreboot-talos_2: add ugly patch against skiboot-to fix CFLAGS against newer mulslc (Doesn't use coreboot buildstack, obviously)
Signed-off-by: Thierry Laurion <[email protected]>
1 parent f2d39d8 commit f92407d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/payloads/external/skiboot/patches/0002-ugly_fix_for_newer_gcc_from_musl_125.patch b/payloads/external/skiboot/patches/0002-ugly_fix_for_newer_gcc_from_musl_125.patch
2+
new file mode 100644
3+
index 0000000..5db9bca
4+
--- /dev/null
5+
+++ b/payloads/external/skiboot/patches/0002-ugly_fix_for_newer_gcc_from_musl_125.patch
6+
@@ -0,0 +1,11 @@
7+
+--- Makefile.main.orig 2024-11-06 16:19:12.161240140 -0500
8+
++++ Makefile.main 2024-11-06 16:23:01.119252412 -0500
9+
+@@ -74,7 +74,7 @@
10+
+ CPPFLAGS += -DDEBUG -DCCAN_LIST_DEBUG
11+
+ endif
12+
+
13+
+-CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 -fno-asynchronous-unwind-tables
14+
++CFLAGS := -Wno-error=address-of-packed-member -Wno-error=format-overflow -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 -fno-asynchronous-unwind-tables
15+
+ CFLAGS += -mcpu=power7
16+
+ CFLAGS += -Wl,--oformat,elf64-powerpc -ggdb
17+
+ CFLAGS += $(call try-cflag,$(CC),-ffixed-r13)

0 commit comments

Comments
 (0)