Patches
These patches make the omni twrp-5.1 sources (2015-era) build on a modern
host toolchain. They are applied automatically by build_twrp.sh and are
idempotent (already-applied patches are detected and skipped).
| 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-kernel-add-missing-ARCH_MSM-config-and-defconfig-fixes.patch |
kernel/.../arch/arm/mach-msm/Kconfig, msm8926-sec_rubenslte_defconfig |
adds the missing ARCH_MSM Kconfig entry and enables CONFIG_OF/ARCH_MSM in the variant defconfig (fresh kernel tree lacks them) |
0004-recovery-add-std-gnu++11-for-nullptr-support.patch |
bootable/recovery/Android.mk |
adds -std=gnu++11 for nullptr under the recovery Clang build |
0005-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 |
0006-kernel-timeconst-pl-fix-deprecated-defined-array.patch |
kernel/.../kernel/timeconst.pl |
defined(@array) removed in Perl 5.22+; use !@val |
0007-scripts-Makefile-modpost-treat-section-mismatches-as-non-fatal.patch |
kernel/.../scripts/Makefile.modpost |
drops the -E flag so section mismatches are warnings, not errors (newer host binutils) |
0008-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 |
The kernel patches (0003, 0006, 0007) target kernel/samsung/rubenslte
as checked out by build_twrp.sh; the others target the omni twrp-5.1
manifest sources — they only apply in the repo workspace, not on a host.