public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Aaron Chan <aaron.chun.yew.chan@intel.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openvino] rawhide: Add NPU Compiler/Plugin patches
Date: Thu, 19 Nov 2026 11:11:13 GMT	[thread overview]
Message-ID: <179508667373.1.4122569621529247825.rpms-openvino-64c1f286e894@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/openvino
            Branch : rawhide
            Commit : 64c1f286e89452764884e5b6ecf54512aae7ac2a
            Author : Aaron Chan <aaron.chun.yew.chan@intel.com>
            Date   : 2026-10-26T14:48:45+08:00
            Stats  : +205/-0 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/openvino/c/64c1f286e89452764884e5b6ecf54512aae7ac2a?branch=rawhide

            Log:
            Add NPU Compiler/Plugin patches

Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>

---
diff --git a/cmake-lib_install.patch b/cmake-lib_install.patch
new file mode 100644
index 0000000..29d98e2
--- /dev/null
+++ b/cmake-lib_install.patch
@@ -0,0 +1,151 @@
+diff --git a/cmake/lib_install.cmake b/cmake/lib_install.cmake
+index 9518a33..63e6778 100644
+--- a/cmake/lib_install.cmake
++++ b/cmake/lib_install.cmake
+@@ -80,11 +80,11 @@ ov_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
+ #               |             | -> vpux_loader/  -> 1 hpp
+ 
+ install(DIRECTORY "${LOADER_DIR_INC}/vpux_headers"
+-        DESTINATION cid/vpux_elf/loader/include/
++        DESTINATION include/
+         COMPONENT ${CID_COMPONENT})
+ 
+ install(DIRECTORY "${LOADER_DIR_INC}/vpux_loader"
+-        DESTINATION cid/vpux_elf/loader/include/
++        DESTINATION include/
+         COMPONENT ${CID_COMPONENT})
+ 
+ #
+@@ -94,27 +94,27 @@ install(DIRECTORY "${LOADER_DIR_INC}/vpux_loader"
+ #               | -> 5000/   -> 1 hpp
+ 
+ install(DIRECTORY "${LOADER_DIR_HPI_INC}/common"
+-        DESTINATION cid/vpux_elf/loader/include/
++        DESTINATION include/
+         COMPONENT ${CID_COMPONENT})
+ 
+ install(DIRECTORY "${LOADER_DIR_HPI_INC}/3720"
+-        DESTINATION cid/vpux_elf/loader/include/
++        DESTINATION include/
+         COMPONENT ${CID_COMPONENT})
+ 
+ install(DIRECTORY "${LOADER_DIR_HPI_INC}/4000"
+-        DESTINATION cid/vpux_elf/loader/include/
++        DESTINATION include/
+         COMPONENT ${CID_COMPONENT})
+ 
+ install(DIRECTORY "${LOADER_DIR_HPI_INC}/5000"
+-        DESTINATION cid/vpux_elf/loader/include/
++        DESTINATION include/
+         COMPONENT ${CID_COMPONENT})
+ 
+ #
+ # loader folder | -> src/ | 1 cpp
+ 
+-install(DIRECTORY "${LOADER_DIR_SRC}/"
+-        DESTINATION cid/vpux_elf/loader/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${LOADER_DIR_SRC}/"
++#        DESTINATION cid/vpux_elf/loader/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+ #
+ # hpi_component | src | common -> 1 cpp
+@@ -123,21 +123,21 @@ install(DIRECTORY "${LOADER_DIR_SRC}/"
+ #               |     |  5000  -> 1 cpp
+ 
+ 
+-install(DIRECTORY "${LOADER_DIR_HPI_SRC}/common"
+-        DESTINATION cid/vpux_elf/loader/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${LOADER_DIR_HPI_SRC}/common"
++#        DESTINATION cid/vpux_elf/loader/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+-install(DIRECTORY "${LOADER_DIR_HPI_SRC}/3720"
+-        DESTINATION cid/vpux_elf/loader/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${LOADER_DIR_HPI_SRC}/3720"
++#        DESTINATION cid/vpux_elf/loader/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+-install(DIRECTORY "${LOADER_DIR_HPI_SRC}/4000"
+-        DESTINATION cid/vpux_elf/loader/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${LOADER_DIR_HPI_SRC}/4000"
++#        DESTINATION cid/vpux_elf/loader/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+-install(DIRECTORY "${LOADER_DIR_HPI_SRC}/5000"
+-        DESTINATION cid/vpux_elf/loader/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${LOADER_DIR_HPI_SRC}/5000"
++#        DESTINATION cid/vpux_elf/loader/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+ # core folder | -> include/ -> vpux_elf/ | -> types/
+ #             |                          | -> utils/
+@@ -146,22 +146,22 @@ install(DIRECTORY "${LOADER_DIR_HPI_SRC}/5000"
+ 
+ # 3 hpp
+ install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf"
+-        DESTINATION cid/vpux_elf/core/include/
++        DESTINATION include/
+         COMPONENT ${CID_COMPONENT})
+ 
+ # types
+ install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf/types"
+-        DESTINATION cid/vpux_elf/core/include/vpux_elf/
++        DESTINATION include/vpux_elf/
+         COMPONENT ${CID_COMPONENT})
+ 
+ # utils
+ install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf/utils"
+-        DESTINATION cid/vpux_elf/core/include/vpux_elf/
++        DESTINATION include/vpux_elf/
+         COMPONENT ${CID_COMPONENT})
+ 
+ # writer
+ install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf/writer"
+-        DESTINATION cid/vpux_elf/core/include/vpux_elf/
++        DESTINATION include/vpux_elf/
+         COMPONENT ${CID_COMPONENT})
+ 
+ # core folder | -> src/ -> | -> types/
+@@ -170,24 +170,24 @@ install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf/writer"
+ #             |            | -> + 2 cpp
+ 
+ # 2 cpp
+-install(DIRECTORY "${ELF_DIR}/core/src"
+-        DESTINATION cid/vpux_elf/core/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${ELF_DIR}/core/src"
++#        DESTINATION cid/vpux_elf/core/
++#        COMPONENT ${CID_COMPONENT})
+ 
+ # types
+-install(DIRECTORY "${ELF_DIR}/core/src/types"
+-        DESTINATION cid/vpux_elf/core/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${ELF_DIR}/core/src/types"
++#        DESTINATION cid/vpux_elf/core/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+ # utils
+-install(DIRECTORY "${ELF_DIR}/core/src/utils"
+-        DESTINATION cid/vpux_elf/core/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${ELF_DIR}/core/src/utils"
++#        DESTINATION cid/vpux_elf/core/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+ # writer
+-install(DIRECTORY "${ELF_DIR}/core/src/writer"
+-        DESTINATION cid/vpux_elf/core/src/
+-        COMPONENT ${CID_COMPONENT})
++#install(DIRECTORY "${ELF_DIR}/core/src/writer"
++#        DESTINATION cid/vpux_elf/core/src/
++#        COMPONENT ${CID_COMPONENT})
+ 
+ # loader lib
+ install(TARGETS VPUXLoader

diff --git a/cpack_packaging_rpm_cid.patch b/cpack_packaging_rpm_cid.patch
new file mode 100644
index 0000000..2799363
--- /dev/null
+++ b/cpack_packaging_rpm_cid.patch
@@ -0,0 +1,23 @@
+diff --git a/cmake/packaging/rpm.cmake b/cmake/packaging/rpm.cmake
+index d94d627bd0..ff8aeec4b2 100644
+--- a/cmake/packaging/rpm.cmake
++++ b/cmake/packaging/rpm.cmake
+@@ -424,6 +424,18 @@ macro(ov_cpack_settings)
+     # install common files
+     #
+ 
++    # 'CiD' (Compiler in Driver) component may be registered by extra modules
++    # e.g. NPU-related redistribution modules) outside of this repository
++    if("CiD" IN_LIST CPACK_COMPONENTS_ALL)
++        set(CPACK_COMPONENT_CID_DESCRIPTION "Intel NPU Compiler in Driver redistributable files")
++        set(CPACK_RPM_CID_PACKAGE_NAME "libopenvino-intel-npu-cid-${cpack_name_ver}")
++        set(CiD_copyright "generic")
++    endif()
++    if("CiP" IN_LIST CPACK_COMPONENTS_ALL)
++        set(CPACK_COMPONENT_CID_DESCRIPTION "Intel NPU Compiler in Plugin redistributable files")
++        set(CPACK_RPM_CIP_PACKAGE_NAME "libopenvino-intel-npu-cip-${cpack_name_ver}")
++        set(CiP_copyright "generic")
++    endif()
+     foreach(comp IN LISTS CPACK_COMPONENTS_ALL)
+         if(NOT DEFINED "${comp}_copyright")
+             message(FATAL_ERROR "Copyright file name is not defined for ${comp}")

diff --git a/protobuf_version2.patch b/protobuf_version2.patch
new file mode 100644
index 0000000..c2c9b7c
--- /dev/null
+++ b/protobuf_version2.patch
@@ -0,0 +1,14 @@
+diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake
+index 053006c031..5a3aedeef5 100644
+--- a/thirdparty/dependencies.cmake
++++ b/thirdparty/dependencies.cmake
+@@ -363,6 +363,9 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND
+         if(NOT Protobuf_FOUND)
+             find_package(Protobuf 4.22.0 QUIET CONFIG)
+         endif()
++        if(NOT Protobuf_FOUND)
++            find_package(Protobuf QUIET CONFIG)
++        endif()
+         if(Protobuf_FOUND)
+             # protobuf was found via CONFIG mode, let's save it for later usage in OpenVINOConfig.cmake static build
+             set(protobuf_config CONFIG)

diff --git a/vpux-driver-compiler-CMakeLists.patch b/vpux-driver-compiler-CMakeLists.patch
new file mode 100644
index 0000000..7f7737e
--- /dev/null
+++ b/vpux-driver-compiler-CMakeLists.patch
@@ -0,0 +1,17 @@
+diff --git a/src/vpux_driver_compiler/CMakeLists.txt b/src/vpux_driver_compiler/CMakeLists.txt
+index cfe6455ad..959e5ced7 100644
+--- a/src/vpux_driver_compiler/CMakeLists.txt
++++ b/src/vpux_driver_compiler/CMakeLists.txt
+@@ -28,7 +28,11 @@ endif()
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+ add_subdirectory(src)
+-add_subdirectory(test)
++
++option(BUILD_VPUX_DRIVER_COMPILER_TESTS "Build vpux_driver_compiler functional and smoke tests" ON)
++if(BUILD_VPUX_DRIVER_COMPILER_TESTS)
++    add_subdirectory(test)
++endif()
+
+ install(
+     FILES

                 reply	other threads:[~2026-11-19 11:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179508667373.1.4122569621529247825.rpms-openvino-64c1f286e894@fedoraproject.org \
    --to=aaron.chun.yew.chan@intel.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox