Files
builders_rubenslte/patches/README.md
T
2026-09-13 20:31:42 +02:00

1.3 KiB

Patches

These patches make the 2015-era sources build on a modern host toolchain.

TWRP / omni 5.1 (patches/twrp/)

Patch File(s) Problem fixed
0001-host-cflags-suppress-stringop-truncation.patch build/core/combo/HOST_linux-x86*.mk -Werror=stringop-truncation errors with host GCC >= 8
0002-build-core-fix-ar-absolute-paths.patch build/core/definitions.mk host ar/absolute path handling in whole-archive extraction breaks with newer binutils; extract to a temp dir instead
0003-recovery-add-std-gnu++11-for-nullptr-support.patch bootable/recovery/Android.mk adds -std=gnu++11 for nullptr under the recovery Clang build
0004-build-core-combo-remove-icf-safe-for-BFD-ld.patch build/core/combo/TARGET_linux-arm.mk -Wl,--icf=safe is gold-only; commented out for the BFD linker supplied by the toolchain download
0005-build-core-tasks-kernel-fix-KERNEL_CONFIG_OVERRIDE-ordering-and-passthrough.patch build/core/tasks/kernel.mk applies the additional config before the override, drops the clobbering oldconfig after override, and passes the override on the kernel build command line

These target the omni twrp-5.1 manifest sources — they only apply inside the repo workspace, not on a host.