[gnome-build-meta/tpollard/raspi-userland-gcc10.x] raspberrypi-4/userland-firmware.bst: Patch for GCC-10.x



commit 0536d30fea89297e269a736b1617f0ff28c2627f
Author: Tom Pollard <tom pollard codethink co uk>
Date:   Wed Jun 3 12:49:13 2020 +0100

    raspberrypi-4/userland-firmware.bst: Patch for GCC-10.x
    
    This patch is taken from meta-raspberrypi, with a known upstream
    issue https://github.com/raspberrypi/userland/issues/631

 .../boards/raspberrypi-4/bsp/userland-firmware.bst |  4 ++-
 ...-Disable-format-overflow-warning-as-error.patch | 32 ++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletion(-)
---
diff --git a/elements/boards/raspberrypi-4/bsp/userland-firmware.bst 
b/elements/boards/raspberrypi-4/bsp/userland-firmware.bst
index 01a49722..e388c344 100644
--- a/elements/boards/raspberrypi-4/bsp/userland-firmware.bst
+++ b/elements/boards/raspberrypi-4/bsp/userland-firmware.bst
@@ -3,7 +3,9 @@ kind: cmake
 sources:
 - kind: git_tag
   url: https://github.com/raspberrypi/userland/
-  track: a246147c21ae5be92ad1b85199b5b0bb447e0544
+  track: f97b1af1b3e653f9da2c1a3643479bfd469e3b74
+- kind: patch
+  path: files/raspberrypi-4/0021-cmake-Disable-format-overflow-warning-as-error.patch
 
 build-depends:
 - freedesktop-sdk.bst:public-stacks/buildsystem-cmake.bst
diff --git a/files/raspberrypi-4/0021-cmake-Disable-format-overflow-warning-as-error.patch 
b/files/raspberrypi-4/0021-cmake-Disable-format-overflow-warning-as-error.patch
new file mode 100644
index 00000000..703d3006
--- /dev/null
+++ b/files/raspberrypi-4/0021-cmake-Disable-format-overflow-warning-as-error.patch
@@ -0,0 +1,32 @@
+From 4886bd9f33727f6a16aeb3b1aa3c25e459f06581 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj khem gmail com>
+Date: Tue, 31 Mar 2020 11:51:02 -0700
+Subject: [PATCH] cmake: Disable format-overflow warning as error
+
+gcc10 complains about a check which could potentially be null
+
+build/inc/interface/vcos/vcos_logging.h:234:88: error: '%s' directive argument is null 
[-Werror=format-overflow=]
+  234 | #  define _VCOS_LOG_X(cat, _level, fmt...)   do { if (vcos_is_log_enabled(cat,_level)) 
vcos_log_impl(cat,_level,fmt); } while (0)
+      |                                                                                        
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+A potential fix would be to check for fmt not being null but lets leave
+that to experts
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj khem gmail com>
+---
+ host_applications/linux/libs/bcm_host/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/host_applications/linux/libs/bcm_host/CMakeLists.txt
++++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt
+@@ -3,7 +3,7 @@ if (WIN32)
+    set(VCOS_PLATFORM win32)
+ else ()
+    set(VCOS_PLATFORM pthreads)
+-   add_definitions(-Wall -Werror)
++   add_definitions(-Wall)
+ endif ()
+ 
+ # set this as we want all the source of vchostif to be available in libbcm_host


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]