diff options
23 files changed, 701 insertions, 52 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/files/113cef897712c8b475f668f2bcf77a12db76a90e.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/files/113cef897712c8b475f668f2bcf77a12db76a90e.patch new file mode 100644 index 00000000..5edb52d0 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/files/113cef897712c8b475f668f2bcf77a12db76a90e.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From a72b1fe0c571c191d857297114e0393ce017b7ab Mon Sep 17 00:00:00 2001 | ||
2 | From: Mateusz Jablonski <mateusz.jablonski@intel.com> | ||
3 | Date: Wed, 28 Jul 2021 09:25:56 +0000 | ||
4 | Subject: [PATCH] Add missing includes | ||
5 | |||
6 | Signed-off-by: Florian Minnecker <florian.github@minnecker.com> | ||
7 | Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com> | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
11 | --- | ||
12 | shared/source/helpers/basic_math.h | 3 ++- | ||
13 | shared/source/helpers/registered_method_dispatcher.h | 1 + | ||
14 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/shared/source/helpers/basic_math.h b/shared/source/helpers/basic_math.h | ||
17 | index fd62b9e6b..f339677eb 100644 | ||
18 | --- a/shared/source/helpers/basic_math.h | ||
19 | +++ b/shared/source/helpers/basic_math.h | ||
20 | @@ -11,8 +11,9 @@ | ||
21 | #include <algorithm> | ||
22 | #include <cmath> | ||
23 | #include <cstdint> | ||
24 | +#include <cstdio> | ||
25 | #include <cstdlib> | ||
26 | -#include <stdio.h> | ||
27 | +#include <limits> | ||
28 | |||
29 | #define KB 1024uLL | ||
30 | #define MB (KB * KB) | ||
31 | diff --git a/shared/source/helpers/registered_method_dispatcher.h b/shared/source/helpers/registered_method_dispatcher.h | ||
32 | index 56f880a16..cd778fad0 100644 | ||
33 | --- a/shared/source/helpers/registered_method_dispatcher.h | ||
34 | +++ b/shared/source/helpers/registered_method_dispatcher.h | ||
35 | @@ -7,6 +7,7 @@ | ||
36 | |||
37 | #pragma once | ||
38 | |||
39 | +#include <cstddef> | ||
40 | #include <cstdint> | ||
41 | #include <functional> | ||
42 | |||
43 | -- | ||
44 | 2.37.3 | ||
45 | |||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_20.15.16524.bb b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_20.15.16524.bb index 5525b66a..eb17b642 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_20.15.16524.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_20.15.16524.bb | |||
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ae27f47fd6755510247c19e547e4c804 \ | |||
9 | file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b" | 9 | file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b" |
10 | 10 | ||
11 | SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https \ | 11 | SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https \ |
12 | file://113cef897712c8b475f668f2bcf77a12db76a90e.patch \ | ||
12 | " | 13 | " |
13 | 14 | ||
14 | SRCREV = "e0633548a9bd025c70bc7f3539eef094b1bc9ce1" | 15 | SRCREV = "e0633548a9bd025c70bc7f3539eef094b1bc9ce1" |
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-IGA-Add-missing-header.patch b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-IGA-Add-missing-header.patch new file mode 100644 index 00000000..0a4a0fd9 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-IGA-Add-missing-header.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From a36a4788a52128e5ccbec4cd29eb167153dcc8b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Diana Chen <po-yu.chen@intel.com> | ||
3 | Date: Mon, 11 Jan 2021 19:06:36 +0000 | ||
4 | Subject: [PATCH] IGA: Add missing header | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
8 | --- | ||
9 | visa/iga/IGALibrary/IR/SWSBSetter.cpp | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | diff --git a/visa/iga/IGALibrary/IR/SWSBSetter.cpp b/visa/iga/IGALibrary/IR/SWSBSetter.cpp | ||
13 | index 87f119f3b..6956edf0d 100644 | ||
14 | --- a/visa/iga/IGALibrary/IR/SWSBSetter.cpp | ||
15 | +++ b/visa/iga/IGALibrary/IR/SWSBSetter.cpp | ||
16 | @@ -27,6 +27,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
17 | #include "Traversals.hpp" | ||
18 | #include "BitSet.hpp" | ||
19 | #include <iterator> | ||
20 | +#include <limits> | ||
21 | using namespace iga; | ||
22 | |||
23 | /** | ||
24 | -- | ||
25 | 2.37.3 | ||
26 | |||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/files/4369c970d4e02258b3c53e854faaa34197124a33.patch b/dynamic-layers/clang-layer/recipes-opencl/igc/files/4369c970d4e02258b3c53e854faaa34197124a33.patch new file mode 100644 index 00000000..68131584 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/files/4369c970d4e02258b3c53e854faaa34197124a33.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 79a95322fc5ae21c3380f6455b28b931c98b2d13 Mon Sep 17 00:00:00 2001 | ||
2 | From: Marcin Naczk <marcin.naczk@intel.com> | ||
3 | Date: Tue, 22 Feb 2022 13:09:54 +0000 | ||
4 | Subject: [PATCH] Upgrade github Action build IGC | ||
5 | |||
6 | - Fix build IGC on Ubuntu 22.04 by adding missing include | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Part of: https://github.com/intel/intel-graphics-compiler/commit/4369c970d4e02258b3c53e854faaa34197124a33 | ||
10 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
11 | |||
12 | --- | ||
13 | visa/iga/IGALibrary/IR/SWSBSetter.hpp | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/visa/iga/IGALibrary/IR/SWSBSetter.hpp b/visa/iga/IGALibrary/IR/SWSBSetter.hpp | ||
17 | index 5a7ad75c0..02d52add2 100644 | ||
18 | --- a/visa/iga/IGALibrary/IR/SWSBSetter.hpp | ||
19 | +++ b/visa/iga/IGALibrary/IR/SWSBSetter.hpp | ||
20 | @@ -32,6 +32,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
21 | #include "Operand.hpp" | ||
22 | #include "../ErrorHandler.hpp" | ||
23 | #include "RegDeps.hpp" | ||
24 | +#include <limits> | ||
25 | |||
26 | namespace iga | ||
27 | { | ||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/files/a58dd6de4c29595a0f93cff167b487d777e4559e.patch b/dynamic-layers/clang-layer/recipes-opencl/igc/files/a58dd6de4c29595a0f93cff167b487d777e4559e.patch new file mode 100644 index 00000000..b88e9678 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/files/a58dd6de4c29595a0f93cff167b487d777e4559e.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From a58dd6de4c29595a0f93cff167b487d777e4559e Mon Sep 17 00:00:00 2001 | ||
2 | From: "Szymichowski, Pawel" <pawel.szymichowski@intel.com> | ||
3 | Date: Wed, 8 Apr 2020 08:24:05 -0700 | ||
4 | Subject: [PATCH] Changes in code. | ||
5 | |||
6 | Change-Id: Ica75407e834f6b3439912bd0b47a6b30a6521fc7 | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
10 | --- | ||
11 | visa/iga/IGALibrary/api/igax.hpp | 21 ++++++++++++--------- | ||
12 | 1 file changed, 12 insertions(+), 9 deletions(-) | ||
13 | |||
14 | diff --git a/visa/iga/IGALibrary/api/igax.hpp b/visa/iga/IGALibrary/api/igax.hpp | ||
15 | index 4f1c680c6a9..6d17cd99b6a 100644 | ||
16 | --- a/visa/iga/IGALibrary/api/igax.hpp | ||
17 | +++ b/visa/iga/IGALibrary/api/igax.hpp | ||
18 | @@ -492,16 +492,19 @@ inline iga::Op OpSpec::op() const | ||
19 | } | ||
20 | |||
21 | |||
22 | -#define IGA_OPSPEC_STRING_GETTER(API, INITSIZE) { \ | ||
23 | - char _staticBuf[INITSIZE]; \ | ||
24 | - char *strPtr = &_staticBuf[0]; \ | ||
25 | - size_t strCap = sizeof(_staticBuf); \ | ||
26 | - IGA_CHECKED_CALL(API, m_op, strPtr, &strCap); \ | ||
27 | - if (strCap > sizeof(_staticBuf)) { \ | ||
28 | - strPtr = (char *)alloca(strCap); \ | ||
29 | +#define IGA_OPSPEC_STRING_GETTER(API, INITSIZE) { \ | ||
30 | + char _staticBuf[INITSIZE]; \ | ||
31 | + char *strPtr = &_staticBuf[0]; \ | ||
32 | + size_t strCap = sizeof(_staticBuf); \ | ||
33 | + IGA_CHECKED_CALL(API, m_op, strPtr, &strCap); \ | ||
34 | + if (strCap > sizeof(_staticBuf)) { \ | ||
35 | + strPtr = (char *)malloc(strCap); \ | ||
36 | IGA_CHECKED_CALL(API, m_op, strPtr, &strCap); \ | ||
37 | - } \ | ||
38 | - return std::string(strPtr); \ | ||
39 | + std::string res(strPtr); \ | ||
40 | + free(strPtr); \ | ||
41 | + return res; \ | ||
42 | + } \ | ||
43 | + return std::string(strPtr); \ | ||
44 | } | ||
45 | inline std::string OpSpec::menmonic() const | ||
46 | IGA_OPSPEC_STRING_GETTER(iga_opspec_mnemonic, 16); | ||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-header.patch b/dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-header.patch new file mode 100644 index 00000000..6efd51bc --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-header.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 59d5ba1517c48a9e629994917a6e90207df26b08 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruno Pagani <bruno.n.pagani@gmail.com> | ||
3 | Date: Mon, 21 Feb 2022 12:32:25 +0000 | ||
4 | Subject: [PATCH] Fix missing include | ||
5 | |||
6 | Same as 6c805b2 | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
10 | |||
11 | --- | ||
12 | visa/LocalScheduler/SWSB_G4IR.cpp | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/visa/LocalScheduler/SWSB_G4IR.cpp b/visa/LocalScheduler/SWSB_G4IR.cpp | ||
16 | index 0ef7961a0..bb631117d 100644 | ||
17 | --- a/visa/LocalScheduler/SWSB_G4IR.cpp | ||
18 | +++ b/visa/LocalScheduler/SWSB_G4IR.cpp | ||
19 | @@ -26,6 +26,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
20 | |||
21 | #include <fstream> | ||
22 | #include <functional> | ||
23 | +#include <limits> | ||
24 | #include <sstream> | ||
25 | #include "SWSB_G4IR.h" | ||
26 | #include "../G4_Opcode.h" | ||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb index 6cfa0b6d..5474f8a7 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb | |||
@@ -9,6 +9,10 @@ LIC_FILES_CHKSUM = "file://IGC/BiFModule/Implementation/ExternalLibraries/libclc | |||
9 | 9 | ||
10 | SRC_URI = "git://github.com/intel/intel-graphics-compiler.git;protocol=https; \ | 10 | SRC_URI = "git://github.com/intel/intel-graphics-compiler.git;protocol=https; \ |
11 | file://0001-skip-execution-of-ElfPackager.patch \ | 11 | file://0001-skip-execution-of-ElfPackager.patch \ |
12 | file://a58dd6de4c29595a0f93cff167b487d777e4559e.patch \ | ||
13 | file://0001-IGA-Add-missing-header.patch \ | ||
14 | file://4369c970d4e02258b3c53e854faaa34197124a33.patch \ | ||
15 | file://fix-header.patch \ | ||
12 | " | 16 | " |
13 | 17 | ||
14 | SRCREV = "577887bf74c51a6084058836720fe58f8c35ca58" | 18 | SRCREV = "577887bf74c51a6084058836720fe58f8c35ca58" |
diff --git a/dynamic-layers/meta-python/recipes-opencv/dldt/dldt-model-optimizer_2020r1.bb b/dynamic-layers/meta-python/recipes-opencv/dldt/dldt-model-optimizer_2020r1.bb index 26068acc..feeb036b 100644 --- a/dynamic-layers/meta-python/recipes-opencv/dldt/dldt-model-optimizer_2020r1.bb +++ b/dynamic-layers/meta-python/recipes-opencv/dldt/dldt-model-optimizer_2020r1.bb | |||
@@ -5,7 +5,7 @@ environment, performs static model analysis, and adjusts deep \ | |||
5 | learning models for optimal execution on end-point target devices." | 5 | learning models for optimal execution on end-point target devices." |
6 | HOMEPAGE = "https://01.org/openvinotoolkit" | 6 | HOMEPAGE = "https://01.org/openvinotoolkit" |
7 | 7 | ||
8 | SRC_URI = "git://github.com/opencv/dldt.git;protocol=git;branch=2020 \ | 8 | SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=https;lfs=0 \ |
9 | " | 9 | " |
10 | SRCREV = "b2140c083a068a63591e8c2e9b5f6b240790519d" | 10 | SRCREV = "b2140c083a068a63591e8c2e9b5f6b240790519d" |
11 | 11 | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2011.0.0.0.bb b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2011.0.0.0.bb index d5793500..bdd5aafc 100644 --- a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2011.0.0.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2011.0.0.0.bb | |||
@@ -10,7 +10,7 @@ COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | |||
10 | 10 | ||
11 | COMPATIBLE_HOST_libc-musl = "null" | 11 | COMPATIBLE_HOST_libc-musl = "null" |
12 | 12 | ||
13 | inherit cmake systemd | 13 | inherit cmake systemd features_check |
14 | 14 | ||
15 | DEPENDS = "metee ace xerces-c libnl libxml2 glib-2.0 glib-2.0-native connman" | 15 | DEPENDS = "metee ace xerces-c libnl libxml2 glib-2.0 glib-2.0-native connman" |
16 | 16 | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2020r1.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2020r1.bb index 42d223c9..a0244227 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2020r1.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2020r1.bb | |||
@@ -4,7 +4,7 @@ DESCRIPTION = "This toolkit allows developers to deploy pre-trained \ | |||
4 | deep learning models through a high-level C++ Inference Engine API \ | 4 | deep learning models through a high-level C++ Inference Engine API \ |
5 | integrated with application logic." | 5 | integrated with application logic." |
6 | 6 | ||
7 | SRC_URI = "git://github.com/opencv/dldt.git;protocol=git;branch=2020 \ | 7 | SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=https;lfs=0 \ |
8 | https://download.01.org/opencv/2020/openvinotoolkit/2020.1/inference_engine/firmware_usb-ma2450_942_R10.15.zip;name=ma2450 \ | 8 | https://download.01.org/opencv/2020/openvinotoolkit/2020.1/inference_engine/firmware_usb-ma2450_942_R10.15.zip;name=ma2450 \ |
9 | https://download.01.org/opencv/2020/openvinotoolkit/2020.1/inference_engine/firmware_pcie-ma248x_942_R10.15.zip;name=ma248x \ | 9 | https://download.01.org/opencv/2020/openvinotoolkit/2020.1/inference_engine/firmware_pcie-ma248x_942_R10.15.zip;name=ma248x \ |
10 | https://download.01.org/opencv/2020/openvinotoolkit/2020.1/inference_engine/firmware_usb-ma2x8x_942_R10.15.zip;name=ma2x8x \ | 10 | https://download.01.org/opencv/2020/openvinotoolkit/2020.1/inference_engine/firmware_usb-ma2x8x_942_R10.15.zip;name=ma2x8x \ |
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Installation-and-build-fixes.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Installation-and-build-fixes.patch index c4c7bd01..d77380d2 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Installation-and-build-fixes.patch +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Installation-and-build-fixes.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1c78ff3ff1f77c78a618f7a780985cef1933bb2b Mon Sep 17 00:00:00 2001 | 1 | From 10dfcd0fb5c0f8d79981f59c9c363311143f640b Mon Sep 17 00:00:00 2001 |
2 | From: Anuj Mittal <anuj.mittal@intel.com> | 2 | From: Anuj Mittal <anuj.mittal@intel.com> |
3 | Date: Mon, 13 Apr 2020 15:20:28 +0800 | 3 | Date: Mon, 13 Apr 2020 15:20:28 +0800 |
4 | Subject: [PATCH] Installation and build fixes | 4 | Subject: [PATCH] Installation and build fixes |
@@ -30,13 +30,14 @@ Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | |||
30 | .../clDNN/CMakeCompilerLinkerOpts.txt | 2 -- | 30 | .../clDNN/CMakeCompilerLinkerOpts.txt | 2 -- |
31 | .../thirdparty/clDNN/CMakeLists.txt | 1 - | 31 | .../thirdparty/clDNN/CMakeLists.txt | 1 - |
32 | .../clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | 2 +- | 32 | .../clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | 2 +- |
33 | .../thirdparty/clDNN/src/CMakeLists.txt | 4 ++-- | ||
33 | .../tools/compile_tool/CMakeLists.txt | 2 +- | 34 | .../tools/compile_tool/CMakeLists.txt | 2 +- |
34 | .../tools/vpu/vpu_compile/CMakeLists.txt | 4 ++-- | 35 | .../tools/vpu/vpu_compile/CMakeLists.txt | 4 ++-- |
35 | .../tools/vpu/vpu_perfcheck/CMakeLists.txt | 2 +- | 36 | .../tools/vpu/vpu_perfcheck/CMakeLists.txt | 2 +- |
36 | 20 files changed, 28 insertions(+), 53 deletions(-) | 37 | 21 files changed, 30 insertions(+), 55 deletions(-) |
37 | 38 | ||
38 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 39 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
39 | index e48cee57..e9598455 100644 | 40 | index e48cee574a7..e9598455971 100644 |
40 | --- a/CMakeLists.txt | 41 | --- a/CMakeLists.txt |
41 | +++ b/CMakeLists.txt | 42 | +++ b/CMakeLists.txt |
42 | @@ -120,8 +120,6 @@ function(build_ngraph) | 43 | @@ -120,8 +120,6 @@ function(build_ngraph) |
@@ -49,7 +50,7 @@ index e48cee57..e9598455 100644 | |||
49 | 50 | ||
50 | build_ngraph() | 51 | build_ngraph() |
51 | diff --git a/cmake/developer_package.cmake b/cmake/developer_package.cmake | 52 | diff --git a/cmake/developer_package.cmake b/cmake/developer_package.cmake |
52 | index e59edb2b..35672cac 100644 | 53 | index e59edb2b9c4..35672cac7e1 100644 |
53 | --- a/cmake/developer_package.cmake | 54 | --- a/cmake/developer_package.cmake |
54 | +++ b/cmake/developer_package.cmake | 55 | +++ b/cmake/developer_package.cmake |
55 | @@ -5,7 +5,9 @@ | 56 | @@ -5,7 +5,9 @@ |
@@ -82,7 +83,7 @@ index e59edb2b..35672cac 100644 | |||
82 | # Enable postfixes for Debug/Release builds | 83 | # Enable postfixes for Debug/Release builds |
83 | set(IE_DEBUG_POSTFIX_WIN "d") | 84 | set(IE_DEBUG_POSTFIX_WIN "d") |
84 | diff --git a/cmake/os_flags.cmake b/cmake/os_flags.cmake | 85 | diff --git a/cmake/os_flags.cmake b/cmake/os_flags.cmake |
85 | index 6f70768f..40141aca 100644 | 86 | index 6f70768f9f1..40141aca8ad 100644 |
86 | --- a/cmake/os_flags.cmake | 87 | --- a/cmake/os_flags.cmake |
87 | +++ b/cmake/os_flags.cmake | 88 | +++ b/cmake/os_flags.cmake |
88 | @@ -139,7 +139,6 @@ if(WIN32) | 89 | @@ -139,7 +139,6 @@ if(WIN32) |
@@ -94,7 +95,7 @@ index 6f70768f..40141aca 100644 | |||
94 | ie_add_compiler_flags(-fvisibility=hidden) | 95 | ie_add_compiler_flags(-fvisibility=hidden) |
95 | ie_add_compiler_flags(-fdiagnostics-show-option) | 96 | ie_add_compiler_flags(-fdiagnostics-show-option) |
96 | diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt | 97 | diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt |
97 | index d5feedb4..1ee656a1 100644 | 98 | index d5feedb498d..1ee656a18e1 100644 |
98 | --- a/inference-engine/CMakeLists.txt | 99 | --- a/inference-engine/CMakeLists.txt |
99 | +++ b/inference-engine/CMakeLists.txt | 100 | +++ b/inference-engine/CMakeLists.txt |
100 | @@ -123,12 +123,13 @@ install(FILES samples/CMakeLists.txt | 101 | @@ -123,12 +123,13 @@ install(FILES samples/CMakeLists.txt |
@@ -124,7 +125,7 @@ index d5feedb4..1ee656a1 100644 | |||
124 | APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | 125 | APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") |
125 | 126 | ||
126 | diff --git a/inference-engine/cmake/ie_parallel.cmake b/inference-engine/cmake/ie_parallel.cmake | 127 | diff --git a/inference-engine/cmake/ie_parallel.cmake b/inference-engine/cmake/ie_parallel.cmake |
127 | index 9ea885be..71733fd9 100644 | 128 | index 9ea885be37a..71733fd9d32 100644 |
128 | --- a/inference-engine/cmake/ie_parallel.cmake | 129 | --- a/inference-engine/cmake/ie_parallel.cmake |
129 | +++ b/inference-engine/cmake/ie_parallel.cmake | 130 | +++ b/inference-engine/cmake/ie_parallel.cmake |
130 | @@ -42,14 +42,8 @@ function(set_ie_threading_interface_for TARGET_NAME) | 131 | @@ -42,14 +42,8 @@ function(set_ie_threading_interface_for TARGET_NAME) |
@@ -145,7 +146,7 @@ index 9ea885be..71733fd9 100644 | |||
145 | if (WIN32) | 146 | if (WIN32) |
146 | set(omp_lib_name libiomp5md) | 147 | set(omp_lib_name libiomp5md) |
147 | diff --git a/inference-engine/include/gpu/gpu_ocl_wrapper.hpp b/inference-engine/include/gpu/gpu_ocl_wrapper.hpp | 148 | diff --git a/inference-engine/include/gpu/gpu_ocl_wrapper.hpp b/inference-engine/include/gpu/gpu_ocl_wrapper.hpp |
148 | index fce7d8f1..827e5764 100644 | 149 | index fce7d8f1784..827e5764aa7 100644 |
149 | --- a/inference-engine/include/gpu/gpu_ocl_wrapper.hpp | 150 | --- a/inference-engine/include/gpu/gpu_ocl_wrapper.hpp |
150 | +++ b/inference-engine/include/gpu/gpu_ocl_wrapper.hpp | 151 | +++ b/inference-engine/include/gpu/gpu_ocl_wrapper.hpp |
151 | @@ -21,4 +21,4 @@ | 152 | @@ -21,4 +21,4 @@ |
@@ -155,7 +156,7 @@ index fce7d8f1..827e5764 100644 | |||
155 | -#include <CL/cl2.hpp> | 156 | -#include <CL/cl2.hpp> |
156 | +#include <cl2.hpp> | 157 | +#include <cl2.hpp> |
157 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt | 158 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt |
158 | index f355e7b9..d24c7c78 100644 | 159 | index f355e7b951c..d24c7c78e6f 100644 |
159 | --- a/inference-engine/samples/CMakeLists.txt | 160 | --- a/inference-engine/samples/CMakeLists.txt |
160 | +++ b/inference-engine/samples/CMakeLists.txt | 161 | +++ b/inference-engine/samples/CMakeLists.txt |
161 | @@ -24,7 +24,7 @@ endif() | 162 | @@ -24,7 +24,7 @@ endif() |
@@ -188,7 +189,7 @@ index f355e7b9..d24c7c78 100644 | |||
188 | 189 | ||
189 | # collect all samples subdirectories | 190 | # collect all samples subdirectories |
190 | diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt | 191 | diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt |
191 | index 6d935135..fe12eeb7 100644 | 192 | index 6d935135e9d..fe12eeb7193 100644 |
192 | --- a/inference-engine/samples/common/format_reader/CMakeLists.txt | 193 | --- a/inference-engine/samples/common/format_reader/CMakeLists.txt |
193 | +++ b/inference-engine/samples/common/format_reader/CMakeLists.txt | 194 | +++ b/inference-engine/samples/common/format_reader/CMakeLists.txt |
194 | @@ -40,3 +40,5 @@ target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" | 195 | @@ -40,3 +40,5 @@ target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" |
@@ -198,7 +199,7 @@ index 6d935135..fe12eeb7 100644 | |||
198 | + | 199 | + |
199 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) | 200 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
200 | diff --git a/inference-engine/src/cldnn_engine/CMakeLists.txt b/inference-engine/src/cldnn_engine/CMakeLists.txt | 201 | diff --git a/inference-engine/src/cldnn_engine/CMakeLists.txt b/inference-engine/src/cldnn_engine/CMakeLists.txt |
201 | index 43344e7f..50beda23 100644 | 202 | index 43344e7ff07..50beda23415 100644 |
202 | --- a/inference-engine/src/cldnn_engine/CMakeLists.txt | 203 | --- a/inference-engine/src/cldnn_engine/CMakeLists.txt |
203 | +++ b/inference-engine/src/cldnn_engine/CMakeLists.txt | 204 | +++ b/inference-engine/src/cldnn_engine/CMakeLists.txt |
204 | @@ -32,6 +32,7 @@ target_include_directories(${TARGET_NAME} PRIVATE | 205 | @@ -32,6 +32,7 @@ target_include_directories(${TARGET_NAME} PRIVATE |
@@ -210,7 +211,7 @@ index 43344e7f..50beda23 100644 | |||
210 | 211 | ||
211 | # copy default global xml file describing the custom kernels and the *.cl files | 212 | # copy default global xml file describing the custom kernels and the *.cl files |
212 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | 213 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt |
213 | index 54e264c8..e3809654 100644 | 214 | index 54e264c824c..e3809654635 100644 |
214 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | 215 | --- a/inference-engine/src/inference_engine/CMakeLists.txt |
215 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | 216 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt |
216 | @@ -292,20 +292,6 @@ if(threading_tbb) | 217 | @@ -292,20 +292,6 @@ if(threading_tbb) |
@@ -247,7 +248,7 @@ index 54e264c8..e3809654 100644 | |||
247 | install(FILES $<TARGET_FILE_DIR:${TARGET_NAME}>/plugins.xml | 248 | install(FILES $<TARGET_FILE_DIR:${TARGET_NAME}>/plugins.xml |
248 | DESTINATION ${IE_CPACK_LIBRARY_PATH} | 249 | DESTINATION ${IE_CPACK_LIBRARY_PATH} |
249 | diff --git a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | 250 | diff --git a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt |
250 | index 32cb534a..858ffefc 100644 | 251 | index 32cb534a79e..858ffefcf8e 100644 |
251 | --- a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | 252 | --- a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt |
252 | +++ b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | 253 | +++ b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt |
253 | @@ -41,5 +41,5 @@ target_link_libraries(${TARGET_NAME} | 254 | @@ -41,5 +41,5 @@ target_link_libraries(${TARGET_NAME} |
@@ -258,7 +259,7 @@ index 32cb534a..858ffefc 100644 | |||
258 | + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/udev/rules.d | 259 | + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/udev/rules.d |
259 | COMPONENT myriad) | 260 | COMPONENT myriad) |
260 | diff --git a/inference-engine/tests/mock_engine/CMakeLists.txt b/inference-engine/tests/mock_engine/CMakeLists.txt | 261 | diff --git a/inference-engine/tests/mock_engine/CMakeLists.txt b/inference-engine/tests/mock_engine/CMakeLists.txt |
261 | index f3fb53e1..09fb66ce 100644 | 262 | index f3fb53e1d29..09fb66cea57 100644 |
262 | --- a/inference-engine/tests/mock_engine/CMakeLists.txt | 263 | --- a/inference-engine/tests/mock_engine/CMakeLists.txt |
263 | +++ b/inference-engine/tests/mock_engine/CMakeLists.txt | 264 | +++ b/inference-engine/tests/mock_engine/CMakeLists.txt |
264 | @@ -38,3 +38,5 @@ target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_ENGINE_PLU | 265 | @@ -38,3 +38,5 @@ target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_ENGINE_PLU |
@@ -268,7 +269,7 @@ index f3fb53e1..09fb66ce 100644 | |||
268 | + | 269 | + |
269 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | 270 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
270 | diff --git a/inference-engine/tests/unit/CMakeLists.txt b/inference-engine/tests/unit/CMakeLists.txt | 271 | diff --git a/inference-engine/tests/unit/CMakeLists.txt b/inference-engine/tests/unit/CMakeLists.txt |
271 | index a5c945ae..eabe70d3 100644 | 272 | index a5c945ae819..eabe70d3e7b 100644 |
272 | --- a/inference-engine/tests/unit/CMakeLists.txt | 273 | --- a/inference-engine/tests/unit/CMakeLists.txt |
273 | +++ b/inference-engine/tests/unit/CMakeLists.txt | 274 | +++ b/inference-engine/tests/unit/CMakeLists.txt |
274 | @@ -187,3 +187,5 @@ add_test(NAME ${TARGET_NAME} | 275 | @@ -187,3 +187,5 @@ add_test(NAME ${TARGET_NAME} |
@@ -278,7 +279,7 @@ index a5c945ae..eabe70d3 100644 | |||
278 | + | 279 | + |
279 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | 280 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) |
280 | diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt | 281 | diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt |
281 | index ec22761d..3962d924 100644 | 282 | index ec22761d0d5..3962d924fe2 100644 |
282 | --- a/inference-engine/thirdparty/CMakeLists.txt | 283 | --- a/inference-engine/thirdparty/CMakeLists.txt |
283 | +++ b/inference-engine/thirdparty/CMakeLists.txt | 284 | +++ b/inference-engine/thirdparty/CMakeLists.txt |
284 | @@ -35,14 +35,12 @@ function(build_with_lto) | 285 | @@ -35,14 +35,12 @@ function(build_with_lto) |
@@ -298,7 +299,7 @@ index ec22761d..3962d924 100644 | |||
298 | ie_developer_export_targets(pugixml_mt) | 299 | ie_developer_export_targets(pugixml_mt) |
299 | endif() | 300 | endif() |
300 | diff --git a/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt b/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt | 301 | diff --git a/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt b/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt |
301 | index 6b799cdd..91755b35 100644 | 302 | index 6b799cdd38f..91755b351e8 100644 |
302 | --- a/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt | 303 | --- a/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt |
303 | +++ b/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt | 304 | +++ b/inference-engine/thirdparty/clDNN/CMakeCompilerLinkerOpts.txt |
304 | @@ -206,7 +206,6 @@ elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) | 305 | @@ -206,7 +206,6 @@ elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) |
@@ -318,7 +319,7 @@ index 6b799cdd..91755b35 100644 | |||
318 | ALIAS WarnLevel1 WarnLevels REMOVE_GROUP | 319 | ALIAS WarnLevel1 WarnLevels REMOVE_GROUP |
319 | ALIAS WarnLevel2 "-Wall" | 320 | ALIAS WarnLevel2 "-Wall" |
320 | diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt | 321 | diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt |
321 | index b08c2744..42ca79e6 100644 | 322 | index b08c27444a9..42ca79e677c 100644 |
322 | --- a/inference-engine/thirdparty/clDNN/CMakeLists.txt | 323 | --- a/inference-engine/thirdparty/clDNN/CMakeLists.txt |
323 | +++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt | 324 | +++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt |
324 | @@ -767,7 +767,6 @@ foreach(__CLDNN_CompilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS") | 325 | @@ -767,7 +767,6 @@ foreach(__CLDNN_CompilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS") |
@@ -330,7 +331,7 @@ index b08c2744..42ca79e6 100644 | |||
330 | NoFastMath | 331 | NoFastMath |
331 | StackProtector | 332 | StackProtector |
332 | diff --git a/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp b/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | 333 | diff --git a/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp b/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp |
333 | index a9e379bd..8b822223 100644 | 334 | index a9e379bdee6..8b822223681 100644 |
334 | --- a/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | 335 | --- a/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp |
335 | +++ b/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | 336 | +++ b/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp |
336 | @@ -30,7 +30,7 @@ typedef cl_d3d11_device_set_khr cl_device_set_intel; | 337 | @@ -30,7 +30,7 @@ typedef cl_d3d11_device_set_khr cl_device_set_intel; |
@@ -342,8 +343,23 @@ index a9e379bd..8b822223 100644 | |||
342 | 343 | ||
343 | namespace cl { | 344 | namespace cl { |
344 | typedef CL_API_ENTRY cl_int(CL_API_CALL *PFN_clEnqueueAcquireMediaSurfacesINTEL)( | 345 | typedef CL_API_ENTRY cl_int(CL_API_CALL *PFN_clEnqueueAcquireMediaSurfacesINTEL)( |
346 | diff --git a/inference-engine/thirdparty/clDNN/src/CMakeLists.txt b/inference-engine/thirdparty/clDNN/src/CMakeLists.txt | ||
347 | index 99e947eeb83..5ce0fc5086a 100644 | ||
348 | --- a/inference-engine/thirdparty/clDNN/src/CMakeLists.txt | ||
349 | +++ b/inference-engine/thirdparty/clDNN/src/CMakeLists.txt | ||
350 | @@ -213,8 +213,8 @@ install(DIRECTORY "${CLDNN__API_DIR}/" | ||
351 | ) | ||
352 | # Binaries. | ||
353 | install(TARGETS "${CLDNN_BUILD__PROJ}" | ||
354 | - ARCHIVE DESTINATION "lib" | ||
355 | - LIBRARY DESTINATION "lib" | ||
356 | + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
357 | + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
358 | RUNTIME DESTINATION "bin" | ||
359 | INCLUDES DESTINATION "include/clDNN" | ||
360 | ) | ||
345 | diff --git a/inference-engine/tools/compile_tool/CMakeLists.txt b/inference-engine/tools/compile_tool/CMakeLists.txt | 361 | diff --git a/inference-engine/tools/compile_tool/CMakeLists.txt b/inference-engine/tools/compile_tool/CMakeLists.txt |
346 | index 25168bac..1c57116f 100644 | 362 | index 25168bacf58..1c57116ff04 100644 |
347 | --- a/inference-engine/tools/compile_tool/CMakeLists.txt | 363 | --- a/inference-engine/tools/compile_tool/CMakeLists.txt |
348 | +++ b/inference-engine/tools/compile_tool/CMakeLists.txt | 364 | +++ b/inference-engine/tools/compile_tool/CMakeLists.txt |
349 | @@ -48,5 +48,5 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}) | 365 | @@ -48,5 +48,5 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}) |
@@ -354,7 +370,7 @@ index 25168bac..1c57116f 100644 | |||
354 | + RUNTIME DESTINATION bin | 370 | + RUNTIME DESTINATION bin |
355 | COMPONENT core) | 371 | COMPONENT core) |
356 | diff --git a/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt b/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt | 372 | diff --git a/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt b/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt |
357 | index 4123de6f..52179fac 100644 | 373 | index 4123de6fda9..52179facafe 100644 |
358 | --- a/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt | 374 | --- a/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt |
359 | +++ b/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt | 375 | +++ b/inference-engine/tools/vpu/vpu_compile/CMakeLists.txt |
360 | @@ -50,5 +50,5 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}) | 376 | @@ -50,5 +50,5 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}) |
@@ -367,7 +383,7 @@ index 4123de6f..52179fac 100644 | |||
367 | + RUNTIME DESTINATION bin | 383 | + RUNTIME DESTINATION bin |
368 | + COMPONENT myriad) | 384 | + COMPONENT myriad) |
369 | diff --git a/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt b/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt | 385 | diff --git a/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt b/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt |
370 | index a7a801d4..b8f9e26f 100644 | 386 | index a7a801d4e41..b8f9e26f309 100644 |
371 | --- a/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt | 387 | --- a/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt |
372 | +++ b/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt | 388 | +++ b/inference-engine/tools/vpu/vpu_perfcheck/CMakeLists.txt |
373 | @@ -55,6 +55,6 @@ if(ENABLE_MYRIAD) | 389 | @@ -55,6 +55,6 @@ if(ENABLE_MYRIAD) |
@@ -379,5 +395,5 @@ index a7a801d4..b8f9e26f 100644 | |||
379 | COMPONENT myriad) | 395 | COMPONENT myriad) |
380 | endif() | 396 | endif() |
381 | -- | 397 | -- |
382 | 2.25.2 | 398 | 2.37.3 |
383 | 399 | ||
diff --git a/lib/oeqa/runtime/cases/microcode.py b/lib/oeqa/runtime/cases/microcode.py index 6ce36a6f..52c1cdb4 100644 --- a/lib/oeqa/runtime/cases/microcode.py +++ b/lib/oeqa/runtime/cases/microcode.py | |||
@@ -16,20 +16,15 @@ class MicrocodeTest(OERuntimeTestCase): | |||
16 | 16 | ||
17 | @OEHasPackage(["iucode-tool"]) | 17 | @OEHasPackage(["iucode-tool"]) |
18 | def test_microcode_update(self): | 18 | def test_microcode_update(self): |
19 | (status, output) = self.target.run('iucode_tool /lib/firmware/intel-ucode/ -tb -lS | grep rev') | 19 | (status, output) = self.target.run('iucode_tool /lib/firmware/intel-ucode/ -tb -l --scan-system=2 | grep rev') |
20 | if status: | ||
21 | self.skipTest("The iucode_tool detected no microcode for update.") | ||
22 | 20 | ||
23 | selected_microcodes = output.splitlines() | 21 | selected_microcodes = output.splitlines() |
24 | selected_rev_list = self.get_revision_from_microcode_string_list(selected_microcodes, "rev (\w*)") | 22 | selected_rev_list = self.get_revision_from_microcode_string_list(selected_microcodes, "rev (\w*)") |
25 | self.assertTrue(selected_rev_list, msg="Could not find any rev from iucode_tool selected microcode.") | ||
26 | 23 | ||
27 | (status, output) = self.target.run('dmesg | grep microcode') | 24 | (status, output) = self.target.run("dmesg | grep 'microcode updated early'") |
28 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) | ||
29 | 25 | ||
30 | updated_microcodes = output.splitlines() | 26 | updated_microcodes = output.splitlines() |
31 | updated_rev_list = self.get_revision_from_microcode_string_list(updated_microcodes, "revision=(\w*)") | 27 | updated_rev_list = self.get_revision_from_microcode_string_list(updated_microcodes, "revision (\w*)") |
32 | self.assertTrue(updated_rev_list, msg="Could not find any updated revision from microcode dmesg.") | ||
33 | 28 | ||
34 | for ul in updated_rev_list: | 29 | for ul in updated_rev_list: |
35 | self.assertTrue(ul in selected_rev_list, msg="Updated revision, %s, not in selected revision list (%s)" % | 30 | self.assertTrue(ul in selected_rev_list, msg="Updated revision, %s, not in selected revision list (%s)" % |
diff --git a/recipes-core/microcode/intel-microcode_20201118.bb b/recipes-core/microcode/intel-microcode_20240312.bb index b47c8157..483be730 100644 --- a/recipes-core/microcode/intel-microcode_20201118.bb +++ b/recipes-core/microcode/intel-microcode_20240312.bb | |||
@@ -11,12 +11,12 @@ DESCRIPTION = "The microcode data file contains the latest microcode\ | |||
11 | if the file is placed in the /etc/firmware directory of the Linux system." | 11 | if the file is placed in the /etc/firmware directory of the Linux system." |
12 | 12 | ||
13 | LICENSE = "Intel-Microcode-License" | 13 | LICENSE = "Intel-Microcode-License" |
14 | LIC_FILES_CHKSUM = "file://license;md5=6b58767419df274d2409b294ddae17e6" | 14 | LIC_FILES_CHKSUM = "file://license;md5=d8405101ec6e90c1d84b082b0c40c721" |
15 | 15 | ||
16 | SRC_URI = "git://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git;protocol=https;branch=main \ | 16 | SRC_URI = "git://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git;protocol=https;branch=main \ |
17 | " | 17 | " |
18 | 18 | ||
19 | SRCREV = "49bb67f32a2e3e631ba1a9a73da1c52e1cac7fd9" | 19 | SRCREV = "41af34500598418150aa298bb04e7edacc547897" |
20 | 20 | ||
21 | DEPENDS = "iucode-tool-native" | 21 | DEPENDS = "iucode-tool-native" |
22 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
diff --git a/recipes-core/zlib/files/CVE-2018-25032-fuzz-fixed.patch b/recipes-core/zlib/files/CVE-2018-25032-fuzz-fixed.patch new file mode 100644 index 00000000..778b3b9a --- /dev/null +++ b/recipes-core/zlib/files/CVE-2018-25032-fuzz-fixed.patch | |||
@@ -0,0 +1,351 @@ | |||
1 | From c3970bb352f4f8cdb27d31e78c558bd1eb332f48 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Adler <madler@alumni.caltech.edu> | ||
3 | Date: Tue, 17 Apr 2018 22:09:22 -0700 | ||
4 | Subject: [PATCH] Fix a bug that can crash deflate on some input when using | ||
5 | Z_FIXED. | ||
6 | |||
7 | This bug was reported by Danilo Ramos of Eideticom, Inc. It has | ||
8 | lain in wait 13 years before being found! The bug was introduced | ||
9 | in zlib 1.2.2.2, with the addition of the Z_FIXED option. That | ||
10 | option forces the use of fixed Huffman codes. For rare inputs with | ||
11 | a large number of distant matches, the pending buffer into which | ||
12 | the compressed data is written can overwrite the distance symbol | ||
13 | table which it overlays. That results in corrupted output due to | ||
14 | invalid distances, and can result in out-of-bound accesses, | ||
15 | crashing the application. | ||
16 | |||
17 | The fix here combines the distance buffer and literal/length | ||
18 | buffers into a single symbol buffer. Now three bytes of pending | ||
19 | buffer space are opened up for each literal or length/distance | ||
20 | pair consumed, instead of the previous two bytes. This assures | ||
21 | that the pending buffer cannot overwrite the symbol table, since | ||
22 | the maximum fixed code compressed length/distance is 31 bits, and | ||
23 | since there are four bytes of pending space for every three bytes | ||
24 | of symbol space. | ||
25 | |||
26 | Upstream-Status: Backport | ||
27 | [https://github.com/madler/zlib/commit/5c44459c3b28a9bd3283aaceab7c615f8020c531] | ||
28 | CVE: CVE-2018-25032 | ||
29 | Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> | ||
30 | --- | ||
31 | deflate.c | 74 ++++++++++++++++++++++++++++++++++++++++--------------- | ||
32 | deflate.h | 25 +++++++++---------- | ||
33 | trees.c | 50 +++++++++++-------------------------- | ||
34 | 3 files changed, 79 insertions(+), 70 deletions(-) | ||
35 | |||
36 | diff --git a/deflate.c b/deflate.c | ||
37 | index b5e7849..2730035 100644 | ||
38 | --- a/deflate.c | ||
39 | +++ b/deflate.c | ||
40 | @@ -237,11 +237,6 @@ int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, | ||
41 | int wrap = 1; | ||
42 | static const char my_version[] = ZLIB_VERSION; | ||
43 | |||
44 | - ushf *overlay; | ||
45 | - /* We overlay pending_buf and d_buf+l_buf. This works since the average | ||
46 | - * output size for (length,distance) codes is <= 24 bits. | ||
47 | - */ | ||
48 | - | ||
49 | if (version == Z_NULL || version[0] != my_version[0] || | ||
50 | stream_size != sizeof(z_stream)) { | ||
51 | return Z_VERSION_ERROR; | ||
52 | @@ -324,9 +319,47 @@ int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, | ||
53 | |||
54 | s->lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */ | ||
55 | |||
56 | - overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2); | ||
57 | - s->pending_buf = (uchf *) overlay; | ||
58 | - s->pending_buf_size = (ulg)s->lit_bufsize * (sizeof(ush)+2L); | ||
59 | + /* We overlay pending_buf and sym_buf. This works since the average size | ||
60 | + * for length/distance pairs over any compressed block is assured to be 31 | ||
61 | + * bits or less. | ||
62 | + * | ||
63 | + * Analysis: The longest fixed codes are a length code of 8 bits plus 5 | ||
64 | + * extra bits, for lengths 131 to 257. The longest fixed distance codes are | ||
65 | + * 5 bits plus 13 extra bits, for distances 16385 to 32768. The longest | ||
66 | + * possible fixed-codes length/distance pair is then 31 bits total. | ||
67 | + * | ||
68 | + * sym_buf starts one-fourth of the way into pending_buf. So there are | ||
69 | + * three bytes in sym_buf for every four bytes in pending_buf. Each symbol | ||
70 | + * in sym_buf is three bytes -- two for the distance and one for the | ||
71 | + * literal/length. As each symbol is consumed, the pointer to the next | ||
72 | + * sym_buf value to read moves forward three bytes. From that symbol, up to | ||
73 | + * 31 bits are written to pending_buf. The closest the written pending_buf | ||
74 | + * bits gets to the next sym_buf symbol to read is just before the last | ||
75 | + * code is written. At that time, 31*(n-2) bits have been written, just | ||
76 | + * after 24*(n-2) bits have been consumed from sym_buf. sym_buf starts at | ||
77 | + * 8*n bits into pending_buf. (Note that the symbol buffer fills when n-1 | ||
78 | + * symbols are written.) The closest the writing gets to what is unread is | ||
79 | + * then n+14 bits. Here n is lit_bufsize, which is 16384 by default, and | ||
80 | + * can range from 128 to 32768. | ||
81 | + * | ||
82 | + * Therefore, at a minimum, there are 142 bits of space between what is | ||
83 | + * written and what is read in the overlain buffers, so the symbols cannot | ||
84 | + * be overwritten by the compressed data. That space is actually 139 bits, | ||
85 | + * due to the three-bit fixed-code block header. | ||
86 | + * | ||
87 | + * That covers the case where either Z_FIXED is specified, forcing fixed | ||
88 | + * codes, or when the use of fixed codes is chosen, because that choice | ||
89 | + * results in a smaller compressed block than dynamic codes. That latter | ||
90 | + * condition then assures that the above analysis also covers all dynamic | ||
91 | + * blocks. A dynamic-code block will only be chosen to be emitted if it has | ||
92 | + * fewer bits than a fixed-code block would for the same set of symbols. | ||
93 | + * Therefore its average symbol length is assured to be less than 31. So | ||
94 | + * the compressed data for a dynamic block also cannot overwrite the | ||
95 | + * symbols from which it is being constructed. | ||
96 | + */ | ||
97 | + | ||
98 | + s->pending_buf = (uchf *) ZALLOC(strm, s->lit_bufsize, 4); | ||
99 | + s->pending_buf_size = (ulg)s->lit_bufsize * 4; | ||
100 | |||
101 | if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL || | ||
102 | s->pending_buf == Z_NULL) { | ||
103 | @@ -335,8 +368,12 @@ int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, | ||
104 | deflateEnd (strm); | ||
105 | return Z_MEM_ERROR; | ||
106 | } | ||
107 | - s->d_buf = overlay + s->lit_bufsize/sizeof(ush); | ||
108 | - s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize; | ||
109 | + s->sym_buf = s->pending_buf + s->lit_bufsize; | ||
110 | + s->sym_end = (s->lit_bufsize - 1) * 3; | ||
111 | + /* We avoid equality with lit_bufsize*3 because of wraparound at 64K | ||
112 | + * on 16 bit machines and because stored blocks are restricted to | ||
113 | + * 64K-1 bytes. | ||
114 | + */ | ||
115 | |||
116 | s->level = level; | ||
117 | s->strategy = strategy; | ||
118 | @@ -553,7 +590,7 @@ int ZEXPORT deflatePrime (strm, bits, value) | ||
119 | |||
120 | if (deflateStateCheck(strm)) return Z_STREAM_ERROR; | ||
121 | s = strm->state; | ||
122 | - if ((Bytef *)(s->d_buf) < s->pending_out + ((Buf_size + 7) >> 3)) | ||
123 | + if (s->sym_buf < s->pending_out + ((Buf_size + 7) >> 3)) | ||
124 | return Z_BUF_ERROR; | ||
125 | do { | ||
126 | put = Buf_size - s->bi_valid; | ||
127 | @@ -1125,7 +1162,6 @@ int ZEXPORT deflateCopy (dest, source) | ||
128 | #else | ||
129 | deflate_state *ds; | ||
130 | deflate_state *ss; | ||
131 | - ushf *overlay; | ||
132 | |||
133 | |||
134 | if (deflateStateCheck(source) || dest == Z_NULL) { | ||
135 | @@ -1145,8 +1181,7 @@ int ZEXPORT deflateCopy (dest, source) | ||
136 | ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte)); | ||
137 | ds->prev = (Posf *) ZALLOC(dest, ds->w_size, sizeof(Pos)); | ||
138 | ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos)); | ||
139 | - overlay = (ushf *) ZALLOC(dest, ds->lit_bufsize, sizeof(ush)+2); | ||
140 | - ds->pending_buf = (uchf *) overlay; | ||
141 | + ds->pending_buf = (uchf *) ZALLOC(dest, ds->lit_bufsize, 4); | ||
142 | |||
143 | if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL || | ||
144 | ds->pending_buf == Z_NULL) { | ||
145 | @@ -1160,8 +1195,7 @@ int ZEXPORT deflateCopy (dest, source) | ||
146 | zmemcpy(ds->pending_buf, ss->pending_buf, (uInt)ds->pending_buf_size); | ||
147 | |||
148 | ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf); | ||
149 | - ds->d_buf = overlay + ds->lit_bufsize/sizeof(ush); | ||
150 | - ds->l_buf = ds->pending_buf + (1+sizeof(ush))*ds->lit_bufsize; | ||
151 | + ds->sym_buf = ds->pending_buf + ds->lit_bufsize; | ||
152 | |||
153 | ds->l_desc.dyn_tree = ds->dyn_ltree; | ||
154 | ds->d_desc.dyn_tree = ds->dyn_dtree; | ||
155 | @@ -1717,7 +1751,7 @@ local block_state deflate_fast(s, flush) | ||
156 | FLUSH_BLOCK(s, 1); | ||
157 | return finish_done; | ||
158 | } | ||
159 | - if (s->last_lit) | ||
160 | + if (s->sym_next) | ||
161 | FLUSH_BLOCK(s, 0); | ||
162 | return block_done; | ||
163 | } | ||
164 | @@ -1848,7 +1882,7 @@ local block_state deflate_slow(s, flush) | ||
165 | FLUSH_BLOCK(s, 1); | ||
166 | return finish_done; | ||
167 | } | ||
168 | - if (s->last_lit) | ||
169 | + if (s->sym_next) | ||
170 | FLUSH_BLOCK(s, 0); | ||
171 | return block_done; | ||
172 | } | ||
173 | @@ -1923,7 +1957,7 @@ local block_state deflate_rle(s, flush) | ||
174 | FLUSH_BLOCK(s, 1); | ||
175 | return finish_done; | ||
176 | } | ||
177 | - if (s->last_lit) | ||
178 | + if (s->sym_next) | ||
179 | FLUSH_BLOCK(s, 0); | ||
180 | return block_done; | ||
181 | } | ||
182 | @@ -1962,7 +1996,7 @@ local block_state deflate_huff(s, flush) | ||
183 | FLUSH_BLOCK(s, 1); | ||
184 | return finish_done; | ||
185 | } | ||
186 | - if (s->last_lit) | ||
187 | + if (s->sym_next) | ||
188 | FLUSH_BLOCK(s, 0); | ||
189 | return block_done; | ||
190 | } | ||
191 | diff --git a/deflate.h b/deflate.h | ||
192 | index 7f31b54..8d84f8e 100644 | ||
193 | --- a/deflate.h | ||
194 | +++ b/deflate.h | ||
195 | @@ -230,7 +230,7 @@ typedef struct internal_state { | ||
196 | /* Depth of each subtree used as tie breaker for trees of equal frequency | ||
197 | */ | ||
198 | |||
199 | - uchf *l_buf; /* buffer for literals or lengths */ | ||
200 | + uchf *sym_buf; /* buffer for distances and literals/lengths */ | ||
201 | |||
202 | uInt lit_bufsize; | ||
203 | /* Size of match buffer for literals/lengths. There are 4 reasons for | ||
204 | @@ -252,13 +252,8 @@ typedef struct internal_state { | ||
205 | * - I can't count above 4 | ||
206 | */ | ||
207 | |||
208 | - uInt last_lit; /* running index in l_buf */ | ||
209 | - | ||
210 | - ushf *d_buf; | ||
211 | - /* Buffer for distances. To simplify the code, d_buf and l_buf have | ||
212 | - * the same number of elements. To use different lengths, an extra flag | ||
213 | - * array would be necessary. | ||
214 | - */ | ||
215 | + uInt sym_next; /* running index in sym_buf */ | ||
216 | + uInt sym_end; /* symbol table full when sym_next reaches this */ | ||
217 | |||
218 | ulg opt_len; /* bit length of current block with optimal trees */ | ||
219 | ulg static_len; /* bit length of current block with static trees */ | ||
220 | @@ -344,20 +339,22 @@ void ZLIB_INTERNAL bi_windup OF((deflate_state *s)); | ||
221 | |||
222 | # define _tr_tally_lit(s, c, flush) \ | ||
223 | { uch cc = (c); \ | ||
224 | - s->d_buf[s->last_lit] = 0; \ | ||
225 | - s->l_buf[s->last_lit++] = cc; \ | ||
226 | + s->sym_buf[s->sym_next++] = 0; \ | ||
227 | + s->sym_buf[s->sym_next++] = 0; \ | ||
228 | + s->sym_buf[s->sym_next++] = cc; \ | ||
229 | s->dyn_ltree[cc].Freq++; \ | ||
230 | - flush = (s->last_lit == s->lit_bufsize-1); \ | ||
231 | + flush = (s->sym_next == s->sym_end); \ | ||
232 | } | ||
233 | # define _tr_tally_dist(s, distance, length, flush) \ | ||
234 | { uch len = (uch)(length); \ | ||
235 | ush dist = (ush)(distance); \ | ||
236 | - s->d_buf[s->last_lit] = dist; \ | ||
237 | - s->l_buf[s->last_lit++] = len; \ | ||
238 | + s->sym_buf[s->sym_next++] = dist; \ | ||
239 | + s->sym_buf[s->sym_next++] = dist >> 8; \ | ||
240 | + s->sym_buf[s->sym_next++] = len; \ | ||
241 | dist--; \ | ||
242 | s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \ | ||
243 | s->dyn_dtree[d_code(dist)].Freq++; \ | ||
244 | - flush = (s->last_lit == s->lit_bufsize-1); \ | ||
245 | + flush = (s->sym_next == s->sym_end); \ | ||
246 | } | ||
247 | #else | ||
248 | # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c) | ||
249 | diff --git a/trees.c b/trees.c | ||
250 | index 7480efc..2fc7860 100644 | ||
251 | --- a/trees.c | ||
252 | +++ b/trees.c | ||
253 | @@ -343,7 +343,7 @@ local void init_block(s) | ||
254 | |||
255 | s->dyn_ltree[END_BLOCK].Freq = 1; | ||
256 | s->opt_len = s->static_len = 0L; | ||
257 | - s->last_lit = s->matches = 0; | ||
258 | + s->sym_next = s->matches = 0; | ||
259 | } | ||
260 | |||
261 | #define SMALLEST 1 | ||
262 | @@ -875,7 +875,7 @@ void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last) | ||
263 | |||
264 | Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ", | ||
265 | opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len, | ||
266 | - s->last_lit)); | ||
267 | + s->sym_next / 3)); | ||
268 | |||
269 | if (static_lenb <= opt_lenb) opt_lenb = static_lenb; | ||
270 | |||
271 | @@ -944,8 +944,9 @@ int ZLIB_INTERNAL _tr_tally (s, dist, lc) | ||
272 | unsigned dist; /* distance of matched string */ | ||
273 | unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */ | ||
274 | { | ||
275 | - s->d_buf[s->last_lit] = (ush)dist; | ||
276 | - s->l_buf[s->last_lit++] = (uch)lc; | ||
277 | + s->sym_buf[s->sym_next++] = dist; | ||
278 | + s->sym_buf[s->sym_next++] = dist >> 8; | ||
279 | + s->sym_buf[s->sym_next++] = lc; | ||
280 | if (dist == 0) { | ||
281 | /* lc is the unmatched char */ | ||
282 | s->dyn_ltree[lc].Freq++; | ||
283 | @@ -960,30 +961,7 @@ int ZLIB_INTERNAL _tr_tally (s, dist, lc) | ||
284 | s->dyn_ltree[_length_code[lc]+LITERALS+1].Freq++; | ||
285 | s->dyn_dtree[d_code(dist)].Freq++; | ||
286 | } | ||
287 | - | ||
288 | -#ifdef TRUNCATE_BLOCK | ||
289 | - /* Try to guess if it is profitable to stop the current block here */ | ||
290 | - if ((s->last_lit & 0x1fff) == 0 && s->level > 2) { | ||
291 | - /* Compute an upper bound for the compressed length */ | ||
292 | - ulg out_length = (ulg)s->last_lit*8L; | ||
293 | - ulg in_length = (ulg)((long)s->strstart - s->block_start); | ||
294 | - int dcode; | ||
295 | - for (dcode = 0; dcode < D_CODES; dcode++) { | ||
296 | - out_length += (ulg)s->dyn_dtree[dcode].Freq * | ||
297 | - (5L+extra_dbits[dcode]); | ||
298 | - } | ||
299 | - out_length >>= 3; | ||
300 | - Tracev((stderr,"\nlast_lit %u, in %ld, out ~%ld(%ld%%) ", | ||
301 | - s->last_lit, in_length, out_length, | ||
302 | - 100L - out_length*100L/in_length)); | ||
303 | - if (s->matches < s->last_lit/2 && out_length < in_length/2) return 1; | ||
304 | - } | ||
305 | -#endif | ||
306 | - return (s->last_lit == s->lit_bufsize-1); | ||
307 | - /* We avoid equality with lit_bufsize because of wraparound at 64K | ||
308 | - * on 16 bit machines and because stored blocks are restricted to | ||
309 | - * 64K-1 bytes. | ||
310 | - */ | ||
311 | + return (s->sym_next == s->sym_end); | ||
312 | } | ||
313 | |||
314 | /* =========================================================================== | ||
315 | @@ -996,13 +974,14 @@ local void compress_block(s, ltree, dtree) | ||
316 | { | ||
317 | unsigned dist; /* distance of matched string */ | ||
318 | int lc; /* match length or unmatched char (if dist == 0) */ | ||
319 | - unsigned lx = 0; /* running index in l_buf */ | ||
320 | + unsigned sx = 0; /* running index in sym_buf */ | ||
321 | unsigned code; /* the code to send */ | ||
322 | int extra; /* number of extra bits to send */ | ||
323 | |||
324 | - if (s->last_lit != 0) do { | ||
325 | - dist = s->d_buf[lx]; | ||
326 | - lc = s->l_buf[lx++]; | ||
327 | + if (s->sym_next != 0) do { | ||
328 | + dist = s->sym_buf[sx++] & 0xff; | ||
329 | + dist += (unsigned)(s->sym_buf[sx++] & 0xff) << 8; | ||
330 | + lc = s->sym_buf[sx++]; | ||
331 | if (dist == 0) { | ||
332 | send_code(s, lc, ltree); /* send a literal byte */ | ||
333 | Tracecv(isgraph(lc), (stderr," '%c' ", lc)); | ||
334 | @@ -1027,11 +1006,10 @@ local void compress_block(s, ltree, dtree) | ||
335 | } | ||
336 | } /* literal or match pair ? */ | ||
337 | |||
338 | - /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */ | ||
339 | - Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx, | ||
340 | - "pendingBuf overflow"); | ||
341 | + /* Check that the overlay between pending_buf and sym_buf is ok: */ | ||
342 | + Assert(s->pending < s->lit_bufsize + sx, "pendingBuf overflow"); | ||
343 | |||
344 | - } while (lx < s->last_lit); | ||
345 | + } while (sx < s->sym_next); | ||
346 | |||
347 | send_code(s, END_BLOCK, ltree); | ||
348 | } | ||
349 | -- | ||
350 | 2.35.1 | ||
351 | |||
diff --git a/recipes-core/zlib/files/fix-removed-last-lit.patch b/recipes-core/zlib/files/fix-removed-last-lit.patch new file mode 100644 index 00000000..238ecfbe --- /dev/null +++ b/recipes-core/zlib/files/fix-removed-last-lit.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From bf7f8fd281afee27c160cd1e904b2ff52eb9e493 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chee Yang Lee <chee.yang.lee@intel.com> | ||
3 | Date: Thu, 31 Mar 2022 22:00:10 +0800 | ||
4 | Subject: [PATCH] fix removed last_lit | ||
5 | |||
6 | last_lit removed and replaced with sym_next while fix for | ||
7 | CVE-2018-25032. causing build error for deflate_medium.c. | ||
8 | |||
9 | | deflate_medium.c: In function 'deflate_medium': | ||
10 | | deflate_medium.c:308:12: error: 'deflate_state' {aka 'struct | ||
11 | internal_state'} has no member named 'last_lit'; did you mean | ||
12 | 'last_flush'? | ||
13 | | 308 | if (s->last_lit) | ||
14 | | | ^~~~~~~~ | ||
15 | | | last_flush | ||
16 | | make: *** [Makefile:307: deflate_medium.lo] Error 1 | ||
17 | |||
18 | |||
19 | Upstream-Status: Inappropriate | ||
20 | [upstream have not taken the CVE fix patches] | ||
21 | Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> | ||
22 | --- | ||
23 | deflate_medium.c | 2 +- | ||
24 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
25 | |||
26 | diff --git a/deflate_medium.c b/deflate_medium.c | ||
27 | index 582e8b2..30f7633 100644 | ||
28 | --- a/deflate_medium.c | ||
29 | +++ b/deflate_medium.c | ||
30 | @@ -305,7 +305,7 @@ block_state deflate_medium(deflate_state *s, int flush) | ||
31 | FLUSH_BLOCK(s, 1); | ||
32 | return finish_done; | ||
33 | } | ||
34 | - if (s->last_lit) | ||
35 | + if (s->sym_next) | ||
36 | FLUSH_BLOCK(s, 0); | ||
37 | return block_done; | ||
38 | } | ||
39 | -- | ||
40 | 2.35.1 | ||
41 | |||
diff --git a/recipes-core/zlib/zlib-intel_1.2.11.1.jtkv6.3.bb b/recipes-core/zlib/zlib-intel_1.2.11.1.jtkv6.3.bb index 65303bff..038171dc 100644 --- a/recipes-core/zlib/zlib-intel_1.2.11.1.jtkv6.3.bb +++ b/recipes-core/zlib/zlib-intel_1.2.11.1.jtkv6.3.bb | |||
@@ -6,8 +6,13 @@ SUMMARY = "Zlib Compression Library (Intel-tuned)" | |||
6 | 6 | ||
7 | PROVIDES = "zlib" | 7 | PROVIDES = "zlib" |
8 | 8 | ||
9 | SRC_URI_remove = "${SOURCEFORGE_MIRROR}/libpng/${BPN}/${PV}/${BPN}-${PV}.tar.xz" | 9 | SRC_URI = "git://github.com/jtkukunas/zlib.git;protocol=https;branch=master \ |
10 | SRC_URI_prepend = "git://github.com/jtkukunas/zlib.git;protocol=git " | 10 | file://ldflags-tests.patch \ |
11 | file://run-ptest \ | ||
12 | file://CVE-2018-25032-fuzz-fixed.patch \ | ||
13 | file://fix-removed-last-lit.patch \ | ||
14 | file://CVE-2022-37434.patch \ | ||
15 | " | ||
11 | 16 | ||
12 | SRCREV = "a43a247bfa16ec5368747b5b64f11ea5ca033010" | 17 | SRCREV = "a43a247bfa16ec5368747b5b64f11ea5ca033010" |
13 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
diff --git a/recipes-kernel/intel-ethernet/ixgbe_5.7.1.bb b/recipes-kernel/intel-ethernet/ixgbe_5.7.1.bb index 1c767332..f3716877 100644 --- a/recipes-kernel/intel-ethernet/ixgbe_5.7.1.bb +++ b/recipes-kernel/intel-ethernet/ixgbe_5.7.1.bb | |||
@@ -39,3 +39,6 @@ PACKAGES += "${PN}-script" | |||
39 | FILES_${PN}-script += "${sysconfdir}/network/set_irq_affinity" | 39 | FILES_${PN}-script += "${sysconfdir}/network/set_irq_affinity" |
40 | 40 | ||
41 | EXCLUDE_FROM_WORLD = "1" | 41 | EXCLUDE_FROM_WORLD = "1" |
42 | |||
43 | # This was fixed in kernel v4.4 | ||
44 | CVE_CHECK_WHITELIST += "CVE-2015-1142857" | ||
diff --git a/recipes-kernel/intel-ethernet/ixgbevf_4.7.1.bb b/recipes-kernel/intel-ethernet/ixgbevf_4.7.1.bb index ecd974fe..8ae221bc 100644 --- a/recipes-kernel/intel-ethernet/ixgbevf_4.7.1.bb +++ b/recipes-kernel/intel-ethernet/ixgbevf_4.7.1.bb | |||
@@ -40,3 +40,6 @@ do_install_append () { | |||
40 | PACKAGES += "${PN}-script" | 40 | PACKAGES += "${PN}-script" |
41 | 41 | ||
42 | FILES_${PN}-script += "${sysconfdir}/network/set_irq_affinity" | 42 | FILES_${PN}-script += "${sysconfdir}/network/set_irq_affinity" |
43 | |||
44 | # This was fixed in kernel v4.4 | ||
45 | CVE_CHECK_WHITELIST += "CVE-2015-1142857" | ||
diff --git a/recipes-kernel/linux/linux-intel-dev.bb b/recipes-kernel/linux/linux-intel-dev.bb index 4da6e3b9..12dda6cb 100644 --- a/recipes-kernel/linux/linux-intel-dev.bb +++ b/recipes-kernel/linux/linux-intel-dev.bb | |||
@@ -6,7 +6,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-intel:" | |||
6 | SRC_URI = " \ | 6 | SRC_URI = " \ |
7 | git://github.com/intel/mainline-tracking.git;protocol=https;name=machine;nobranch=1; \ | 7 | git://github.com/intel/mainline-tracking.git;protocol=https;name=machine;nobranch=1; \ |
8 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=${KMETA_BRANCH};destsuffix=${KMETA} \ | 8 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=${KMETA_BRANCH};destsuffix=${KMETA} \ |
9 | file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch \ | 9 | file://0001-v5.19-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch \ |
10 | " | 10 | " |
11 | SRC_URI_append_core2-32-intel-common = " file://disable_skylake_sound.cfg" | 11 | SRC_URI_append_core2-32-intel-common = " file://disable_skylake_sound.cfg" |
12 | 12 | ||
@@ -15,13 +15,13 @@ KCONF_BSP_AUDIT_LEVEL = "2" | |||
15 | 15 | ||
16 | KMETA_BRANCH = "master" | 16 | KMETA_BRANCH = "master" |
17 | 17 | ||
18 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | 18 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
19 | 19 | ||
20 | DEPENDS += "elfutils-native openssl-native util-linux-native" | 20 | DEPENDS += "elfutils-native openssl-native util-linux-native" |
21 | 21 | ||
22 | LINUX_VERSION ?= "5.5-rc3" | 22 | LINUX_VERSION ?= "5.19.0" |
23 | SRCREV_machine ?= "0c5d381c6f1ebd88b4da2c3392f86d1611daba84" | 23 | SRCREV_machine ?= "270ddbd02fe9e1761ebccf792acadbb3cd52b69f" |
24 | SRCREV_meta ?= "1b65db46af4e00e257a6be18cb06736cb83d54dd" | 24 | SRCREV_meta ?= "423df1333e1e2a0c2bff9b29d40d16d74b775a79" |
25 | 25 | ||
26 | LINUX_VERSION_EXTENSION ?= "-mainline-tracking-${LINUX_KERNEL_TYPE}" | 26 | LINUX_VERSION_EXTENSION ?= "-mainline-tracking-${LINUX_KERNEL_TYPE}" |
27 | PV = "${LINUX_VERSION}+git${SRCPV}" | 27 | PV = "${LINUX_VERSION}+git${SRCPV}" |
diff --git a/recipes-kernel/linux/linux-intel-rt_5.4.bb b/recipes-kernel/linux/linux-intel-rt_5.4.bb index ed9ddb7a..15c8febf 100644 --- a/recipes-kernel/linux/linux-intel-rt_5.4.bb +++ b/recipes-kernel/linux/linux-intel-rt_5.4.bb | |||
@@ -17,8 +17,13 @@ KMETA_BRANCH = "yocto-5.4" | |||
17 | 17 | ||
18 | DEPENDS += "elfutils-native openssl-native util-linux-native" | 18 | DEPENDS += "elfutils-native openssl-native util-linux-native" |
19 | 19 | ||
20 | LINUX_VERSION ?= "5.4.70" | 20 | LINUX_VERSION ?= "5.4.209" |
21 | SRCREV_machine ?= "6f0f7e5dd27c1798d0d58ccdf3cccebf79aef8a0" | 21 | SRCREV_machine ?= "70a06857dca28633fad857b852c6c86189438afb" |
22 | SRCREV_meta ?= "b8c82ba37370e4698ff0c42f3e54b8b4f2fb4ac0" | 22 | SRCREV_meta ?= "c917f683a6394ae00f81139ae57ae0112d4b7528" |
23 | 23 | ||
24 | LINUX_KERNEL_TYPE = "preempt-rt" | 24 | LINUX_KERNEL_TYPE = "preempt-rt" |
25 | |||
26 | # Kernel config 'CONFIG_GPIO_LYNXPOINT' goes by a different name 'CONFIG_PINCTRL_LYNXPOINT' in | ||
27 | # linux-intel 5.4 specifically. This causes a warning during kernel config audit. Suppress the | ||
28 | # harmless warning for now. | ||
29 | KCONF_BSP_AUDIT_LEVEL = "0" | ||
diff --git a/recipes-kernel/linux/linux-intel/0001-v5.19-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch b/recipes-kernel/linux/linux-intel/0001-v5.19-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch new file mode 100644 index 00000000..0ebbb008 --- /dev/null +++ b/recipes-kernel/linux/linux-intel/0001-v5.19-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From ecb938c19d20543382c9bbc42588c29b5ebfd3ed Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
3 | Date: Fri, 12 Aug 2022 13:12:18 +0800 | ||
4 | Subject: [PATCH] menuconfig,mconf-cfg: Allow specification of ncurses location | ||
5 | |||
6 | In some cross build environments such as the Yocto Project build | ||
7 | environment it provides an ncurses library that is compiled | ||
8 | differently than the host's version. This causes display corruption | ||
9 | problems when the host's curses includes are used instead of the | ||
10 | includes from the provided compiler are overridden. There is a second | ||
11 | case where there is no curses libraries at all on the host system and | ||
12 | menuconfig will just fail entirely. | ||
13 | |||
14 | The solution is simply to allow an override variable in | ||
15 | check-lxdialog.sh for environments such as the Yocto Project. Adding | ||
16 | a CROSS_CURSES_LIB and CROSS_CURSES_INC solves the issue and allowing | ||
17 | compiling and linking against the right headers and libraries. | ||
18 | |||
19 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | ||
20 | cc: Michal Marek <mmarek@suse.cz> | ||
21 | cc: linux-kbuild@vger.kernel.org | ||
22 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
23 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
24 | --- | ||
25 | scripts/kconfig/mconf-cfg.sh | 9 +++++++++ | ||
26 | 1 file changed, 9 insertions(+) | ||
27 | |||
28 | diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh | ||
29 | index 025b565e0b7c..6514d19790e6 100755 | ||
30 | --- a/scripts/kconfig/mconf-cfg.sh | ||
31 | +++ b/scripts/kconfig/mconf-cfg.sh | ||
32 | @@ -4,6 +4,15 @@ | ||
33 | PKG="ncursesw" | ||
34 | PKG2="ncurses" | ||
35 | |||
36 | +if [ "$CROSS_CURSES_LIB" != "" ]; then | ||
37 | + echo libs=\'$CROSS_CURSES_LIB\' | ||
38 | + if [ x"$CROSS_CURSES_INC" != x ]; then | ||
39 | + echo cflags=\'$CROSS_CURSES_INC\' | ||
40 | + fi | ||
41 | + exit 0 | ||
42 | +fi | ||
43 | + | ||
44 | + | ||
45 | if [ -n "$(command -v ${HOSTPKG_CONFIG})" ]; then | ||
46 | if ${HOSTPKG_CONFIG} --exists $PKG; then | ||
47 | echo cflags=\"$(${HOSTPKG_CONFIG} --cflags $PKG)\" | ||
48 | -- | ||
49 | 2.25.1 | ||
50 | |||
diff --git a/recipes-kernel/linux/linux-intel_5.4.bb b/recipes-kernel/linux/linux-intel_5.4.bb index a079ebd2..df56b370 100644 --- a/recipes-kernel/linux/linux-intel_5.4.bb +++ b/recipes-kernel/linux/linux-intel_5.4.bb | |||
@@ -9,9 +9,9 @@ SRC_URI_append = " file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurs | |||
9 | 9 | ||
10 | DEPENDS += "elfutils-native openssl-native util-linux-native" | 10 | DEPENDS += "elfutils-native openssl-native util-linux-native" |
11 | 11 | ||
12 | LINUX_VERSION ?= "5.4.81" | 12 | LINUX_VERSION ?= "5.4.209" |
13 | SRCREV_machine ?= "b3d20595bdf59d0784cb8256445fff65df26c4ac" | 13 | SRCREV_machine ?= "ea2d8185fa954bc9c9a0c703cc4ff9c4b5cb8df5" |
14 | SRCREV_meta ?= "b8c82ba37370e4698ff0c42f3e54b8b4f2fb4ac0" | 14 | SRCREV_meta ?= "c917f683a6394ae00f81139ae57ae0112d4b7528" |
15 | 15 | ||
16 | # For Crystalforest and Romley | 16 | # For Crystalforest and Romley |
17 | KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " uio" | 17 | KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " uio" |
@@ -19,3 +19,8 @@ KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " uio" | |||
19 | 19 | ||
20 | # Functionality flags | 20 | # Functionality flags |
21 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/security/security.scc" | 21 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/security/security.scc" |
22 | |||
23 | # Kernel config 'CONFIG_GPIO_LYNXPOINT' goes by a different name 'CONFIG_PINCTRL_LYNXPOINT' in | ||
24 | # linux-intel 5.4 specifically. This causes a warning during kernel config audit. Suppress the | ||
25 | # harmless warning for now. | ||
26 | KCONF_BSP_AUDIT_LEVEL = "0" | ||
diff --git a/recipes-multimedia/libva/libva-utils-intel_2.7.1.bb b/recipes-multimedia/libva/libva-utils-intel_2.7.1.bb index 3a0d278e..6d0ad7c7 100644 --- a/recipes-multimedia/libva/libva-utils-intel_2.7.1.bb +++ b/recipes-multimedia/libva/libva-utils-intel_2.7.1.bb | |||
@@ -3,11 +3,11 @@ | |||
3 | 3 | ||
4 | require recipes-graphics/libva/libva-utils_2.6.0.bb | 4 | require recipes-graphics/libva/libva-utils_2.6.0.bb |
5 | 5 | ||
6 | SRC_URI_remove = "git://github.com/intel/libva-utils.git;branch=v2.6-branch" | 6 | SRC_URI_remove = "git://github.com/intel/libva-utils.git;branch=v2.6-branch;protocol=https" |
7 | SRC_URI_prepend = "git://github.com/intel/libva-utils.git;branch=v2.7-branch " | 7 | SRC_URI_prepend = "git://github.com/intel/libva-utils.git;branch=v2.7-branch;protocol=https " |
8 | 8 | ||
9 | SRCREV = "5a24c635f6fb2b9ac31cab3360afca50e1860812" | 9 | SRCREV = "5a24c635f6fb2b9ac31cab3360afca50e1860812" |
10 | S = "${WORKDIR}/git" | 10 | S = "${WORKDIR}/git" |
11 | 11 | ||
12 | PROVIDES = "libva-utils" | 12 | PROVIDES = "libva-utils" |
13 | RPROVIDES_${PN} += "libva-uitls" | 13 | RPROVIDES_${PN} += "libva-utils" |