]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-test: update test package version to imx_4.19.35_1.1.0
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Wed, 4 Dec 2019 14:23:36 +0000 (14:23 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 4 Dec 2019 19:34:50 +0000 (16:34 -0300)
Update the imx-test package branch to imx_4.19.35_1.1.0 which matches
the latest linux-imx kernel release (uses same branch naming).

Additionally, introduce the patch that solves trivial compilation issue
under gcc9.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
recipes-bsp/imx-test/imx-test/0001-mxc_v4l2_test-fix-compilation-error-produced-by-gcc9.patch [new file with mode: 0644]
recipes-bsp/imx-test/imx-test_git.bb

diff --git a/recipes-bsp/imx-test/imx-test/0001-mxc_v4l2_test-fix-compilation-error-produced-by-gcc9.patch b/recipes-bsp/imx-test/imx-test/0001-mxc_v4l2_test-fix-compilation-error-produced-by-gcc9.patch
new file mode 100644 (file)
index 0000000..3fb9d4e
--- /dev/null
@@ -0,0 +1,39 @@
+From d2e35983281a811b38e540ab82e7643322e84aab Mon Sep 17 00:00:00 2001
+From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
+Date: Wed, 4 Dec 2019 14:17:50 +0000
+Subject: [PATCH] mxc_v4l2_test: fix compilation error produced by gcc9
+
+Fix trivial compilation error when GCC9 is used:
+
+error: call to '__open_missing_mode' declared with attribute error: open
+with O_CREAT or O_TMPFILE in second argument needs 3 arguments
+
+This is now caused by not explicitly supplying the mode when O_CREAT is
+used as disposition.
+
+Upstream-Status: Pending
+
+Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
+---
+ test/mxc_v4l2_test/mx8_v4l2_cap_drm.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/test/mxc_v4l2_test/mx8_v4l2_cap_drm.c b/test/mxc_v4l2_test/mx8_v4l2_cap_drm.c
+index 6e10744..d63b2db 100644
+--- a/test/mxc_v4l2_test/mx8_v4l2_cap_drm.c
++++ b/test/mxc_v4l2_test/mx8_v4l2_cap_drm.c
+@@ -561,11 +561,7 @@ static int open_save_file(struct video_channel *video_ch)
+       for (i = 0; i < NUM_SENSORS; i++) {
+               if ((g_cam >> i) & 0x01) {
+-#ifdef BUILD_FOR_ANDROID
+                       fd = open(video_ch[i].save_file_name, O_RDWR | O_CREAT, 0660);
+-#else
+-                      fd = open(video_ch[i].save_file_name, O_RDWR | O_CREAT);
+-#endif
+                       if (fd < 0) {
+                                v4l2_err("Channel[%d] unable to create recording file\n", i);
+                                while (i)
+-- 
+2.17.1
+
index 084a2b0469abf983b2861711e4e9b14f077d1f56..184ee4061679e777dfff9bd54128c8fa6993f663 100644 (file)
@@ -16,12 +16,13 @@ DEPENDS_append_imxvpu = " virtual/imxvpu"
 PE = "1"
 PV = "7.0+${SRCPV}"
 
-SRCBRANCH = "imx_4.14.98_2.0.0_ga"
+SRCBRANCH = "imx_4.19.35_1.1.0"
 SRC_URI = " \
     git://source.codeaurora.org/external/imx/imx-test.git;protocol=https;branch=${SRCBRANCH} \
+    file://0001-mxc_v4l2_test-fix-compilation-error-produced-by-gcc9.patch \
     file://memtool_profile \
 "
-SRCREV = "d32727a9d7ef2543729c149a713db24b8f5c2aa8"
+SRCREV = "709d14b037e7a45af018875c4a880f8f9c198288"
 S = "${WORKDIR}/git"
 
 inherit module-base use-imx-headers