From bf04a411a724db5d9672b2e4f5f9b7331eb427a6 Mon Sep 17 00:00:00 2001 From: Giulio Date: Wed, 9 Sep 2020 13:21:11 +0200 Subject: [PATCH] Patch for PHP build - remove aarch64_crc32 because it's not supported by uclibc. Patch fix for uboot --- ...arch64-crc32-not-available-in-uclibc.patch | 15 +++++++++++ .../0000-Add-imx8mm-tgr-support.patch | 27 +++++++++---------- 2 files changed, 28 insertions(+), 14 deletions(-) create mode 100644 buildroot/board/tiesse/tgr/packages-patches/php/1000-disable-aarch64-crc32-not-available-in-uclibc.patch mode change 100755 => 100644 buildroot/board/tiesse/tgr/uboot-patches/0000-Add-imx8mm-tgr-support.patch diff --git a/buildroot/board/tiesse/tgr/packages-patches/php/1000-disable-aarch64-crc32-not-available-in-uclibc.patch b/buildroot/board/tiesse/tgr/packages-patches/php/1000-disable-aarch64-crc32-not-available-in-uclibc.patch new file mode 100644 index 0000000..d94de45 --- /dev/null +++ b/buildroot/board/tiesse/tgr/packages-patches/php/1000-disable-aarch64-crc32-not-available-in-uclibc.patch @@ -0,0 +1,15 @@ +--- php/configure.ac 2020-09-09 11:43:11.885354027 +0200 ++++ php/configure.ac 2020-09-09 11:43:44.893273503 +0200 +@@ -720,12 +720,6 @@ + PHP_CRYPT_R_STYLE + fi + +-AC_CACHE_CHECK([for aarch64 CRC32 API], ac_cv_func___crc32d, +-[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]],[[__crc32d(0, 0);]])],[ac_cv_func___crc32d=yes],[ac_cv_func___crc32d="no"])]) +-if test "$ac_cv_func___crc32d" = "yes"; then +- AC_DEFINE([HAVE_AARCH64_CRC32], [1], [Define when aarch64 CRC32 API is available.]) +-fi +- + dnl Check for asm goto support. + AC_CACHE_CHECK([for asm goto], ac_cv__asm_goto, + [AC_RUN_IFELSE([AC_LANG_SOURCE([[ diff --git a/buildroot/board/tiesse/tgr/uboot-patches/0000-Add-imx8mm-tgr-support.patch b/buildroot/board/tiesse/tgr/uboot-patches/0000-Add-imx8mm-tgr-support.patch old mode 100755 new mode 100644 index b1cae59..b6da8de --- a/buildroot/board/tiesse/tgr/uboot-patches/0000-Add-imx8mm-tgr-support.patch +++ b/buildroot/board/tiesse/tgr/uboot-patches/0000-Add-imx8mm-tgr-support.patch @@ -1,17 +1,16 @@ -Index: u-boot-imx/arch/arm/dts/Makefile -=================================================================== ---- u-boot-imx.orig/arch/arm/dts/Makefile -+++ u-boot-imx/arch/arm/dts/Makefile -@@ -468,7 +468,8 @@ dtb-$(CONFIG_ARCH_IMX8M) += fsl-imx8mq-e - fsl-imx8mm-ddr3l-val.dtb \ - fsl-imx8mm-ddr4-evk.dtb \ - fsl-imx8mm-ddr4-val.dtb \ -- fsl-imx8mm-evk.dtb -+ fsl-imx8mm-evk.dtb \ -+ fsl-imx8mm-tgr.dtb - - dtb-$(CONFIG_ARCH_IMX8) += fsl-imx8dx-17x17-val.dtb \ - fsl-imx8qm-ddr4-arm2.dtb \ +Index: u-boot-imx/arch/arm/dts/Makefile +=================================================================== +--- u-boot-imx.orig/arch/arm/dts/Makefile ++++ u-boot-imx/arch/arm/dts/Makefile +@@ -630,6 +630,7 @@ + fsl-imx8mq-ddr3l-arm2.dtb \ + fsl-imx8mq-ddr4-arm2.dtb \ + fsl-imx8mm-evk.dtb \ ++ fsl-imx8mm-tgr.dtb \ + fsl-imx8mm-ddr3l-val.dtb \ + fsl-imx8mm-ddr4-evk.dtb \ + fsl-imx8mm-ddr4-val.dtb \ + fsl-imx8mm-ddr4-evk.dtb \ Index: u-boot-imx/arch/arm/dts/fsl-imx8mm-tgr.dts =================================================================== --- /dev/null