]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
toolchain: gcc: improve patch handling by introducing major version
authorNick Hainke <vincent@systemli.org>
Sat, 10 Sep 2022 21:41:55 +0000 (23:41 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 11 Sep 2022 09:24:57 +0000 (11:24 +0200)
Every minor version bump of a major version will result in a huge patch
diff because of the moving of all the patches from version e.g. 11.2.0 to
11.3.0. This commit only use the major version for the patch folders to
differentiate between the different gcc versions. This will significantly
improve the reviewing of the smaller version bump patches and help to see
what really changed in a minor version bump.

Signed-off-by: Nick Hainke <vincent@systemli.org>
74 files changed:
toolchain/gcc/common.mk
toolchain/gcc/patches-10.x/002-case_insensitive.patch [moved from toolchain/gcc/patches/10.3.0/002-case_insensitive.patch with 100% similarity]
toolchain/gcc/patches-10.x/010-documentation.patch [moved from toolchain/gcc/patches/10.3.0/010-documentation.patch with 100% similarity]
toolchain/gcc/patches-10.x/110-Fix-MIPS-PR-84790.patch [moved from toolchain/gcc/patches/10.3.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
toolchain/gcc/patches-10.x/230-musl_libssp.patch [moved from toolchain/gcc/patches/10.3.0/230-musl_libssp.patch with 100% similarity]
toolchain/gcc/patches-10.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from toolchain/gcc/patches/10.3.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
toolchain/gcc/patches-10.x/810-arm-softfloat-libgcc.patch [moved from toolchain/gcc/patches/10.3.0/810-arm-softfloat-libgcc.patch with 100% similarity]
toolchain/gcc/patches-10.x/820-libgcc_pic.patch [moved from toolchain/gcc/patches/10.3.0/820-libgcc_pic.patch with 100% similarity]
toolchain/gcc/patches-10.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from toolchain/gcc/patches/10.3.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
toolchain/gcc/patches-10.x/850-use_shared_libgcc.patch [moved from toolchain/gcc/patches/10.3.0/850-use_shared_libgcc.patch with 100% similarity]
toolchain/gcc/patches-10.x/851-libgcc_no_compat.patch [moved from toolchain/gcc/patches/10.3.0/851-libgcc_no_compat.patch with 100% similarity]
toolchain/gcc/patches-10.x/870-ppc_no_crtsavres.patch [moved from toolchain/gcc/patches/10.3.0/870-ppc_no_crtsavres.patch with 100% similarity]
toolchain/gcc/patches-10.x/881-no_tm_section.patch [moved from toolchain/gcc/patches/10.3.0/881-no_tm_section.patch with 100% similarity]
toolchain/gcc/patches-10.x/900-bad-mips16-crt.patch [moved from toolchain/gcc/patches/10.3.0/900-bad-mips16-crt.patch with 100% similarity]
toolchain/gcc/patches-10.x/910-mbsd_multi.patch [moved from toolchain/gcc/patches/10.3.0/910-mbsd_multi.patch with 100% similarity]
toolchain/gcc/patches-10.x/920-specs_nonfatal_getenv.patch [moved from toolchain/gcc/patches/10.3.0/920-specs_nonfatal_getenv.patch with 100% similarity]
toolchain/gcc/patches-10.x/930-fix-mips-noexecstack.patch [moved from toolchain/gcc/patches/10.3.0/930-fix-mips-noexecstack.patch with 100% similarity]
toolchain/gcc/patches-10.x/931-libffi-fix-MIPS-softfloat-build-issue.patch [moved from toolchain/gcc/patches/10.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch with 100% similarity]
toolchain/gcc/patches-10.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from toolchain/gcc/patches/10.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]
toolchain/gcc/patches-11.x/002-case_insensitive.patch [moved from toolchain/gcc/patches/11.3.0/002-case_insensitive.patch with 100% similarity]
toolchain/gcc/patches-11.x/010-documentation.patch [moved from toolchain/gcc/patches/11.3.0/010-documentation.patch with 100% similarity]
toolchain/gcc/patches-11.x/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch [moved from toolchain/gcc/patches/11.3.0/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch with 100% similarity]
toolchain/gcc/patches-11.x/110-Fix-MIPS-PR-84790.patch [moved from toolchain/gcc/patches/11.3.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
toolchain/gcc/patches-11.x/230-musl_libssp.patch [moved from toolchain/gcc/patches/11.3.0/230-musl_libssp.patch with 100% similarity]
toolchain/gcc/patches-11.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from toolchain/gcc/patches/11.3.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
toolchain/gcc/patches-11.x/810-arm-softfloat-libgcc.patch [moved from toolchain/gcc/patches/11.3.0/810-arm-softfloat-libgcc.patch with 100% similarity]
toolchain/gcc/patches-11.x/820-libgcc_pic.patch [moved from toolchain/gcc/patches/11.3.0/820-libgcc_pic.patch with 100% similarity]
toolchain/gcc/patches-11.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from toolchain/gcc/patches/11.3.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
toolchain/gcc/patches-11.x/850-use_shared_libgcc.patch [moved from toolchain/gcc/patches/11.3.0/850-use_shared_libgcc.patch with 100% similarity]
toolchain/gcc/patches-11.x/851-libgcc_no_compat.patch [moved from toolchain/gcc/patches/11.3.0/851-libgcc_no_compat.patch with 100% similarity]
toolchain/gcc/patches-11.x/870-ppc_no_crtsavres.patch [moved from toolchain/gcc/patches/11.3.0/870-ppc_no_crtsavres.patch with 100% similarity]
toolchain/gcc/patches-11.x/881-no_tm_section.patch [moved from toolchain/gcc/patches/11.3.0/881-no_tm_section.patch with 100% similarity]
toolchain/gcc/patches-11.x/900-bad-mips16-crt.patch [moved from toolchain/gcc/patches/11.3.0/900-bad-mips16-crt.patch with 100% similarity]
toolchain/gcc/patches-11.x/910-mbsd_multi.patch [moved from toolchain/gcc/patches/11.3.0/910-mbsd_multi.patch with 100% similarity]
toolchain/gcc/patches-11.x/920-specs_nonfatal_getenv.patch [moved from toolchain/gcc/patches/11.3.0/920-specs_nonfatal_getenv.patch with 100% similarity]
toolchain/gcc/patches-11.x/931-libffi-fix-MIPS-softfloat-build-issue.patch [moved from toolchain/gcc/patches/11.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch with 100% similarity]
toolchain/gcc/patches-11.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from toolchain/gcc/patches/11.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]
toolchain/gcc/patches-11.x/970-macos_arm64-building-fix.patch [moved from toolchain/gcc/patches/11.3.0/970-macos_arm64-building-fix.patch with 100% similarity]
toolchain/gcc/patches-12.x/002-case_insensitive.patch [moved from toolchain/gcc/patches/12.2.0/002-case_insensitive.patch with 100% similarity]
toolchain/gcc/patches-12.x/010-documentation.patch [moved from toolchain/gcc/patches/12.2.0/010-documentation.patch with 100% similarity]
toolchain/gcc/patches-12.x/110-Fix-MIPS-PR-84790.patch [moved from toolchain/gcc/patches/12.2.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
toolchain/gcc/patches-12.x/230-musl_libssp.patch [moved from toolchain/gcc/patches/12.2.0/230-musl_libssp.patch with 100% similarity]
toolchain/gcc/patches-12.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from toolchain/gcc/patches/12.2.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
toolchain/gcc/patches-12.x/810-arm-softfloat-libgcc.patch [moved from toolchain/gcc/patches/12.2.0/810-arm-softfloat-libgcc.patch with 100% similarity]
toolchain/gcc/patches-12.x/820-libgcc_pic.patch [moved from toolchain/gcc/patches/12.2.0/820-libgcc_pic.patch with 100% similarity]
toolchain/gcc/patches-12.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from toolchain/gcc/patches/12.2.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
toolchain/gcc/patches-12.x/850-use_shared_libgcc.patch [moved from toolchain/gcc/patches/12.2.0/850-use_shared_libgcc.patch with 100% similarity]
toolchain/gcc/patches-12.x/851-libgcc_no_compat.patch [moved from toolchain/gcc/patches/12.2.0/851-libgcc_no_compat.patch with 100% similarity]
toolchain/gcc/patches-12.x/870-ppc_no_crtsavres.patch [moved from toolchain/gcc/patches/12.2.0/870-ppc_no_crtsavres.patch with 100% similarity]
toolchain/gcc/patches-12.x/881-no_tm_section.patch [moved from toolchain/gcc/patches/12.2.0/881-no_tm_section.patch with 100% similarity]
toolchain/gcc/patches-12.x/900-bad-mips16-crt.patch [moved from toolchain/gcc/patches/12.2.0/900-bad-mips16-crt.patch with 100% similarity]
toolchain/gcc/patches-12.x/910-mbsd_multi.patch [moved from toolchain/gcc/patches/12.2.0/910-mbsd_multi.patch with 100% similarity]
toolchain/gcc/patches-12.x/920-specs_nonfatal_getenv.patch [moved from toolchain/gcc/patches/12.2.0/920-specs_nonfatal_getenv.patch with 100% similarity]
toolchain/gcc/patches-12.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from toolchain/gcc/patches/12.2.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]
toolchain/gcc/patches-12.x/970-macos_arm64-building-fix.patch [moved from toolchain/gcc/patches/12.2.0/970-macos_arm64-building-fix.patch with 100% similarity]
toolchain/gcc/patches-8.x/002-case_insensitive.patch [moved from toolchain/gcc/patches/8.4.0/002-case_insensitive.patch with 100% similarity]
toolchain/gcc/patches-8.x/010-documentation.patch [moved from toolchain/gcc/patches/8.4.0/010-documentation.patch with 100% similarity]
toolchain/gcc/patches-8.x/110-Fix-MIPS-PR-84790.patch [moved from toolchain/gcc/patches/8.4.0/110-Fix-MIPS-PR-84790.patch with 100% similarity]
toolchain/gcc/patches-8.x/230-musl_libssp.patch [moved from toolchain/gcc/patches/8.4.0/230-musl_libssp.patch with 100% similarity]
toolchain/gcc/patches-8.x/300-mips_Os_cpu_rtx_cost_model.patch [moved from toolchain/gcc/patches/8.4.0/300-mips_Os_cpu_rtx_cost_model.patch with 100% similarity]
toolchain/gcc/patches-8.x/800-arm_v5te_no_ldrd_strd.patch [moved from toolchain/gcc/patches/8.4.0/800-arm_v5te_no_ldrd_strd.patch with 100% similarity]
toolchain/gcc/patches-8.x/810-arm-softfloat-libgcc.patch [moved from toolchain/gcc/patches/8.4.0/810-arm-softfloat-libgcc.patch with 100% similarity]
toolchain/gcc/patches-8.x/820-libgcc_pic.patch [moved from toolchain/gcc/patches/8.4.0/820-libgcc_pic.patch with 100% similarity]
toolchain/gcc/patches-8.x/840-armv4_pass_fix-v4bx_to_ld.patch [moved from toolchain/gcc/patches/8.4.0/840-armv4_pass_fix-v4bx_to_ld.patch with 100% similarity]
toolchain/gcc/patches-8.x/850-use_shared_libgcc.patch [moved from toolchain/gcc/patches/8.4.0/850-use_shared_libgcc.patch with 100% similarity]
toolchain/gcc/patches-8.x/851-libgcc_no_compat.patch [moved from toolchain/gcc/patches/8.4.0/851-libgcc_no_compat.patch with 100% similarity]
toolchain/gcc/patches-8.x/870-ppc_no_crtsavres.patch [moved from toolchain/gcc/patches/8.4.0/870-ppc_no_crtsavres.patch with 100% similarity]
toolchain/gcc/patches-8.x/881-no_tm_section.patch [moved from toolchain/gcc/patches/8.4.0/881-no_tm_section.patch with 100% similarity]
toolchain/gcc/patches-8.x/900-bad-mips16-crt.patch [moved from toolchain/gcc/patches/8.4.0/900-bad-mips16-crt.patch with 100% similarity]
toolchain/gcc/patches-8.x/910-mbsd_multi.patch [moved from toolchain/gcc/patches/8.4.0/910-mbsd_multi.patch with 100% similarity]
toolchain/gcc/patches-8.x/920-specs_nonfatal_getenv.patch [moved from toolchain/gcc/patches/8.4.0/920-specs_nonfatal_getenv.patch with 100% similarity]
toolchain/gcc/patches-8.x/930-fix-mips-noexecstack.patch [moved from toolchain/gcc/patches/8.4.0/930-fix-mips-noexecstack.patch with 100% similarity]
toolchain/gcc/patches-8.x/931-libffi-fix-MIPS-softfloat-build-issue.patch [moved from toolchain/gcc/patches/8.4.0/931-libffi-fix-MIPS-softfloat-build-issue.patch with 100% similarity]
toolchain/gcc/patches-8.x/960-gotools-fix-compilation-when-making-cross-compiler.patch [moved from toolchain/gcc/patches/8.4.0/960-gotools-fix-compilation-when-making-cross-compiler.patch with 100% similarity]

index f116af7e1ae285dfa2bd8a3792177c5410f8f902..83884dd54c0f4f9aa29fd86e25ddc14ec0550afe 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)))
 GCC_DIR:=$(PKG_NAME)-$(PKG_VERSION)
 
 PKG_SOURCE_URL:=@GNU/gcc/gcc-$(PKG_VERSION)
@@ -44,7 +45,7 @@ ifeq ($(PKG_VERSION),12.2.0)
   PKG_HASH:=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 endif
 
-PATCH_DIR=../patches/$(GCC_VERSION)
+PATCH_DIR=../patches-$(GCC_MAJOR_VERSION).x
 
 BUGURL=http://bugs.openwrt.org/
 PKGVERSION=OpenWrt GCC $(PKG_VERSION) $(REVISION)