diff options
Diffstat (limited to 'dynamic-layers')
19 files changed, 411 insertions, 260 deletions
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch new file mode 100644 index 00000000..5ae4d543 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Fri, 7 Feb 2026 00:00:00 +0000 | ||
| 4 | Subject: [PATCH] superbuild: forward build options to ispc-stage2 | ||
| 5 | |||
| 6 | Forward the ISPCRT_BUILD_TASK_MODEL, ISPC_PREPARE_PACKAGE, | ||
| 7 | ISPC_INCLUDE_EXAMPLES, and ISPC_INCLUDE_TESTS options to the | ||
| 8 | ispc-stage2 ExternalProject so that builds can control the | ||
| 9 | tasking model, packaging behavior, and disable examples/tests. | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 13 | --- | ||
| 14 | superbuild/CMakeLists.txt | 34 ++++++++++++++++++++++++++++------ | ||
| 15 | 1 file changed, 28 insertions(+), 6 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/superbuild/CMakeLists.txt b/superbuild/CMakeLists.txt | ||
| 18 | index 048754b7..d2a3e8f9 100644 | ||
| 19 | --- a/superbuild/CMakeLists.txt | ||
| 20 | +++ b/superbuild/CMakeLists.txt | ||
| 21 | @@ -789,6 +789,30 @@ if (APPLE) | ||
| 22 | ) | ||
| 23 | endif() | ||
| 24 | endif() | ||
| 25 | +# Forward ISPCRT_BUILD_TASK_MODEL if explicitly set | ||
| 26 | +if (DEFINED ISPCRT_BUILD_TASK_MODEL) | ||
| 27 | + list(APPEND ISPC_COMMON_CMAKE_ARGS | ||
| 28 | + -DISPCRT_BUILD_TASK_MODEL=${ISPCRT_BUILD_TASK_MODEL} | ||
| 29 | + ) | ||
| 30 | +endif() | ||
| 31 | +# Forward ISPC_PREPARE_PACKAGE if explicitly set | ||
| 32 | +if (DEFINED ISPC_PREPARE_PACKAGE) | ||
| 33 | + list(APPEND ISPC_COMMON_CMAKE_ARGS | ||
| 34 | + -DISPC_PREPARE_PACKAGE=${ISPC_PREPARE_PACKAGE} | ||
| 35 | + ) | ||
| 36 | +endif() | ||
| 37 | +# Forward ISPC_INCLUDE_EXAMPLES if explicitly set | ||
| 38 | +if (DEFINED ISPC_INCLUDE_EXAMPLES) | ||
| 39 | + list(APPEND ISPC_COMMON_CMAKE_ARGS | ||
| 40 | + -DISPC_INCLUDE_EXAMPLES=${ISPC_INCLUDE_EXAMPLES} | ||
| 41 | + ) | ||
| 42 | +endif() | ||
| 43 | +# Forward ISPC_INCLUDE_TESTS if explicitly set | ||
| 44 | +if (DEFINED ISPC_INCLUDE_TESTS) | ||
| 45 | + list(APPEND ISPC_COMMON_CMAKE_ARGS | ||
| 46 | + -DISPC_INCLUDE_TESTS=${ISPC_INCLUDE_TESTS} | ||
| 47 | + ) | ||
| 48 | +endif() | ||
| 49 | |||
| 50 | list(APPEND ISPC_STAGE2_CMAKE_ARGS | ||
| 51 | ${ISPC_COMMON_CMAKE_ARGS} | ||
| 52 | @@ -856,8 +880,12 @@ else() | ||
| 53 | ) | ||
| 54 | endif() | ||
| 55 | |||
| 56 | -list(APPEND ISPC_STAGE2_CMAKE_TARGETS install package) | ||
| 57 | -if (NOT ISPC_PACKAGE_EXAMPLES) | ||
| 58 | +list(APPEND ISPC_STAGE2_CMAKE_TARGETS install) | ||
| 59 | +# Only add package targets if packaging is enabled | ||
| 60 | +if (ISPC_PREPARE_PACKAGE) | ||
| 61 | + list(APPEND ISPC_STAGE2_CMAKE_TARGETS package) | ||
| 62 | +endif() | ||
| 63 | +if (ISPC_PREPARE_PACKAGE AND NOT ISPC_PACKAGE_EXAMPLES) | ||
| 64 | list(APPEND ISPC_STAGE2_CMAKE_TARGETS | ||
| 65 | package-examples | ||
| 66 | ) | ||
| 67 | -- | ||
| 68 | 2.43.0 | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch new file mode 100644 index 00000000..52c71f03 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Tue, 11 Feb 2026 22:00:00 +0000 | ||
| 4 | Subject: [PATCH] llvm: update CMake policy CMP0116 to NEW | ||
| 5 | |||
| 6 | Update CMake policy CMP0116 from OLD to NEW to avoid deprecation | ||
| 7 | warnings. CMP0116 controls how Ninja generators transform DEPFILE | ||
| 8 | from add_custom_command(). The NEW behavior is the standard behavior | ||
| 9 | and should be used going forward. | ||
| 10 | |||
| 11 | CMake Deprecation Warning: | ||
| 12 | The OLD behavior for policy CMP0116 will be removed from a future | ||
| 13 | version of CMake. Projects should be ported to the NEW behavior. | ||
| 14 | |||
| 15 | Upstream-Status: Pending | ||
| 16 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 17 | --- | ||
| 18 | cmake/Modules/CMakePolicy.cmake | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/cmake/Modules/CMakePolicy.cmake b/cmake/Modules/CMakePolicy.cmake | ||
| 22 | index 1234567890..abcdef1234 100644 | ||
| 23 | --- a/cmake/Modules/CMakePolicy.cmake | ||
| 24 | +++ b/cmake/Modules/CMakePolicy.cmake | ||
| 25 | @@ -3,7 +3,7 @@ | ||
| 26 | # CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()` | ||
| 27 | # New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html | ||
| 28 | if(POLICY CMP0116) | ||
| 29 | - cmake_policy(SET CMP0116 OLD) | ||
| 30 | + cmake_policy(SET CMP0116 NEW) | ||
| 31 | endif() | ||
| 32 | |||
| 33 | # MSVC debug information format flags are selected via | ||
| 34 | -- | ||
| 35 | 2.34.1 | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch new file mode 100644 index 00000000..a06ec6dd --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Thu, 12 Feb 2026 10:30:00 +0800 | ||
| 4 | Subject: [PATCH] GenerateBuiltins: Fix header paths for builtin compilation | ||
| 5 | |||
| 6 | When using --target=x86_64-unknown-unknown, clang doesn't know where | ||
| 7 | to find system headers like bits/libc-header-start.h. Add explicit | ||
| 8 | -isystem paths to the builtin compilation commands to fix header | ||
| 9 | resolution. | ||
| 10 | |||
| 11 | For native builds, using the build host's sysroot is appropriate since | ||
| 12 | the builtins are compiled to LLVM IR during the build process. | ||
| 13 | |||
| 14 | Note: ispc 1.29.1 has restructured the build system and no longer uses | ||
| 15 | explicit 32/64-bit foreach loops, so the old 32-bit exclusion patch is | ||
| 16 | not needed. | ||
| 17 | |||
| 18 | Upstream-Status: Inappropriate [OE-specific] | ||
| 19 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 20 | --- | ||
| 21 | cmake/GenerateBuiltins.cmake | 12 +++++++++++- | ||
| 22 | 1 file changed, 11 insertions(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/cmake/GenerateBuiltins.cmake b/cmake/GenerateBuiltins.cmake | ||
| 25 | index e20d79b8..6c8a9f0e 100644 | ||
| 26 | --- a/cmake/GenerateBuiltins.cmake | ||
| 27 | +++ b/cmake/GenerateBuiltins.cmake | ||
| 28 | @@ -112,6 +112,17 @@ function(generate_dispatcher os) | ||
| 29 | |||
| 30 | write_dispatch_bitcode_lib(${name} ${os}) | ||
| 31 | |||
| 32 | + # Detect multiarch tuple for system headers | ||
| 33 | + execute_process( | ||
| 34 | + COMMAND ${CMAKE_C_COMPILER} -print-multiarch | ||
| 35 | + OUTPUT_VARIABLE MULTIARCH_TUPLE | ||
| 36 | + OUTPUT_STRIP_TRAILING_WHITESPACE | ||
| 37 | + ERROR_QUIET | ||
| 38 | + ) | ||
| 39 | + if(NOT MULTIARCH_TUPLE) | ||
| 40 | + set(MULTIARCH_TUPLE "x86_64-linux-gnu") | ||
| 41 | + endif() | ||
| 42 | + | ||
| 43 | set(EXTRA_OPTS "") | ||
| 44 | if (NOT WIN32) | ||
| 45 | set(EXTRA_OPTS "-fPIC") | ||
| 46 | @@ -119,7 +130,7 @@ function(generate_dispatcher os) | ||
| 47 | |||
| 48 | add_custom_command( | ||
| 49 | OUTPUT ${bc} | ||
| 50 | - COMMAND ${CLANGPP_EXECUTABLE} -x c ${DISP_TYPE} -I${CMAKE_SOURCE_DIR}/src ${EXTRA_OPTS} --target=x86_64-unknown-unknown -march=core2 -mtune=generic -O2 -emit-llvm ${input} -c -o ${bc} | ||
| 51 | + COMMAND ${CLANGPP_EXECUTABLE} -x c ${DISP_TYPE} -I${CMAKE_SOURCE_DIR}/src ${EXTRA_OPTS} --target=x86_64-unknown-unknown -isystem /usr/include -isystem /usr/include/${MULTIARCH_TUPLE} -march=core2 -mtune=generic -O2 -emit-llvm ${input} -c -o ${bc} | ||
| 52 | DEPENDS ${input} ${CMAKE_SOURCE_DIR}/src/isa.h | ||
| 53 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
| 54 | ) | ||
| 55 | -- | ||
| 56 | 2.34.1 | ||
| 57 | |||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0004-Fix-QA-Issues.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0004-Fix-QA-Issues.patch new file mode 100644 index 00000000..c00fc3f7 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0004-Fix-QA-Issues.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Wed, 12 Feb 2026 23:00:00 +0800 | ||
| 4 | Subject: [PATCH] Fix QA Issues | ||
| 5 | |||
| 6 | Stop ispc from inserting host file path in generated headers | ||
| 7 | which leads to reproducibility problems. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [OE build specific] | ||
| 10 | |||
| 11 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 12 | --- | ||
| 13 | src/header.cpp | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/src/header.cpp b/src/header.cpp | ||
| 17 | index e2084d2e..e2626865 100644 | ||
| 18 | --- a/src/header.cpp | ||
| 19 | +++ b/src/header.cpp | ||
| 20 | @@ -942,7 +942,7 @@ bool Module::writeHeader() { | ||
| 21 | return false; | ||
| 22 | } | ||
| 23 | |||
| 24 | - fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", output.header.c_str()); | ||
| 25 | + fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n"); | ||
| 26 | fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n"); | ||
| 27 | |||
| 28 | writeHeader(f); | ||
| 29 | -- | ||
| 30 | 2.34.1 | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/run-ptest b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/run-ptest new file mode 100644 index 00000000..598172d9 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/run-ptest | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | # Run ispc tests using the test suite | ||
| 4 | cd /usr/lib/ispc/ptest | ||
| 5 | |||
| 6 | # Run the test suite with minimal and fast tests | ||
| 7 | python3 run_tests.py --target=sse2-i32x4 --verbose --compiler=g++ 2>&1 | \ | ||
| 8 | while IFS= read -r line; do | ||
| 9 | case "$line" in | ||
| 10 | *"PASSED"*|*passed*) | ||
| 11 | echo "PASS: ${line}" | ||
| 12 | ;; | ||
| 13 | *"FAILED"*|*failed*|*ERROR*) | ||
| 14 | echo "FAIL: ${line}" | ||
| 15 | ;; | ||
| 16 | *) | ||
| 17 | echo "$line" | ||
| 18 | ;; | ||
| 19 | esac | ||
| 20 | done | ||
| 21 | |||
| 22 | # Check exit status | ||
| 23 | exit_code=${PIPESTATUS[0]} | ||
| 24 | if [ $exit_code -eq 0 ]; then | ||
| 25 | echo "PASS: ispc test suite completed" | ||
| 26 | else | ||
| 27 | echo "FAIL: ispc test suite failed with exit code $exit_code" | ||
| 28 | fi | ||
| 29 | |||
| 30 | exit $exit_code | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch deleted file mode 100644 index 4d583657..00000000 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | From deccc0c69c2c8759c52885be8bdda54d3cee481c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Sun, 11 Dec 2022 22:34:15 +0800 | ||
| 4 | Subject: [PATCH] Add print function to print test run status in ptest format | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [OE ptest specific] | ||
| 7 | |||
| 8 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 9 | --- | ||
| 10 | run_tests.py | 16 ++++++++++++++++ | ||
| 11 | 1 file changed, 16 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/run_tests.py b/run_tests.py | ||
| 14 | index 1cd796dd..e3ffd1ab 100755 | ||
| 15 | --- a/run_tests.py | ||
| 16 | +++ b/run_tests.py | ||
| 17 | @@ -327,6 +327,9 @@ def run_test(testname, host, target): | ||
| 18 | else: | ||
| 19 | ispc_exe_rel = add_prefix(host.ispc_cmd, host, target) | ||
| 20 | |||
| 21 | + # to reslove the error '.rodata' can not be used when making a PIE object | ||
| 22 | + ispc_exe_rel = ispc_exe_rel + " --pic" | ||
| 23 | + | ||
| 24 | # is this a test to make sure an error is issued? | ||
| 25 | want_error = (filename.find("tests_errors") != -1) | ||
| 26 | if want_error == True: | ||
| 27 | @@ -795,6 +798,17 @@ def check_compiler_exists(compiler_exe): | ||
| 28 | return | ||
| 29 | error("missing the required compiler: %s \n" % compiler_exe, 1) | ||
| 30 | |||
| 31 | +def print_test_run_status(results): | ||
| 32 | + for fstatus in results: | ||
| 33 | + if (fstatus[1] == Status.Success): | ||
| 34 | + print( "%s: %s" % ("PASS", fstatus[0])) | ||
| 35 | + elif (fstatus[1] == Status.Compfail): | ||
| 36 | + print( "%s: %s" % ("FAIL", fstatus[0])) | ||
| 37 | + elif (fstatus[1] == Status.Runfail): | ||
| 38 | + print( "%s: %s" % ("FAIL", fstatus[0])) | ||
| 39 | + elif (fstatus[1] == Status.Skip): | ||
| 40 | + print( "%s: %s" % ("SKIP", fstatus[0])) | ||
| 41 | + | ||
| 42 | def print_result(status, results, s, run_tests_log, csv): | ||
| 43 | title = StatusStr[status] | ||
| 44 | file_list = [fname for fname, fstatus in results if status == fstatus] | ||
| 45 | @@ -938,6 +952,8 @@ def run_tests(options1, args, print_version): | ||
| 46 | pass_rate = -1 | ||
| 47 | print_debug("PASSRATE (%d/%d) = %d%% \n\n" % (len(run_succeed_files), total_tests_executed, pass_rate), s, run_tests_log) | ||
| 48 | |||
| 49 | + print_test_run_status(results) | ||
| 50 | + | ||
| 51 | for status in Status: | ||
| 52 | print_result(status, results, s, run_tests_log, options.csv) | ||
| 53 | fails = [status != Status.Compfail and status != Status.Runfail for _, status in results] | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch deleted file mode 100644 index b0a76ff9..00000000 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 7beff95c11071170eb27b6fa7d0cc77588caee8e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Tue, 26 Jul 2022 15:25:10 +0800 | ||
| 4 | Subject: [PATCH] Fix QA Issues | ||
| 5 | |||
| 6 | Stop ispc from inserting host file path in generated headers which leads to reproducibility problems. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [OE build specific] | ||
| 9 | |||
| 10 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 11 | --- | ||
| 12 | src/module.cpp | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/src/module.cpp b/src/module.cpp | ||
| 16 | index e2084d2e..e2626865 100644 | ||
| 17 | --- a/src/module.cpp | ||
| 18 | +++ b/src/module.cpp | ||
| 19 | @@ -2555,7 +2555,7 @@ bool Module::writeHeader(const char *fn) { | ||
| 20 | perror("fopen"); | ||
| 21 | return false; | ||
| 22 | } | ||
| 23 | - fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", fn); | ||
| 24 | + fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n"); | ||
| 25 | fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n"); | ||
| 26 | |||
| 27 | // Create a nice guard string from the filename, turning any | ||
| 28 | @@ -2677,7 +2677,7 @@ bool Module::writeDispatchHeader(DispatchHeaderInfo *DHI) { | ||
| 29 | FILE *f = DHI->file; | ||
| 30 | |||
| 31 | if (DHI->EmitFrontMatter) { | ||
| 32 | - fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", DHI->fn); | ||
| 33 | + fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n"); | ||
| 34 | fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n"); | ||
| 35 | } | ||
| 36 | // Create a nice guard string from the filename, turning any | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch deleted file mode 100644 index f452dc50..00000000 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch +++ /dev/null | |||
| @@ -1,52 +0,0 @@ | |||
| 1 | From 16a2c22339287122d2c25d8bb33a5a51b4e6ee51 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 3 | Date: Thu, 24 Feb 2022 20:01:11 +0530 | ||
| 4 | Subject: [PATCH] cmake: don't build for 32-bit targets | ||
| 5 | |||
| 6 | Error log: | ||
| 7 | | tmp/work/corei7-64-poky-linux/ispc/1.16.0-r0/recipe-sysroot/usr/include/bits/long-double.h:23:10: fatal error: 'bits/long-double-32.h' file not found | ||
| 8 | | #include <bits/long-double-32.h> | ||
| 9 | | ^~~~~~~~~~~~~~~~~~~~~~~ | ||
| 10 | | 1 error generated. | ||
| 11 | |||
| 12 | Remove SYSTEM include search path and set -isysroot dir path | ||
| 13 | for root dir for cross compilation. | ||
| 14 | |||
| 15 | Upstream-Status: Inappropriate | ||
| 16 | |||
| 17 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 18 | --- | ||
| 19 | cmake/GenerateBuiltins.cmake | 6 +++--- | ||
| 20 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/cmake/GenerateBuiltins.cmake b/cmake/GenerateBuiltins.cmake | ||
| 23 | index f84494ed..d90cb1ec 100644 | ||
| 24 | --- a/cmake/GenerateBuiltins.cmake | ||
| 25 | +++ b/cmake/GenerateBuiltins.cmake | ||
| 26 | @@ -253,7 +253,7 @@ function(builtin_to_cpp bit os_name arch supported_archs supported_oses resultFi | ||
| 27 | # In this case headers will be installed in /usr/arm-linux-gnueabihf/include and will not be picked up | ||
| 28 | # by clang by default. So the following line adds such path explicitly. If this path doesn't exist and | ||
| 29 | # the headers can be found in other locations, this should not be a problem. | ||
| 30 | - set(includePath -isystem/usr/${debian_triple}/include) | ||
| 31 | + set(includePath -isysroot${SYSROOT_DIR}) | ||
| 32 | endif() | ||
| 33 | endif() | ||
| 34 | |||
| 35 | @@ -339,7 +339,7 @@ function (generate_target_builtins resultList) | ||
| 36 | set(regular_targets ${ARGN}) | ||
| 37 | list(FILTER regular_targets EXCLUDE REGEX wasm) | ||
| 38 | foreach (ispc_target ${regular_targets}) | ||
| 39 | - foreach (bit 32 64) | ||
| 40 | + foreach (bit 64) | ||
| 41 | foreach (os_name ${TARGET_OS_LIST_FOR_LL}) | ||
| 42 | target_ll_to_cpp(target-${ispc_target} ${bit} ${os_name} output${os_name}${bit}) | ||
| 43 | list(APPEND tmpList ${output${os_name}${bit}}) | ||
| 44 | @@ -405,7 +405,7 @@ function (generate_common_builtins resultList) | ||
| 45 | endif() | ||
| 46 | |||
| 47 | message (STATUS "ISPC will be built with support of ${supported_oses} for ${supported_archs}") | ||
| 48 | - foreach (bit 32 64) | ||
| 49 | + foreach (bit 64) | ||
| 50 | foreach (os_name "windows" "linux" "freebsd" "macos" "android" "ios" "ps4" "web") | ||
| 51 | foreach (arch "x86" "arm" "wasm") | ||
| 52 | builtin_to_cpp(${bit} ${os_name} ${arch} "${supported_archs}" "${supported_oses}" res${bit}${os_name}${arch}) | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest deleted file mode 100644 index 77d13bb4..00000000 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | python3 run_tests.py | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb deleted file mode 100644 index f40e445c..00000000 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | SUMMARY = "Intel(R) Implicit SPMD Program Compiler" | ||
| 2 | DESCRIPTION = "ispc is a compiler for a variant of the C programming language, \ | ||
| 3 | with extensions for single program, multiple data programming." | ||
| 4 | HOMEPAGE = "https://github.com/ispc/ispc" | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause & Apache-2.0-with-LLVM-exception" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=da5ecffdd210b3cf776b32b41c182e87 \ | ||
| 8 | file://third-party-programs.txt;md5=2061218c7be521556719c8b504bf9ddd" | ||
| 9 | |||
| 10 | inherit cmake python3native ptest | ||
| 11 | |||
| 12 | SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;branch=main \ | ||
| 13 | file://0002-cmake-don-t-build-for-32-bit-targets.patch \ | ||
| 14 | file://0001-Fix-QA-Issues.patch \ | ||
| 15 | file://0001-Add-print-function-to-print-test-run-status-in-ptest.patch \ | ||
| 16 | file://run-ptest \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SRCREV = "d394222aef59e4759b06e39ec160e4aba6ee5f40" | ||
| 20 | |||
| 21 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 22 | |||
| 23 | DEPENDS += " clang-native bison-native flex-native" | ||
| 24 | DEPENDS:append:class-target = " clang" | ||
| 25 | RDEPENDS:${PN}-ptest += " python3-multiprocessing" | ||
| 26 | |||
| 27 | PACKAGECONFIG ??= "tbb" | ||
| 28 | PACKAGECONFIG[tbb] = "-DISPCRT_BUILD_TASK_MODEL=TBB, -DISPCRT_BUILD_TASK_MODEL=OpenMP, tbb" | ||
| 29 | |||
| 30 | YFLAGS = '-d -t -v -y --file-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}' | ||
| 31 | |||
| 32 | do_configure:prepend() { | ||
| 33 | sed -i -e 's#\${BISON_EXECUTABLE}.*#\${BISON_EXECUTABLE} ${YFLAGS} #g' ${S}/CMakeLists.txt | ||
| 34 | sed -i -e 's#\${FLEX_EXECUTABLE}.*#\${FLEX_EXECUTABLE} \-L #g' ${S}/CMakeLists.txt | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install_ptest() { | ||
| 38 | cp -rf ${S}/run_tests.py ${D}${PTEST_PATH} | ||
| 39 | cp -rf ${S}/common.py ${D}${PTEST_PATH} | ||
| 40 | cp -rf ${S}/tests ${D}${PTEST_PATH} | ||
| 41 | cp -rf ${S}/test_static.isph ${D}${PTEST_PATH} | ||
| 42 | cp -rf ${S}/fail_db.txt ${D}${PTEST_PATH} | ||
| 43 | cp -rf ${S}/test_static.cpp ${D}${PTEST_PATH} | ||
| 44 | } | ||
| 45 | |||
| 46 | EXTRA_OECMAKE += " \ | ||
| 47 | -DISPC_INCLUDE_TESTS=OFF \ | ||
| 48 | -DISPC_INCLUDE_EXAMPLES=OFF \ | ||
| 49 | -DARM_ENABLED=OFF \ | ||
| 50 | -DISPC_CROSS=ON \ | ||
| 51 | -DISPC_ANDROID_TARGET=OFF \ | ||
| 52 | -DISPC_FREEBSD_TARGET=OFF \ | ||
| 53 | -DISPC_WINDOWS_TARGET=OFF \ | ||
| 54 | -DISPC_IOS_TARGET=OFF \ | ||
| 55 | -DISPC_PS_TARGET=OFF \ | ||
| 56 | -DSYSROOT_DIR=${STAGING_DIR} \ | ||
| 57 | -DCLANG_EXECUTABLE=${STAGING_BINDIR_NATIVE}/clang \ | ||
| 58 | -DCLANGPP_EXECUTABLE=${STAGING_BINDIR_NATIVE}/clang++ \ | ||
| 59 | -DLLVM_AS_EXECUTABLE=${STAGING_BINDIR_NATIVE}/llvm-as \ | ||
| 60 | " | ||
| 61 | |||
| 62 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.29.1.bb b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.29.1.bb new file mode 100644 index 00000000..ed36df43 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.29.1.bb | |||
| @@ -0,0 +1,164 @@ | |||
| 1 | SUMMARY = "Intel(R) Implicit SPMD Program Compiler" | ||
| 2 | DESCRIPTION = "ispc is a compiler for a variant of the C programming language, \ | ||
| 3 | with extensions for single program, multiple data programming." | ||
| 4 | HOMEPAGE = "https://github.com/ispc/ispc" | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause & Apache-2.0-with-LLVM-exception" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=da5ecffdd210b3cf776b32b41c182e87 \ | ||
| 8 | file://third-party-programs.txt;md5=853c6beec84e8f9b2b56d7ad9ad7a424" | ||
| 9 | |||
| 10 | inherit cmake python3native ptest | ||
| 11 | |||
| 12 | # Main ispc source | ||
| 13 | SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;nobranch=1;name=ispc;destsuffix=git/ispc \ | ||
| 14 | file://0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch \ | ||
| 15 | file://0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch;patchdir=${UNPACKDIR}/git/ispc \ | ||
| 16 | file://0004-Fix-QA-Issues.patch;patchdir=${UNPACKDIR}/git/ispc \ | ||
| 17 | file://run-ptest \ | ||
| 18 | " | ||
| 19 | |||
| 20 | # Bundled LLVM 20.1 and dependencies for superbuild | ||
| 21 | SRC_URI += "git://github.com/llvm/llvm-project.git;protocol=https;nobranch=1;name=llvm;destsuffix=git/llvm-project \ | ||
| 22 | git://github.com/intel/vc-intrinsics.git;protocol=https;nobranch=1;name=vc;destsuffix=git/vc-intrinsics \ | ||
| 23 | git://github.com/KhronosGroup/SPIRV-LLVM-Translator.git;protocol=https;nobranch=1;name=spirv;destsuffix=git/SPIRV-LLVM-Translator \ | ||
| 24 | file://0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch;patchdir=${UNPACKDIR}/git/llvm-project \ | ||
| 25 | " | ||
| 26 | |||
| 27 | SRCREV_ispc = "dba3a5196219f2419da2dabbd863870c46cddd80" | ||
| 28 | SRCREV_llvm = "87f0227cb60147a26a1eeb4fb06e3b505e9c7261" | ||
| 29 | SRCREV_vc = "b16218b8a00c5c1d4db32085dfab4d5eb9a03ad7" | ||
| 30 | SRCREV_spirv = "d1c69c3365dffed67124eb1692cb941cbae5bb2e" | ||
| 31 | |||
| 32 | SRCREV_FORMAT = "ispc_llvm_vc_spirv" | ||
| 33 | |||
| 34 | S = "${UNPACKDIR}/git/ispc" | ||
| 35 | |||
| 36 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 37 | |||
| 38 | # Skip QA check for file-rdeps since superbuild stage2 links against build host libraries | ||
| 39 | # This is acceptable for a build tool that runs on the build host | ||
| 40 | # Skip buildpaths since LLVM 20.1 stage2 build embeds debug paths in binaries | ||
| 41 | INSANE_SKIP:${PN} += "file-rdeps buildpaths" | ||
| 42 | INSANE_SKIP:${PN}-dbg += "buildpaths" | ||
| 43 | |||
| 44 | # Only need native tools for building, LLVM 20.1 is bundled | ||
| 45 | # ncurses needed for libedit (LLVM dependency) | ||
| 46 | DEPENDS = "bison-native flex-native ninja-native ncurses" | ||
| 47 | RDEPENDS:${PN}-ptest += "bash python3-multiprocessing" | ||
| 48 | |||
| 49 | PACKAGECONFIG ??= "" | ||
| 50 | # Default to Threads tasking model; override with TBB if enabled | ||
| 51 | PACKAGECONFIG[tbb] = "-DISPCRT_BUILD_TASK_MODEL=TBB, , tbb" | ||
| 52 | |||
| 53 | do_compile:prepend() { | ||
| 54 | # Clean OE-specific flags from toolchain files for bundled LLVM build | ||
| 55 | for toolchain in stage1-toolchain.cmake stage2-toolchain.cmake; do | ||
| 56 | [ -f ${B}/${toolchain} ] || continue | ||
| 57 | sed -i -e 's|set(CMAKE_C\(XX\)\?_FLAGS.*|set(CMAKE_C\1_FLAGS "")|g' \ | ||
| 58 | -e 's|set(CMAKE_\(EXE\|SHARED\|MODULE\)_LINKER_FLAGS.*|set(CMAKE_\1_LINKER_FLAGS "")|g' \ | ||
| 59 | ${B}/${toolchain} | ||
| 60 | done | ||
| 61 | |||
| 62 | # Use native compilers for stage1 | ||
| 63 | [ -f ${B}/stage1-toolchain.cmake ] && sed -i \ | ||
| 64 | -e "s|set(CMAKE_C_COMPILER cc)|set(CMAKE_C_COMPILER ${BUILD_CC})|" \ | ||
| 65 | -e "s|set(CMAKE_CXX_COMPILER c++)|set(CMAKE_CXX_COMPILER ${BUILD_CXX})|" \ | ||
| 66 | ${B}/stage1-toolchain.cmake && \ | ||
| 67 | echo "set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)" >> ${B}/stage1-toolchain.cmake | ||
| 68 | } | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | # Use superbuild with bundled LLVM 20.1 | ||
| 73 | OECMAKE_SOURCEPATH = "${S}/superbuild" | ||
| 74 | |||
| 75 | EXTRA_OECMAKE += " \ | ||
| 76 | --preset os \ | ||
| 77 | -G Ninja \ | ||
| 78 | -DLLVM_VERSION=20.1 \ | ||
| 79 | -DLLVM_DISABLE_ASSERTIONS=ON \ | ||
| 80 | -DLLVM_URL=${UNPACKDIR}/git/llvm-project \ | ||
| 81 | -DVC_INTRINSICS_URL=${UNPACKDIR}/git/vc-intrinsics \ | ||
| 82 | -DVC_INTRINSICS_SHA=${SRCREV_vc} \ | ||
| 83 | -DSPIRV_TRANSLATOR_URL=${UNPACKDIR}/git/SPIRV-LLVM-Translator \ | ||
| 84 | -DSPIRV_TRANSLATOR_SHA=${SRCREV_spirv} \ | ||
| 85 | -DSPIRV_TRANSLATOR_BRANCH=llvm_release_201 \ | ||
| 86 | -DISPC_CORPUS_URL=null \ | ||
| 87 | -DISPC_CROSS=ON \ | ||
| 88 | -DISPCRT_BUILD_TASK_MODEL=Threads \ | ||
| 89 | -DISPC_INCLUDE_TESTS=OFF \ | ||
| 90 | -DISPC_INCLUDE_EXAMPLES=OFF \ | ||
| 91 | -DISPC_INCLUDE_RT=OFF \ | ||
| 92 | -DISPC_INCLUDE_DPCPP=OFF \ | ||
| 93 | -DISPC_PREPARE_PACKAGE=OFF \ | ||
| 94 | -DARM_ENABLED=OFF \ | ||
| 95 | -DISPC_ANDROID_TARGET=OFF \ | ||
| 96 | -DISPC_FREEBSD_TARGET=OFF \ | ||
| 97 | -DISPC_WINDOWS_TARGET=OFF \ | ||
| 98 | -DISPC_IOS_TARGET=OFF \ | ||
| 99 | -DISPC_PS_TARGET=OFF \ | ||
| 100 | -DXE_DEPS=OFF \ | ||
| 101 | " | ||
| 102 | |||
| 103 | do_compile() { | ||
| 104 | # Unset OE-specific flags for stage1 LLVM build | ||
| 105 | export CFLAGS_FOR_BUILD="" | ||
| 106 | export CXXFLAGS_FOR_BUILD="" | ||
| 107 | export LDFLAGS_FOR_BUILD="" | ||
| 108 | |||
| 109 | bbnote "Building ispc with bundled LLVM 20.1" | ||
| 110 | cmake --build "${B}" --target all -- ${EXTRA_OECMAKEBUILD} | ||
| 111 | } | ||
| 112 | |||
| 113 | # Superbuild installs ispc to build/ispc-stage2 instead of ${D} | ||
| 114 | do_install() { | ||
| 115 | install -d ${D}${bindir} | ||
| 116 | install -m 0755 ${B}/ispc-stage2/bin/ispc ${D}${bindir}/ | ||
| 117 | install -m 0755 ${B}/ispc-stage2/bin/check_isa ${D}${bindir}/ | ||
| 118 | } | ||
| 119 | |||
| 120 | do_install:append:class-target() { | ||
| 121 | # Install tests for gio validation (ispc-test package) | ||
| 122 | install -d ${D}${libdir}/ispc/gio | ||
| 123 | install -m 0755 ${S}/scripts/run_tests.py ${D}${libdir}/ispc/gio/ | ||
| 124 | install -m 0644 ${S}/scripts/common.py ${D}${libdir}/ispc/gio/ | ||
| 125 | cp -r ${S}/tests ${D}${libdir}/ispc/gio/ | ||
| 126 | cp ${S}/test_static.isph ${D}${libdir}/ispc/gio/ || true | ||
| 127 | cp ${S}/fail_db.txt ${D}${libdir}/ispc/gio/ || true | ||
| 128 | cp ${S}/test_static.cpp ${D}${libdir}/ispc/gio/ || true | ||
| 129 | } | ||
| 130 | |||
| 131 | do_install_ptest:class-target() { | ||
| 132 | install -d ${D}${PTEST_PATH} | ||
| 133 | install -m 0755 ${S}/scripts/run_tests.py ${D}${PTEST_PATH}/ | ||
| 134 | install -m 0644 ${S}/scripts/common.py ${D}${PTEST_PATH}/ | ||
| 135 | cp -r ${S}/tests ${D}${PTEST_PATH}/ | ||
| 136 | cp ${S}/test_static.isph ${D}${PTEST_PATH}/ || true | ||
| 137 | cp ${S}/fail_db.txt ${D}${PTEST_PATH}/ || true | ||
| 138 | cp ${S}/test_static.cpp ${D}${PTEST_PATH}/ || true | ||
| 139 | } | ||
| 140 | |||
| 141 | PACKAGES:prepend:class-target = "${PN}-test " | ||
| 142 | FILES:${PN}-test:class-target = "${libdir}/ispc/gio/*" | ||
| 143 | RDEPENDS:${PN}-test:class-target += "bash python3-multiprocessing ${PN}" | ||
| 144 | |||
| 145 | pkg_postinst:${PN}() { | ||
| 146 | #!/bin/sh | ||
| 147 | # Create /lib64 symlink if it doesn't exist (needed for ispc binary built with /lib64 interpreter path) | ||
| 148 | if [ -z "$D" ]; then | ||
| 149 | # Runtime installation | ||
| 150 | if [ ! -e /lib64/ld-linux-x86-64.so.2 ] && [ -e /lib/ld-linux-x86-64.so.2 ]; then | ||
| 151 | mkdir -p /lib64 | ||
| 152 | ln -sf /lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 | ||
| 153 | fi | ||
| 154 | else | ||
| 155 | # Image creation time | ||
| 156 | if [ ! -e $D/lib64/ld-linux-x86-64.so.2 ] && [ -e $D/lib/ld-linux-x86-64.so.2 ]; then | ||
| 157 | mkdir -p $D/lib64 | ||
| 158 | ln -sf /lib/ld-linux-x86-64.so.2 $D/lib64/ld-linux-x86-64.so.2 | ||
| 159 | fi | ||
| 160 | fi | ||
| 161 | } | ||
| 162 | |||
| 163 | # ISPC compiler - also available as native/nativesdk for build-time use | ||
| 164 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb b/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb index ebd45c60..b633bc49 100644 --- a/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb +++ b/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb | |||
| @@ -11,6 +11,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | |||
| 11 | 11 | ||
| 12 | inherit pkgconfig cmake | 12 | inherit pkgconfig cmake |
| 13 | 13 | ||
| 14 | # ISPC generates binaries with embedded build paths | ||
| 15 | INSANE_SKIP:${PN}-dbg += "buildpaths" | ||
| 16 | |||
| 14 | SRC_URI = "git://github.com/embree/embree.git;protocol=https;branch=master" | 17 | SRC_URI = "git://github.com/embree/embree.git;protocol=https;branch=master" |
| 15 | SRCREV = "ff9381774dc99fea81a932ad276677aad6a3d4dd" | 18 | SRCREV = "ff9381774dc99fea81a932ad276677aad6a3d4dd" |
| 16 | 19 | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.1.0.bb b/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.4.1.bb index 8005f544..4a8b81a7 100644 --- a/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.1.0.bb +++ b/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.4.1.bb | |||
| @@ -7,21 +7,26 @@ HOMEPAGE = "https://www.openimagedenoise.org/" | |||
| 7 | 7 | ||
| 8 | LICENSE = "Apache-2.0 & BSD-3-Clause" | 8 | LICENSE = "Apache-2.0 & BSD-3-Clause" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | 9 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ |
| 10 | file://external/mkl-dnn/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ | 10 | file://external/cutlass/LICENSE.txt;md5=ce85e3722fa981b4aef41101c60ed4a4 \ |
| 11 | file://external/mkl-dnn/src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ | 11 | file://external/composable_kernel/LICENSE;md5=2049c7351121e693518087ea93a76da2 \ |
| 12 | file://external/mkl-dnn/src/common/ittnotify/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ | ||
| 13 | file://weights/LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | 12 | file://weights/LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 14 | 13 | ||
| 15 | SRC_URI = "https://github.com/OpenImageDenoise/${BPN}/releases/download/v${PV}/${BP}.src.tar.gz\ | 14 | SRC_URI = "https://github.com/RenderKit/${BPN}/releases/download/v${PV}/${BPN}-${PV}.src.tar.gz\ |
| 16 | " | 15 | " |
| 17 | SRC_URI[sha256sum] = "ce144ba582ff36563d9442ee07fa2a4d249bc85aa93e5b25fc527ff4ee755ed6" | 16 | SRC_URI[sha256sum] = "9c7c77ae0d57e004479cddb7aaafd405c2cc745153bed4805413c21be610e17b" |
| 17 | |||
| 18 | S = "${UNPACKDIR}/${BPN}-${PV}" | ||
| 18 | 19 | ||
| 19 | inherit cmake | 20 | inherit cmake |
| 20 | 21 | ||
| 22 | # ISPC generates headers with embedded build paths | ||
| 23 | INSANE_SKIP:${PN}-src += "buildpaths" | ||
| 24 | INSANE_SKIP:${PN}-dbg += "buildpaths" | ||
| 25 | |||
| 21 | DEPENDS += "tbb ispc-native" | 26 | DEPENDS += "tbb ispc-native" |
| 22 | 27 | ||
| 23 | do_install:append() { | 28 | do_install:append() { |
| 24 | chrpath -d ${D}${bindir}/* ${D}${libdir}/*${SOLIBS} | 29 | chrpath -d ${D}${bindir}/* ${D}${libdir}/*${SOLIBS} |
| 25 | } | 30 | } |
| 26 | 31 | ||
| 27 | UPSTREAM_CHECK_URI = "https://github.com/OpenImageDenoise/oidn/releases" | 32 | UPSTREAM_CHECK_URI = "https://github.com/RenderKit/oidn/releases" |
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb b/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb index b458bb4d..efd15d9f 100644 --- a/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb +++ b/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb | |||
| @@ -40,3 +40,6 @@ PACKAGES =+ "${PN}-examples" | |||
| 40 | FILES:${PN}-examples = "\ | 40 | FILES:${PN}-examples = "\ |
| 41 | ${bindir} \ | 41 | ${bindir} \ |
| 42 | " | 42 | " |
| 43 | |||
| 44 | INSANE_SKIP:${PN}-src += "buildpaths" | ||
| 45 | INSANE_SKIP:${PN}-dbg += "buildpaths" \ No newline at end of file | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb b/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb index dc8f7335..99af9010 100644 --- a/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb +++ b/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb | |||
| @@ -36,4 +36,6 @@ FILES:${PN}-apps = "\ | |||
| 36 | ${bindir} \ | 36 | ${bindir} \ |
| 37 | " | 37 | " |
| 38 | 38 | ||
| 39 | INSANE_SKIP:${PN}-src += "buildpaths" | ||
| 40 | INSANE_SKIP:${PN}-dbg += "buildpaths" | ||
| 39 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" | 41 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" |
diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2550.0.0.0.bb b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2550.0.0.0.bb index 3804338e..d601fb31 100644 --- a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2550.0.0.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2550.0.0.0.bb | |||
| @@ -10,9 +10,9 @@ 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 features_check python3native | 13 | inherit cmake systemd features_check python3native pkgconfig |
| 14 | 14 | ||
| 15 | DEPENDS = "metee ace xerces-c libnl libxml2 glib-2.0 glib-2.0-native pkgconfig-native python3-packaging-native" | 15 | DEPENDS = "metee ace xerces-c libnl libxml2 glib-2.0 glib-2.0-native python3-packaging-native" |
| 16 | 16 | ||
| 17 | # Enable either connman or networkmanager or none but not both. | 17 | # Enable either connman or networkmanager or none but not both. |
| 18 | PACKAGECONFIG ??= "connman" | 18 | PACKAGECONFIG ??= "connman" |
diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb b/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb index d2e90e79..1bf7c46a 100644 --- a/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb | |||
| @@ -21,8 +21,10 @@ SRCREV_lzvext = "61e4aeb00afd2a5b6955986269eed3a713c7b562" | |||
| 21 | SRCREV_googletest = "b514bdc898e2951020cbdca1304b75f5950d1f59" | 21 | SRCREV_googletest = "b514bdc898e2951020cbdca1304b75f5950d1f59" |
| 22 | SRCREV_FORMAT = "linux-npu-driver_npu-compiler-elf_yaml-cpp_lzvext_googletest" | 22 | SRCREV_FORMAT = "linux-npu-driver_npu-compiler-elf_yaml-cpp_lzvext_googletest" |
| 23 | 23 | ||
| 24 | inherit cmake | 24 | inherit cmake pkgconfig |
| 25 | 25 | ||
| 26 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 27 | COMPATIBLE_HOST:libc-musl = 'null' | ||
| 26 | 28 | ||
| 27 | # Fix warning _FORTIFY_SOURCE requires compiling with optimization (-O) | 29 | # Fix warning _FORTIFY_SOURCE requires compiling with optimization (-O) |
| 28 | EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release " | 30 | EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release " |
| @@ -32,7 +34,7 @@ EXTRA_OECMAKE += " -DCMAKE_INSTALL_FIRMWARE_DIR=${nonarch_base_libdir}" | |||
| 32 | EXTRA_OECMAKE += " -DCMAKE_POLICY_VERSION_MINIMUM=3.5" | 34 | EXTRA_OECMAKE += " -DCMAKE_POLICY_VERSION_MINIMUM=3.5" |
| 33 | EXTRA_OECMAKE += " -DCMAKE_CXX_FLAGS='-I${STAGING_INCDIR}/level_zero'" | 35 | EXTRA_OECMAKE += " -DCMAKE_CXX_FLAGS='-I${STAGING_INCDIR}/level_zero'" |
| 34 | 36 | ||
| 35 | DEPENDS = "level-zero dpkg-native pkgconfig-native level-zero-native" | 37 | DEPENDS = "level-zero dpkg-native level-zero-native" |
| 36 | 38 | ||
| 37 | PACKAGES =+ "${PN}-firmware ${PN}-tests" | 39 | PACKAGES =+ "${PN}-firmware ${PN}-tests" |
| 38 | 40 | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/thermald/thermald_2.5.10.bb b/dynamic-layers/openembedded-layer/recipes-bsp/thermald/thermald_2.5.10.bb deleted file mode 100644 index 63106028..00000000 --- a/dynamic-layers/openembedded-layer/recipes-bsp/thermald/thermald_2.5.10.bb +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | SUMMARY = "Linux thermal daemon" | ||
| 2 | |||
| 3 | DESCRIPTION = "Thermal Daemon is a Linux daemon used to prevent the \ | ||
| 4 | overheating of platforms. This daemon monitors temperature and applies \ | ||
| 5 | compensation using available cooling methods." | ||
| 6 | |||
| 7 | HOMEPAGE = "https://github.com/01org/thermal_daemon" | ||
| 8 | |||
| 9 | DEPENDS = "dbus dbus-glib dbus-glib-native libxml2 glib-2.0 glib-2.0-native upower libevdev" | ||
| 10 | DEPENDS += "autoconf-archive-native" | ||
| 11 | |||
| 12 | LICENSE = "GPL-2.0-only" | ||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea8831610e926e2e469075b52bf08848" | ||
| 14 | |||
| 15 | SRC_URI = "git://github.com/intel/thermal_daemon/;branch=master;protocol=https \ | ||
| 16 | " | ||
| 17 | |||
| 18 | SRCREV = "88369b42ec523787081b9bf8811b364e2a3d5f2d" | ||
| 19 | |||
| 20 | inherit pkgconfig autotools systemd gtk-doc | ||
| 21 | |||
| 22 | # gtkdocsize runs before autotools do_configure and it copies gtk-doc.m4 and fails | ||
| 23 | # to copy becuase there is no m4 dir yet. | ||
| 24 | do_configure:prepend () { | ||
| 25 | mkdir -p ${S}/m4 | ||
| 26 | } | ||
| 27 | |||
| 28 | EXTRA_OECONF = " \ | ||
| 29 | --with-systemdsystemunitdir=${systemd_system_unitdir} \ | ||
| 30 | " | ||
| 31 | |||
| 32 | FILES:${PN} += "${datadir}/dbus-1" | ||
| 33 | |||
| 34 | SYSTEMD_SERVICE:${PN} = "thermald.service" | ||
| 35 | |||
| 36 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | ||
| 37 | |||
| 38 | CONFFILES:${PN} = " \ | ||
| 39 | ${sysconfdir}/thermald/thermal-conf.xml \ | ||
| 40 | ${sysconfdir}/thermald/thermal-cpu-cdev-order.xml \ | ||
| 41 | " | ||
| 42 | |||
| 43 | UPSTREAM_CHECK_URI = "https://github.com/01org/thermal_daemon/releases" | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl_03.00.00.0538.bb b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl_03.00.00.0538.bb index aeefe4a4..4ec337f1 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl_03.00.00.0538.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl_03.00.00.0538.bb | |||
| @@ -27,9 +27,9 @@ SRCREV_ipmctl = "a71f2fb1c90dd07f9862b71c789881132193e8f9" | |||
| 27 | SRCREV_edk2 = "46548b1adac82211d8d11da12dd914f41e7aa775" | 27 | SRCREV_edk2 = "46548b1adac82211d8d11da12dd914f41e7aa775" |
| 28 | SRCREV_FORMAT = "ipmctl_edk2" | 28 | SRCREV_FORMAT = "ipmctl_edk2" |
| 29 | 29 | ||
| 30 | inherit cmake dos2unix | 30 | inherit cmake dos2unix pkgconfig |
| 31 | 31 | ||
| 32 | DEPENDS = "ndctl pkgconfig-native" | 32 | DEPENDS = "ndctl" |
| 33 | 33 | ||
| 34 | EXTRA_OECMAKE = "-DRELEASE=ON \ | 34 | EXTRA_OECMAKE = "-DRELEASE=ON \ |
| 35 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ | 35 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ |
