diff options
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb index f43a791..50a6765 100644 --- a/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb +++ b/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb @@ -18,6 +18,9 @@ SRC_URI_r8a77990 = 'file://GSX_KM_E3.tar.bz2' S = "${WORKDIR}/rogue_km" +# W/A fix build errors with GCC 8.1 +SRC_URI_append = " file://0001-Silence-warnings-being-treated-as-errors.patch" + KBUILD_DIR_r8a7795 = "${S}/build/linux/r8a7795_linux" KBUILD_DIR_r8a7796 = "${S}/build/linux/r8a7796_linux" KBUILD_DIR_r8a77965 = "${S}/build/linux/r8a77965_linux" diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles/0001-Silence-warnings-being-treated-as-errors.patch b/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles/0001-Silence-warnings-being-treated-as-errors.patch new file mode 100644 index 0000000..a9ddfa5 --- /dev/null +++ b/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles/0001-Silence-warnings-being-treated-as-errors.patch @@ -0,0 +1,25 @@ +Current GFX source code will get compilation error with GCC 9.x, +because it is defined in makefile to use -Wall to enable all Warnings +check. +-Wcast-function-type, -Wsizeof-pointer-div and -Wstringop-truncation +-Wmissing-attributes -Waddress-of-packed-member +are new Warnings from GCC 9. + +Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> +--- + build/linux/buildvars.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: rogue_km/build/linux/buildvars.mk +=================================================================== +--- rogue_km.orig/build/linux/buildvars.mk ++++ rogue_km/build/linux/buildvars.mk +@@ -51,7 +51,7 @@ + + # These flags are used for kernel, User C and User C++ + # +-COMMON_FLAGS := -W -Wall ++COMMON_FLAGS := -W -Wall -Wno-cast-function-type -Wno-sizeof-pointer-div -Wno-stringop-truncation -Wno-missing-attributes -Wno-address-of-packed-member + + # Enable 64-bit file & memory handling on 32-bit systems. + # |