[Buildroot] [PATCH] package/gcc: remove powerpc conditional patch
romain.naour at gmail.com
Fri May 8 08:34:33 UTC 2020
We lost track the powerpc conditional patch that was added for gcc 4.3.3 
and present up to gcc 4.9 (gcc 4.9 removed by ). But the code in gcc.mk
is still present.
The patch was dropped starting gcc 5.1  but it's know to be useful for
gcc 4.7.3 .
Since we used to have a patch directory (package/gcc/$(GCC_VERSION)) for
every gcc version available in Buildroot, the apply-patches.sh script
doesn't error out even if 1000-powerpc-link-with-math-lib.patch.conditional
But with gcc 10, we don't need (for the moment) to apply any patch, so the
patch directory doesn't exist. apply-patches.sh break the build since
the patch directory is missing:
Aborting. 'package/gcc/10.1.0' is not a directory.
Since we removed gcc 4.9 last year , we can safely remove this code.
Tested using qemu_ppc_virtex_ml507_defconfig.
Signed-off-by: Romain Naour <romain.naour at gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
package/gcc/gcc.mk | 8 --------
1 file changed, 8 deletions(-)
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index 50f2a3fcb7..af25d268a7 100644
@@ -32,14 +32,6 @@ endef
# Apply patches
- $(APPLY_PATCHES) $(@D) package/gcc/$(GCC_VERSION) 1000-powerpc-link-with-math-lib.patch.conditional
# gcc is a special package, not named gcc, but gcc-initial and
# gcc-final, but patches are nonetheless stored in package/gcc in the
# tree, and potentially in BR2_GLOBAL_PATCH_DIR directories as well.
More information about the buildroot