diff options
author | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
---|---|---|
committer | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
commit | 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch) | |
tree | cd70a267a5ef105ba32f200aa088e281fbd85747 /bsp/meta-freescale/recipes-bsp/imx-test/imx-test | |
parent | 4204309872da5cb401cbb2729d9e2d4869a87f42 (diff) |
basesystem-jjsandbox/ToshikazuOhiwa/master-jj
recipes
Diffstat (limited to 'bsp/meta-freescale/recipes-bsp/imx-test/imx-test')
2 files changed, 39 insertions, 27 deletions
diff --git a/bsp/meta-freescale/recipes-bsp/imx-test/imx-test/0001-mxc_v4l2_test-fix-compilation-error-produced-by-gcc9.patch b/bsp/meta-freescale/recipes-bsp/imx-test/imx-test/0001-mxc_v4l2_test-fix-compilation-error-produced-by-gcc9.patch new file mode 100644 index 00000000..3fb9d4ef --- /dev/null +++ b/bsp/meta-freescale/recipes-bsp/imx-test/imx-test/0001-mxc_v4l2_test-fix-compilation-error-produced-by-gcc9.patch @@ -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 + diff --git a/bsp/meta-freescale/recipes-bsp/imx-test/imx-test/0001-test-Makefile-Add-include-path-to-CC-command.patch b/bsp/meta-freescale/recipes-bsp/imx-test/imx-test/0001-test-Makefile-Add-include-path-to-CC-command.patch deleted file mode 100644 index 8387a17c..00000000 --- a/bsp/meta-freescale/recipes-bsp/imx-test/imx-test/0001-test-Makefile-Add-include-path-to-CC-command.patch +++ /dev/null @@ -1,27 +0,0 @@ -From d289d905c64882c58e3b99f74f68e72f9100115e Mon Sep 17 00:00:00 2001 -From: Fabio Berton <fabio.berton@ossystems.com.br> -Date: Tue, 12 Jun 2018 14:58:40 -0300 -Subject: [PATCH] test/Makefile: Add include path to CC command -Organization: O.S. Systems Software LTDA. - -Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> ---- - test/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/test/Makefile b/test/Makefile -index f1cfa2a..4f14d2c 100644 ---- a/test/Makefile -+++ b/test/Makefile -@@ -12,7 +12,7 @@ ALL_OBJS := - - %.o: %.c - @echo " CC $@" -- $(Q)$(CC) -c $(CFLAGS) $< -o $@ -+ $(Q)$(CC) -c $(CFLAGS) $(INC) $< -o $@ - - - # This creates the build and copy rules for one executable. Because we --- -2.17.1 - |