Skip to content

Commit c19ab15

Browse files
committed
talos-2 modules/coreboot patches/coreboot-talos_2/0003-ugly_skiboot-patch_fix_for_newer_gcc_from_musl_125.patch: add patches needed for skiboot to be compiled in little-endian by heads boostrapped gcc15.1 compiler
Signed-off-by: Thierry Laurion <[email protected]>
1 parent ee05f7d commit c19ab15

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

modules/coreboot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ $(eval $(call coreboot_module,24.02.01,))
9090
# talos_2 could use the 4.20.1 toolchain, but it's the only ppc64 fork, so
9191
# there is no point preparing another coreboot module that won't be shared with
9292
# anything.
93+
94+
# GCC_15_PPC64_COREBOOT: PowerPC64 dual-compiler architecture GCC 15.1 compatibility
95+
# PowerPC64 builds use two different compilers:
96+
# 1. Coreboot components (bootblock/romstage/ramstage): Big-endian, coreboot's GCC 11.2.0 - no issues
97+
# 2. Skiboot payload: Little-endian, Heads' GCC 15.1 musl cross-compiler - requires patches
98+
# Skiboot compilation fixes applied via patches/coreboot-talos_2/0003-ugly_skiboot-patch_fix_for_newer_gcc_from_musl_125.patch
99+
# - Adds -Wno-error=unterminated-string-initialization for hardware definition arrays
100+
# - Adds -Wno-error=misleading-indentation for conditional statement formatting
101+
# - Maintains existing -Wno-error=address-of-packed-member and -Wno-error=format-overflow
102+
# Rationale: Third-party skiboot firmware has minimal upstream maintenance, warning suppressions
103+
# more maintainable than invasive code changes. Monitor for additional GCC 16+ warnings.
104+
93105
coreboot-talos_2_repo := https://github.com/Dasharo/coreboot
94106
coreboot-talos_2_commit_hash := fc47236e9877f4113dfcce07fa928f52d4d2c8ee
95107
$(eval $(call coreboot_module,talos_2,))

patches/coreboot-talos_2/0003-ugly_skiboot-patch_fix_for_newer_gcc_from_musl_125.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ index 0000000..5db9bca
1111
+ endif
1212
+
1313
+-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
14+
++CFLAGS := -Wno-error=address-of-packed-member -Wno-error=format-overflow -Wno-error=unterminated-string-initialization -Wno-error=misleading-indentation -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 -fno-asynchronous-unwind-tables
1515
+ CFLAGS += -mcpu=power7
1616
+ CFLAGS += -Wl,--oformat,elf64-powerpc -ggdb
1717
+ CFLAGS += $(call try-cflag,$(CC),-ffixed-r13)

0 commit comments

Comments
 (0)