diff options
author | Alexander Kanavin <alex@linutronix.de> | 2021-09-08 20:01:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-11 18:41:37 +0100 |
commit | c68cc9095b8f0b18574961fbaf04ceb8a5c0980d (patch) | |
tree | 20b9d53b55bbe10b27f1730a720b428e7a02c1fb /meta/recipes-graphics/spir | |
parent | c9690cc3c4743ca661b0b2b9d0e98c7745b476b0 (diff) | |
download | poky-c68cc9095b8f0b18574961fbaf04ceb8a5c0980d.tar.gz |
spirv-tools: update 2021.2 -> 2021.3
Drop 0001-fix-strncpy-bound-error.patch; issue fixed upstream.
Bump spirv-headers revision to avoid outdated headers causing
build errors.
(From OE-Core rev: b1a6ac721fba17afa09f4da6c0c01730228b129c)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/spir')
-rw-r--r-- | meta/recipes-graphics/spir/files/0001-fix-strncpy-bound-error.patch | 30 | ||||
-rw-r--r-- | meta/recipes-graphics/spir/spirv-headers_1.5.4.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/spir/spirv-tools_2021.3.bb (renamed from meta/recipes-graphics/spir/spirv-tools_2021.2.bb) | 6 |
3 files changed, 3 insertions, 35 deletions
diff --git a/meta/recipes-graphics/spir/files/0001-fix-strncpy-bound-error.patch b/meta/recipes-graphics/spir/files/0001-fix-strncpy-bound-error.patch deleted file mode 100644 index bc59faa37b..0000000000 --- a/meta/recipes-graphics/spir/files/0001-fix-strncpy-bound-error.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 1ba007583b83468494c4146bcb7267d863de6a7b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 26 Feb 2021 23:54:10 -0800 | ||
4 | Subject: [PATCH] fix strncpy bound error | ||
5 | |||
6 | This patch fixes the following error while using gcc 11 | ||
7 | error: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/KhronosGroup/SPIRV-Tools/pull/4151] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | source/diagnostic.cpp | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/source/diagnostic.cpp b/source/diagnostic.cpp | ||
16 | index edc27c8fd..77c29d70c 100644 | ||
17 | --- a/source/diagnostic.cpp | ||
18 | +++ b/source/diagnostic.cpp | ||
19 | @@ -37,7 +37,7 @@ spv_diagnostic spvDiagnosticCreate(const spv_position position, | ||
20 | diagnostic->position = *position; | ||
21 | diagnostic->isTextSource = false; | ||
22 | memset(diagnostic->error, 0, length); | ||
23 | - strncpy(diagnostic->error, message, length); | ||
24 | + memcpy(diagnostic->error, message, length); | ||
25 | return diagnostic; | ||
26 | } | ||
27 | |||
28 | -- | ||
29 | 2.30.1 | ||
30 | |||
diff --git a/meta/recipes-graphics/spir/spirv-headers_1.5.4.bb b/meta/recipes-graphics/spir/spirv-headers_1.5.4.bb index 7a43af5e6b..8f8206d15c 100644 --- a/meta/recipes-graphics/spir/spirv-headers_1.5.4.bb +++ b/meta/recipes-graphics/spir/spirv-headers_1.5.4.bb | |||
@@ -7,7 +7,7 @@ HOMEPAGE = "https://www.khronos.org/registry/spir-v" | |||
7 | LICENSE = "MIT" | 7 | LICENSE = "MIT" |
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c938b85bceb8fb26c1a807f28a52ae2d" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c938b85bceb8fb26c1a807f28a52ae2d" |
9 | 9 | ||
10 | SRCREV = "bcf55210f13a4fa3c3d0963b509ff1070e434c79" | 10 | SRCREV = "6cae8216a6ea19ff3f237af01e54378c1ff81fcd" |
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Headers;protocol=https" | 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Headers;protocol=https" |
12 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" | 12 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" |
13 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
diff --git a/meta/recipes-graphics/spir/spirv-tools_2021.2.bb b/meta/recipes-graphics/spir/spirv-tools_2021.3.bb index f55bd5194a..62330f285d 100644 --- a/meta/recipes-graphics/spir/spirv-tools_2021.2.bb +++ b/meta/recipes-graphics/spir/spirv-tools_2021.3.bb | |||
@@ -7,10 +7,8 @@ SECTION = "graphics" | |||
7 | LICENSE = "Apache-2.0" | 7 | LICENSE = "Apache-2.0" |
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
9 | 9 | ||
10 | SRCREV = "e198c6a785d388db68eb9166b43ac5e5208fd5cc" | 10 | SRCREV = "1fbed83c8aab8517d821fcb4164c08567951938f" |
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git \ | 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git" |
12 | file://0001-fix-strncpy-bound-error.patch \ | ||
13 | " | ||
14 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" | 12 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" |
15 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
16 | 14 | ||