devel: gcc: align patches structure to openwrt toolchain GCC
authorChristian Marangi <redacted>
Sat, 6 Apr 2024 23:24:13 +0000 (01:24 +0200)
committerChristian Marangi <redacted>
Thu, 11 Apr 2024 11:48:09 +0000 (13:48 +0200)
Align patches structure to openwrt toolchain GCC to make it easier to
maintain them and reduce patch delta on GCC update.

Signed-off-by: Christian Marangi <redacted>
78 files changed:
devel/gcc/Makefile
devel/gcc/patches-10.x/002-case_insensitive.patch [moved from devel/gcc/patches/10.3.0/002-case_insensitive.patch with 100% similarity]
devel/gcc/patches-10.x/003-dont-choke-when-building-32bit-on-64bit.patch [moved from devel/gcc/patches/10.3.0/003-dont-choke-when-building-32bit-on-64bit.patch with 100% similarity]
devel/gcc/patches-10.x/010-documentation.patch [moved from devel/gcc/patches/10.3.0/010-documentation.patch with 100% similarity]
devel/gcc/patches-10.x/110-Fix-MIPS-PR-84790.patch [moved from devel/gcc/patches/10.3.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
devel/gcc/patches-10.x/230-musl_libssp.patch [moved from devel/gcc/patches/10.3.0/230-musl_libssp.patch with 100% similarity]
devel/gcc/patches-10.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from devel/gcc/patches/10.3.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
devel/gcc/patches-10.x/810-arm-softfloat-libgcc.patch [moved from devel/gcc/patches/10.3.0/810-arm-softfloat-libgcc.patch with 100% similarity]
devel/gcc/patches-10.x/820-libgcc_pic.patch [moved from devel/gcc/patches/10.3.0/820-libgcc_pic.patch with 100% similarity]
devel/gcc/patches-10.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from devel/gcc/patches/10.3.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
devel/gcc/patches-10.x/850-use_shared_libgcc.patch [moved from devel/gcc/patches/10.3.0/850-use_shared_libgcc.patch with 100% similarity]
devel/gcc/patches-10.x/851-libgcc_no_compat.patch [moved from devel/gcc/patches/10.3.0/851-libgcc_no_compat.patch with 100% similarity]
devel/gcc/patches-10.x/870-ppc_no_crtsavres.patch [moved from devel/gcc/patches/10.3.0/870-ppc_no_crtsavres.patch with 100% similarity]
devel/gcc/patches-10.x/881-no_tm_section.patch [moved from devel/gcc/patches/10.3.0/881-no_tm_section.patch with 100% similarity]
devel/gcc/patches-10.x/900-bad-mips16-crt.patch [moved from devel/gcc/patches/10.3.0/900-bad-mips16-crt.patch with 100% similarity]
devel/gcc/patches-10.x/910-mbsd_multi.patch [moved from devel/gcc/patches/10.3.0/910-mbsd_multi.patch with 100% similarity]
devel/gcc/patches-10.x/920-specs_nonfatal_getenv.patch [moved from devel/gcc/patches/10.3.0/920-specs_nonfatal_getenv.patch with 100% similarity]
devel/gcc/patches-10.x/930-fix-mips-noexecstack.patch [moved from devel/gcc/patches/10.3.0/930-fix-mips-noexecstack.patch with 100% similarity]
devel/gcc/patches-10.x/931-libffi-fix-MIPS-softfloat-build-issue.patch [moved from devel/gcc/patches/10.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch with 100% similarity]
devel/gcc/patches-10.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from devel/gcc/patches/10.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]
devel/gcc/patches-11.x/002-case_insensitive.patch [moved from devel/gcc/patches/11.3.0/002-case_insensitive.patch with 100% similarity]
devel/gcc/patches-11.x/003-dont-choke-when-building-32bit-on-64bit.patch [moved from devel/gcc/patches/11.3.0/003-dont-choke-when-building-32bit-on-64bit.patch with 100% similarity]
devel/gcc/patches-11.x/010-documentation.patch [moved from devel/gcc/patches/11.3.0/010-documentation.patch with 100% similarity]
devel/gcc/patches-11.x/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch [moved from devel/gcc/patches/11.3.0/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch with 100% similarity]
devel/gcc/patches-11.x/110-Fix-MIPS-PR-84790.patch [moved from devel/gcc/patches/11.3.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
devel/gcc/patches-11.x/230-musl_libssp.patch [moved from devel/gcc/patches/11.3.0/230-musl_libssp.patch with 100% similarity]
devel/gcc/patches-11.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from devel/gcc/patches/11.3.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
devel/gcc/patches-11.x/810-arm-softfloat-libgcc.patch [moved from devel/gcc/patches/11.3.0/810-arm-softfloat-libgcc.patch with 100% similarity]
devel/gcc/patches-11.x/820-libgcc_pic.patch [moved from devel/gcc/patches/11.3.0/820-libgcc_pic.patch with 100% similarity]
devel/gcc/patches-11.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from devel/gcc/patches/11.3.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
devel/gcc/patches-11.x/850-use_shared_libgcc.patch [moved from devel/gcc/patches/11.3.0/850-use_shared_libgcc.patch with 100% similarity]
devel/gcc/patches-11.x/851-libgcc_no_compat.patch [moved from devel/gcc/patches/11.3.0/851-libgcc_no_compat.patch with 100% similarity]
devel/gcc/patches-11.x/870-ppc_no_crtsavres.patch [moved from devel/gcc/patches/11.3.0/870-ppc_no_crtsavres.patch with 100% similarity]
devel/gcc/patches-11.x/881-no_tm_section.patch [moved from devel/gcc/patches/11.3.0/881-no_tm_section.patch with 100% similarity]
devel/gcc/patches-11.x/900-bad-mips16-crt.patch [moved from devel/gcc/patches/11.3.0/900-bad-mips16-crt.patch with 100% similarity]
devel/gcc/patches-11.x/910-mbsd_multi.patch [moved from devel/gcc/patches/11.3.0/910-mbsd_multi.patch with 100% similarity]
devel/gcc/patches-11.x/920-specs_nonfatal_getenv.patch [moved from devel/gcc/patches/11.3.0/920-specs_nonfatal_getenv.patch with 100% similarity]
devel/gcc/patches-11.x/931-libffi-fix-MIPS-softfloat-build-issue.patch [moved from devel/gcc/patches/11.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch with 100% similarity]
devel/gcc/patches-11.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from devel/gcc/patches/11.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]
devel/gcc/patches-11.x/970-macos_arm64-building-fix.patch [moved from devel/gcc/patches/11.3.0/970-macos_arm64-building-fix.patch with 100% similarity]
devel/gcc/patches-12.x/002-case_insensitive.patch [moved from devel/gcc/patches/12.3.0/002-case_insensitive.patch with 100% similarity]
devel/gcc/patches-12.x/003-dont-choke-when-building-32bit-on-64bit.patch [moved from devel/gcc/patches/12.3.0/003-dont-choke-when-building-32bit-on-64bit.patch with 100% similarity]
devel/gcc/patches-12.x/010-documentation.patch [moved from devel/gcc/patches/12.3.0/010-documentation.patch with 100% similarity]
devel/gcc/patches-12.x/110-Fix-MIPS-PR-84790.patch [moved from devel/gcc/patches/12.3.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
devel/gcc/patches-12.x/230-musl_libssp.patch [moved from devel/gcc/patches/12.3.0/230-musl_libssp.patch with 100% similarity]
devel/gcc/patches-12.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from devel/gcc/patches/12.3.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
devel/gcc/patches-12.x/810-arm-softfloat-libgcc.patch [moved from devel/gcc/patches/12.3.0/810-arm-softfloat-libgcc.patch with 100% similarity]
devel/gcc/patches-12.x/820-libgcc_pic.patch [moved from devel/gcc/patches/12.3.0/820-libgcc_pic.patch with 100% similarity]
devel/gcc/patches-12.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from devel/gcc/patches/12.3.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
devel/gcc/patches-12.x/850-use_shared_libgcc.patch [moved from devel/gcc/patches/12.3.0/850-use_shared_libgcc.patch with 100% similarity]
devel/gcc/patches-12.x/851-libgcc_no_compat.patch [moved from devel/gcc/patches/12.3.0/851-libgcc_no_compat.patch with 100% similarity]
devel/gcc/patches-12.x/870-ppc_no_crtsavres.patch [moved from devel/gcc/patches/12.3.0/870-ppc_no_crtsavres.patch with 100% similarity]
devel/gcc/patches-12.x/881-no_tm_section.patch [moved from devel/gcc/patches/12.3.0/881-no_tm_section.patch with 100% similarity]
devel/gcc/patches-12.x/900-bad-mips16-crt.patch [moved from devel/gcc/patches/12.3.0/900-bad-mips16-crt.patch with 100% similarity]
devel/gcc/patches-12.x/910-mbsd_multi.patch [moved from devel/gcc/patches/12.3.0/910-mbsd_multi.patch with 100% similarity]
devel/gcc/patches-12.x/920-specs_nonfatal_getenv.patch [moved from devel/gcc/patches/12.3.0/920-specs_nonfatal_getenv.patch with 100% similarity]
devel/gcc/patches-12.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from devel/gcc/patches/12.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]
devel/gcc/patches-12.x/970-macos_arm64-building-fix.patch [moved from devel/gcc/patches/12.3.0/970-macos_arm64-building-fix.patch with 100% similarity]
devel/gcc/patches-8.x/002-case_insensitive.patch [moved from devel/gcc/patches/8.4.0/002-case_insensitive.patch with 100% similarity]
devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch [moved from devel/gcc/patches/8.4.0/003-dont-choke-when-building-32bit-on-64bit.patch with 100% similarity]
devel/gcc/patches-8.x/010-documentation.patch [moved from devel/gcc/patches/8.4.0/010-documentation.patch with 100% similarity]
devel/gcc/patches-8.x/110-Fix-MIPS-PR-84790.patch [moved from devel/gcc/patches/8.4.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
devel/gcc/patches-8.x/230-musl_libssp.patch [moved from devel/gcc/patches/8.4.0/230-musl_libssp.patch with 100% similarity]
devel/gcc/patches-8.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from devel/gcc/patches/8.4.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
devel/gcc/patches-8.x/800-arm_v5te_no_ldrd_strd.patch [moved from devel/gcc/patches/8.4.0/800-arm_v5te_no_ldrd_strd.patch with 100% similarity]
devel/gcc/patches-8.x/810-arm-softfloat-libgcc.patch [moved from devel/gcc/patches/8.4.0/810-arm-softfloat-libgcc.patch with 100% similarity]
devel/gcc/patches-8.x/820-libgcc_pic.patch [moved from devel/gcc/patches/8.4.0/820-libgcc_pic.patch with 100% similarity]
devel/gcc/patches-8.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from devel/gcc/patches/8.4.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
devel/gcc/patches-8.x/850-use_shared_libgcc.patch [moved from devel/gcc/patches/8.4.0/850-use_shared_libgcc.patch with 100% similarity]
devel/gcc/patches-8.x/851-libgcc_no_compat.patch [moved from devel/gcc/patches/8.4.0/851-libgcc_no_compat.patch with 100% similarity]
devel/gcc/patches-8.x/870-ppc_no_crtsavres.patch [moved from devel/gcc/patches/8.4.0/870-ppc_no_crtsavres.patch with 100% similarity]
devel/gcc/patches-8.x/881-no_tm_section.patch [moved from devel/gcc/patches/8.4.0/881-no_tm_section.patch with 100% similarity]
devel/gcc/patches-8.x/900-bad-mips16-crt.patch [moved from devel/gcc/patches/8.4.0/900-bad-mips16-crt.patch with 100% similarity]
devel/gcc/patches-8.x/910-mbsd_multi.patch [moved from devel/gcc/patches/8.4.0/910-mbsd_multi.patch with 100% similarity]
devel/gcc/patches-8.x/920-specs_nonfatal_getenv.patch [moved from devel/gcc/patches/8.4.0/920-specs_nonfatal_getenv.patch with 100% similarity]
devel/gcc/patches-8.x/930-fix-mips-noexecstack.patch [moved from devel/gcc/patches/8.4.0/930-fix-mips-noexecstack.patch with 100% similarity]
devel/gcc/patches-8.x/931-libffi-fix-MIPS-softfloat-build-issue.patch [moved from devel/gcc/patches/8.4.0/931-libffi-fix-MIPS-softfloat-build-issue.patch with 100% similarity]
devel/gcc/patches-8.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from devel/gcc/patches/8.4.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]

index e45372e4f8f91fa8beb5631b745e87ab431cf74b..583ce15bc40c2ae8a4b6d0118425b70611701ff9 100644 (file)
@@ -23,6 +23,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=gcc
 GCC_VERSION:=$(call qstrip,$(CONFIG_GCC_VERSION))
 PKG_VERSION:=$(firstword $(subst +, ,$(GCC_VERSION)))
+GCC_MAJOR_VERSION:=$(word 1,$(subst ., ,$(PKG_VERSION)))
 PKG_RELEASE:=5
 GCC_DIR:=$(PKG_NAME)-$(PKG_VERSION)
 
@@ -50,7 +51,7 @@ ifeq ($(PKG_VERSION),12.3.0)
        PKG_HASH:=949a5d4f99e786421a93b532b22ffab5578de7321369975b91aec97adfda8c3b
 endif
 
-PATCH_DIR=./patches/$(GCC_VERSION)
+PATCH_DIR:=patches-$(GCC_MAJOR_VERSION).x
 
 include $(INCLUDE_DIR)/package.mk
 
git clone https://git.99rst.org/PROJECT