From patchwork Thu Mar 5 18:08:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pratham Deshmukh X-Patchwork-Id: 82614 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1ACB4F47CAC for ; Thu, 5 Mar 2026 18:08:45 +0000 (UTC) Received: from CH5PR02CU005.outbound.protection.outlook.com (CH5PR02CU005.outbound.protection.outlook.com [40.107.200.69]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.50775.1772734119431617499 for ; Thu, 05 Mar 2026 10:08:39 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ti.com header.s=selector1 header.b=VeKR+/ok; spf=permerror, err=parse error for token &{10 18 spf.protection.outlook.com}: limit exceeded (domain: ti.com, ip: 40.107.200.69, mailfrom: p-deshmukh@ti.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AoVj99QFBrzdJIRytojQ7fy2gZAjlrCNo1Po8ahIb3K4ujDFhkkOPLyFCkYxdAc5s0g5Nx6tw5C4P92JySBekR5C8blF3m/iQrNKslSiUULSWegJeUH0tnJ6WEBqqdS9raBWnhJyaNv+WkH3mpJJDBYvc4VwaHH6QF/5fpz6uzDHg9N0mGl5S2bVGIJjOtYhr52x/m08/TBVxbSUxdpKMCEqiGNPFX2wKas5muElg3EBHk9oJYwX9ZXupevfxumC7D+HEpRjOWg42QAKGkw5dpo2AmMqB49UO/prLqnvTpQlundC8n7oVOPU96aY6JK2y10P3q/NafMAz8O+HcuXAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rni8ZsHP391N/qGllq1oIlzXgrkPCvqFN3QecYQw9aM=; b=SJKwpzb3nyV6WKeLj4NM3+yNPXodYYBPnCfgFuMlm6VbQCdngWqCBvoYxi28jJYF5A8qp58jKqj4SXh65gmlLkHFpbRA2C6ohQI5SbVkJ/hTxOakcRBFqGMhBYgDhXyuJy0C6RmLAmzpFlbUcnp6+HUeTLW43tL8L4ujH5BtwWqh8FK9D1K6+coKf609A7eZfAt9ksXtDTzy0U3BPJq5VvAaBxKh7jopCeF0YyUBY88roegZttnC3EhCBZNFwmK75FDE3oXdVDGvDZJIlxt/SnofOkxADn15NiuP4H0zDAlXmCpSoJ9+ndMp49fxpJH3SMzYzWm+UJofSvUvoNEaiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.23.194) smtp.rcpttodomain=lists.yoctoproject.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rni8ZsHP391N/qGllq1oIlzXgrkPCvqFN3QecYQw9aM=; b=VeKR+/okxqMH0n19biXZgeCGhJccbi6ruAbhKJc9sG7V0Sa0WKzbIEfv+DlMcBpyJFymc921Q0PbAgBDYdpZvJqWF1c1lsRgyH2DIpgkMM29h2xkH28cOXHIkBf0D32HWiSZODUsG9EsAGwiOQLeiejzASCm7fwmHnRn9LmZ4aw= Received: from SJ0PR13CA0075.namprd13.prod.outlook.com (2603:10b6:a03:2c4::20) by BY5PR10MB4115.namprd10.prod.outlook.com (2603:10b6:a03:213::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9678.18; Thu, 5 Mar 2026 18:08:36 +0000 Received: from SJ5PEPF000001F5.namprd05.prod.outlook.com (2603:10b6:a03:2c4:cafe::63) by SJ0PR13CA0075.outlook.office365.com (2603:10b6:a03:2c4::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9678.18 via Frontend Transport; Thu, 5 Mar 2026 18:08:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.23.194) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.23.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.23.194; helo=lewvzet200.ext.ti.com; pr=C Received: from lewvzet200.ext.ti.com (198.47.23.194) by SJ5PEPF000001F5.mail.protection.outlook.com (10.167.242.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9678.18 via Frontend Transport; Thu, 5 Mar 2026 18:08:36 +0000 Received: from DLEE203.ent.ti.com (157.170.170.78) by lewvzet200.ext.ti.com (10.4.14.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Thu, 5 Mar 2026 12:08:35 -0600 Received: from DLEE204.ent.ti.com (157.170.170.84) by DLEE203.ent.ti.com (157.170.170.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Thu, 5 Mar 2026 12:08:35 -0600 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DLEE204.ent.ti.com (157.170.170.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Thu, 5 Mar 2026 12:08:35 -0600 Received: from pratham-TI.dhcp.ti.com (pratham-ti.dhcp.ti.com [172.24.233.101]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 625I8QIU2809740; Thu, 5 Mar 2026 12:08:33 -0600 From: Pratham Deshmukh To: CC: , , , , , Pratham Deshmukh Subject: [meta-arago][master][PATCH v5 2/2] onnxruntime: upgrade 1.20.1 -> 1.23.2 Date: Thu, 5 Mar 2026 23:38:24 +0530 Message-ID: <20260305180824.1823814-3-p-deshmukh@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260305180824.1823814-1-p-deshmukh@ti.com> References: <20260305180824.1823814-1-p-deshmukh@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001F5:EE_|BY5PR10MB4115:EE_ X-MS-Office365-Filtering-Correlation-Id: d9ff6d9d-1c13-4928-4d99-08de7ae23875 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700016|34020700016|1800799024; X-Microsoft-Antispam-Message-Info: yu2led2KR6EI5zeEMyj+aeCggj46Kr9IzHxnn8y4IHM9+VKKQIJbOCNMhjuud6VH3A5PdrOQyLDD0Pfbeze22jvVHBsmRoe6qAzilUOePoyLqYkfNNuIhMOX6apzAZ/wkUFUhrxjZ4tYQQQaw37EY+r2pALBkkqE9aSi23F9ngoXCeyboiIpjtJVYdbhFvkUq2ZNGVQS3jM3zJZX+nBaL6CjgSgC4kXpZgwmnbOZU0cr2NrIxxjx67HUUNabr4hi+zVAnzUtVG7AgHsYN9djByUbIn+W2NgDMRy4yXcGyFMCFRmKydRlP5iPBiAMA6vpfkXzTcU3sA9ST/S/CtaXhNCOZkzpigO/qT8bNTECTiecW7mN7SE883Yshyja1B3y0b8lKZh+ypoI/Oz11qBOrXfGnrj44yFD4HmZw3x42dJjQcYy2Ww1pSy7in0+fvUB0hwrFiR2jWQgdWy5kwvFZfrH2Jm791kzhibecnrUpP1RHMlU0no0S9yS/u84dPgJZqCx2sLzqU30DXq052utaABsy5PASo8grsHNWk4ae8CHac37R29lfuDI0HA8w0D5Wr/Nqu0a7sCbedWamRGs4RALf/6pQBPhDiXW+0Vq8DfdjV8FW2rkmCtDNVJvZ/l8+tWz2UijyktkyChJbkdEyTBFekoFyDpZlN234RlxWXuqJLGS3eZ5FItJzsKc3BpIDgmu9ol0KOu/NGwvHkq+FOvLXKM+Md38yIppILuHHY6Jyx4DAIazQgD567/IylvSQtiNgQ6oi5x+MaWOiyRVborsqBmD/wsNiiUFcYe29R8= X-Forefront-Antispam-Report: CIP:198.47.23.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:lewvzet200.ext.ti.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(36860700016)(34020700016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7lDnj91woeoc6X1xDlDcNK5iQKF/4p3WXPt9fD10XuE4uHW0/3MnGVo4B4AG5/m+bKs3aHX9JIUpXIAuYwWMKNGOOXmF8hmH0pOcA5R4SvoG5eArbLdpm/1ERFYhsnky0p9id5jIrKVrnnSxd7qzOjRbcLUKdjpf2PuVeyCZ4k07ms4P21Wwb5mhQtAUfYj8L92y0XLwRs3Uf/OtgDhSfj/UEI3ESl1Ha8PO01xVPVYvFR1Fu9GFcGTw9Fsmtlu5a3g8E20yYXZ/92RBBcRopyRNYLLrJdxwCc/FXdYvPYCNkeB63oZDdFKHDCk+QJv3e7OyUy3AGWB+PdjuuRvmoiOdSMwph2+Hs3Io2Trk830LgDEcizYi5ahLhOEJ3tkyELbgUSnzm890F2RC8x/J+XoUEnoDsxv8KSZm4Nk64PYxV00K/VSeYBuexsOeg0BO X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2026 18:08:36.0292 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9ff6d9d-1c13-4928-4d99-08de7ae23875 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.23.194];Helo=[lewvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001F5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4115 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 05 Mar 2026 18:08:45 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/17251 We are migrating ONNXRuntime from v1.20.1 to the latest stable version v1.23.2. Removed Patches (Fixed Upstream): • 0001-Remove-executable-permission-bit-from-source-files.patch - Commit Link: https://github.com/microsoft/onnxruntime/commit/392961ffaef52f5a51c230e26df8c16492580160 • 0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch - Commit Link: https://github.com/microsoft/onnxruntime/commit/fd22509e3645a23e62c51680b534201c324d3342 • 0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch - Commit Link: https://github.com/microsoft/onnxruntime/commit/49e94da68244fa51c28396d0642707121eacc527 • 0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch - Commit Link: https://github.com/microsoft/onnxruntime/commit/3fb2dc73f53b84b3df81639eb6340c1bb5ec774d • 0005-cmake-Print-out-result-of-find_package.patch - With the updated helper_functions.cmake this patch is no longer needed. Added Patches (New Requirements): • 0001-Added-the-missing-header-to-fix-uint32_t-compilation.patch - Fixes missing stdint.h include causing uint32_t compilation errors Signed-off-by: Pratham Deshmukh --- Change Logs: v4 -> v5: - Fixed incorrect patch version - Fixed indentation issues v3 -> v4: - Removed redundant google-nsync dependency - Fixed improper tabs/spacing issue v2 -> v3: - No Changes v1 -> v2: - Added commit links for the removed ONNXRuntime patches ...g-header-to-fix-uint32_t-compilation.patch | 27 +++++++ ...ble-permission-bit-from-source-files.patch | 72 ------------------- ...-in-option-text-s-buildings-bindings.patch | 25 ------- ...D_LIBRARY_PATH-to-search-path-when-n.patch | 32 --------- ...MAKE_CXX_FLAGS-in-build-information-.patch | 30 -------- ...ake-Print-out-result-of-find_package.patch | 37 ---------- ...untime_1.20.1.bb => onnxruntime_1.23.2.bb} | 53 +++++++------- 7 files changed, 55 insertions(+), 221 deletions(-) create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Added-the-missing-header-to-fix-uint32_t-compilation.patch delete mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Remove-executable-permission-bit-from-source-files.patch delete mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch delete mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch delete mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch delete mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0005-cmake-Print-out-result-of-find_package.patch rename meta-arago-extras/recipes-framework/onnxruntime/{onnxruntime_1.20.1.bb => onnxruntime_1.23.2.bb} (73%) diff --git a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Added-the-missing-header-to-fix-uint32_t-compilation.patch b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Added-the-missing-header-to-fix-uint32_t-compilation.patch new file mode 100644 index 00000000..21e0a301 --- /dev/null +++ b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Added-the-missing-header-to-fix-uint32_t-compilation.patch @@ -0,0 +1,27 @@ +From cb67823df8cfa19cf1c0c0ddd1b9aa29ee7773ba Mon Sep 17 00:00:00 2001 +From: Pratham Deshmukh +Date: Thu, 12 Feb 2026 16:02:40 +0530 +Subject: [PATCH] Added the missing header to fix uint32_t compilation error. + +Upstream-Status: Backport [https://github.com/microsoft/onnxruntime/commit/d6e712c] + +Signed-off-by: Pratham Deshmukh +--- + onnxruntime/core/common/semver.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/onnxruntime/core/common/semver.h b/onnxruntime/core/common/semver.h +index a07c24f016..98bb6a2cef 100644 +--- a/onnxruntime/core/common/semver.h ++++ b/onnxruntime/core/common/semver.h +@@ -3,6 +3,7 @@ + + #pragma once + ++#include + #include + #include + +-- +2.34.1 + diff --git a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Remove-executable-permission-bit-from-source-files.patch b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Remove-executable-permission-bit-from-source-files.patch deleted file mode 100644 index b64e32ca..00000000 --- a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Remove-executable-permission-bit-from-source-files.patch +++ /dev/null @@ -1,72 +0,0 @@ -From 626066499c34c524924302342fc071f32442caae Mon Sep 17 00:00:00 2001 -From: Andrew Davis -Date: Sun, 12 Jan 2025 12:48:49 -0600 -Subject: [PATCH] Remove executable permission bit from source files - -These are source files, not executables, do not set the executable -permission bit on these files. - -Upstream-Status: Pending - -Signed-off-by: Andrew Davis ---- - onnxruntime/contrib_ops/cpu/utils/console_dumper.h | 1 + - onnxruntime/core/optimizer/bias_softmax_fusion.cc | 0 - onnxruntime/core/providers/acl/acl_execution_provider.h | 0 - onnxruntime/core/providers/acl/acl_fwd.h | 0 - onnxruntime/core/providers/acl/acl_provider_factory.cc | 0 - onnxruntime/core/providers/acl/math/gemm.cc | 0 - onnxruntime/core/providers/acl/nn/batch_norm.cc | 0 - onnxruntime/core/providers/acl/nn/batch_norm.h | 0 - onnxruntime/test/optimizer/graph_transform_test.cc | 0 - onnxruntime/test/optimizer/graph_transform_test_layernorm.cc | 0 - 10 files changed, 1 insertion(+) - mode change 100755 => 100644 onnxruntime/core/optimizer/bias_softmax_fusion.cc - mode change 100755 => 100644 onnxruntime/core/providers/acl/acl_execution_provider.h - mode change 100755 => 100644 onnxruntime/core/providers/acl/acl_fwd.h - mode change 100755 => 100644 onnxruntime/core/providers/acl/acl_provider_factory.cc - mode change 100755 => 100644 onnxruntime/core/providers/acl/math/gemm.cc - mode change 100755 => 100644 onnxruntime/core/providers/acl/nn/batch_norm.cc - mode change 100755 => 100644 onnxruntime/core/providers/acl/nn/batch_norm.h - mode change 100755 => 100644 onnxruntime/test/optimizer/graph_transform_test.cc - mode change 100755 => 100644 onnxruntime/test/optimizer/graph_transform_test_layernorm.cc - -diff --git a/onnxruntime/contrib_ops/cpu/utils/console_dumper.h b/onnxruntime/contrib_ops/cpu/utils/console_dumper.h -index 9ebc44f441..64bd2b7b18 100644 ---- a/onnxruntime/contrib_ops/cpu/utils/console_dumper.h -+++ b/onnxruntime/contrib_ops/cpu/utils/console_dumper.h -@@ -3,6 +3,7 @@ - - #pragma once - #include -+#include - #include "core/framework/ort_value.h" - #include "core/framework/float16.h" - #include "contrib_ops/cpu/utils/debug_macros.h" -diff --git a/onnxruntime/core/optimizer/bias_softmax_fusion.cc b/onnxruntime/core/optimizer/bias_softmax_fusion.cc -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/core/providers/acl/acl_execution_provider.h b/onnxruntime/core/providers/acl/acl_execution_provider.h -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/core/providers/acl/acl_fwd.h b/onnxruntime/core/providers/acl/acl_fwd.h -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/core/providers/acl/acl_provider_factory.cc b/onnxruntime/core/providers/acl/acl_provider_factory.cc -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/core/providers/acl/math/gemm.cc b/onnxruntime/core/providers/acl/math/gemm.cc -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/core/providers/acl/nn/batch_norm.cc b/onnxruntime/core/providers/acl/nn/batch_norm.cc -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/core/providers/acl/nn/batch_norm.h b/onnxruntime/core/providers/acl/nn/batch_norm.h -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/test/optimizer/graph_transform_test.cc b/onnxruntime/test/optimizer/graph_transform_test.cc -old mode 100755 -new mode 100644 -diff --git a/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc b/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc -old mode 100755 -new mode 100644 diff --git a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch deleted file mode 100644 index 88423190..00000000 --- a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch +++ /dev/null @@ -1,25 +0,0 @@ -From be67663e9a44d146033aeb97804145a60b4032db Mon Sep 17 00:00:00 2001 -From: Andrew Davis -Date: Thu, 16 Jan 2025 12:35:03 -0600 -Subject: [PATCH] [cmake] Fix typo in option text s/buildings/bindings - -Upstream-Status: Pending - -Signed-off-by: Andrew Davis ---- - cmake/CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt -index d90a2a3550..e0cde678db 100644 ---- a/cmake/CMakeLists.txt -+++ b/cmake/CMakeLists.txt -@@ -77,7 +77,7 @@ option(onnxruntime_GENERATE_TEST_REPORTS "Enable test report generation" OFF) - option(onnxruntime_ENABLE_STATIC_ANALYSIS "Enable static analysis" OFF) - option(onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES "Use a custom SDL Rule. It is mainly for our CI build" OFF) - option(onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE "Use a custom SDL Rule. It is mainly for our CI build" OFF) --option(onnxruntime_ENABLE_PYTHON "Enable python buildings" OFF) -+option(onnxruntime_ENABLE_PYTHON "Enable python bindings" OFF) - # Enable it may cause LNK1169 error - option(onnxruntime_ENABLE_MEMLEAK_CHECKER "Experimental: Enable memory leak checker in Windows debug build" OFF) - option(onnxruntime_USE_CUDA "Build with CUDA support" OFF) diff --git a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch deleted file mode 100644 index 75cb9b18..00000000 --- a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch +++ /dev/null @@ -1,32 +0,0 @@ -From b1689f3f963f4c07d3329a838569ac4c2fa2bd5f Mon Sep 17 00:00:00 2001 -From: Andrew Davis -Date: Thu, 16 Jan 2025 12:38:13 -0600 -Subject: [PATCH] [ACL] Do not add LD_LIBRARY_PATH to search path when not - defined - -If LD_LIBRARY_PATH is not defined a blank "-L" is added to the -link command. This causes the next object to be linked to get -treated as if it was a search path and causes link failure. - -Upstream-Status: Pending - -Signed-off-by: Andrew Davis ---- - cmake/onnxruntime_providers_acl.cmake | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/cmake/onnxruntime_providers_acl.cmake b/cmake/onnxruntime_providers_acl.cmake -index e23d289271..19d41dc73f 100644 ---- a/cmake/onnxruntime_providers_acl.cmake -+++ b/cmake/onnxruntime_providers_acl.cmake -@@ -13,7 +13,9 @@ - onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface - ) - -- target_link_libraries(onnxruntime_providers_acl -L$ENV{LD_LIBRARY_PATH}) -+ if (DEFINED ENV{LD_LIBRARY_PATH}) -+ target_link_libraries(onnxruntime_providers_acl -L$ENV{LD_LIBRARY_PATH}) -+ endif() - add_dependencies(onnxruntime_providers_acl ${onnxruntime_EXTERNAL_DEPENDENCIES}) - set_target_properties(onnxruntime_providers_acl PROPERTIES FOLDER "ONNXRuntime") - target_include_directories(onnxruntime_providers_acl diff --git a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch deleted file mode 100644 index e8f086a8..00000000 --- a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 7ea6e35d3630f8c19080a0cb5a4a4c55c242a36b Mon Sep 17 00:00:00 2001 -From: Andrew Davis -Date: Thu, 16 Jan 2025 12:40:57 -0600 -Subject: [PATCH] Do not include CMAKE_CXX_FLAGS in build information string - -While this information can be useful, it often includes information -that may be specific to the build machine (like include paths with -usernames, e.g. -I /home/myname/externalproject/fakeroot/inlcude). - -This causes issues for reproducible builds (resulting binaries will -be different between different build machines). - -Upstream-Status: Pending - -Signed-off-by: Andrew Davis ---- - cmake/CMakeLists.txt | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt -index e0cde678db..e0d8fd0a17 100644 ---- a/cmake/CMakeLists.txt -+++ b/cmake/CMakeLists.txt -@@ -1439,7 +1439,6 @@ if (Git_FOUND) - string(APPEND ORT_BUILD_INFO "git-branch=${ORT_GIT_BRANCH}, git-commit-id=${ORT_GIT_COMMIT}, ") - endif() - string(APPEND ORT_BUILD_INFO "build type=${CMAKE_BUILD_TYPE}") --string(APPEND ORT_BUILD_INFO ", cmake cxx flags: ${CMAKE_CXX_FLAGS}") - configure_file(onnxruntime_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/onnxruntime_config.h) - get_property(onnxruntime_GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) diff --git a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0005-cmake-Print-out-result-of-find_package.patch b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0005-cmake-Print-out-result-of-find_package.patch deleted file mode 100644 index 249aadee..00000000 --- a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0005-cmake-Print-out-result-of-find_package.patch +++ /dev/null @@ -1,37 +0,0 @@ -From a73d9b9f4dba6d164e128d6c768d1b0a04e969ab Mon Sep 17 00:00:00 2001 -From: Andrew Davis -Date: Thu, 16 Jan 2025 12:47:27 -0600 -Subject: [PATCH] [cmake] Print out result of find_package - -A verbose only message is already printed that states the CMake will -attempt to find a package using find_package(): - -> Trying find_package(...) before FetchContent - -But it never prints if the package was found this way or not. -Add this result message. - -Upstream-Status: Pending - -Signed-off-by: Andrew Davis ---- - cmake/external/helper_functions.cmake | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/cmake/external/helper_functions.cmake b/cmake/external/helper_functions.cmake -index e3f2211f96..9ca6a967da 100644 ---- a/cmake/external/helper_functions.cmake -+++ b/cmake/external/helper_functions.cmake -@@ -138,9 +138,12 @@ macro(onnxruntime_fetchcontent_makeavailable) - unset(__cmake_fpArgs) - - if(${__cmake_contentName}_FOUND) -+ message(VERBOSE "Found ${__cmake_contentName} with find_package()") - FetchContent_SetPopulated(${__cmake_contentName}) - FetchContent_GetProperties(${__cmake_contentName}) - continue() -+ else() -+ message(VERBOSE "Could not find ${__cmake_contentName} with find_package()") - endif() - endif() - else() diff --git a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.20.1.bb b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.23.2.bb similarity index 73% rename from meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.20.1.bb rename to meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.23.2.bb index a5026484..6b8e8de0 100644 --- a/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.20.1.bb +++ b/meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.23.2.bb @@ -5,30 +5,32 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d" SRC_URI = "\ - git://github.com/microsoft/onnxruntime.git;protocol=https;branch=rel-1.20.1 \ - git://github.com/HowardHinnant/date.git;protocol=https;branch=master;name=date;destsuffix=${S}/cmake/external/date \ - git://github.com/pytorch/cpuinfo.git;protocol=https;branch=main;name=cpuinfo;destsuffix=${S}/cmake/external/cpuinfo \ - git://github.com/google/flatbuffers.git;protocol=https;branch=master;name=flatbuffers;destsuffix=${S}/cmake/external/flatbuffers \ - git://github.com/dcleblanc/SafeInt.git;protocol=https;branch=master;name=safeint;destsuffix=${S}/cmake/external/safeint \ - git://gitlab.com/libeigen/eigen.git;protocol=https;branch=3.4;name=eigen;destsuffix=${S}/cmake/external/eigen \ - git://github.com/google/nsync.git;protocol=https;branch=master;name=nsync;destsuffix=${S}/cmake/external/nsync \ + git://github.com/microsoft/onnxruntime.git;protocol=https;branch=rel-1.23.2 \ + git://github.com/HowardHinnant/date.git;protocol=https;branch=master;name=date;destsuffix=${S}/_deps/date-src \ + git://github.com/pytorch/cpuinfo.git;protocol=https;branch=main;name=cpuinfo;destsuffix=${S}/_deps/pytorch_cpuinfo-src \ + git://github.com/google/flatbuffers.git;protocol=https;branch=master;name=flatbuffers;destsuffix=${S}/_deps/flatbuffers-src \ + git://github.com/dcleblanc/SafeInt.git;protocol=https;branch=master;name=safeint;destsuffix=${S}/_deps/safeint-src \ + git://github.com/eigen-mirror/eigen.git;protocol=https;branch=master;name=eigen;destsuffix=${S}/_deps/eigen3-src \ + git://github.com/boostorg/mp11.git;protocol=https;branch=master;name=mp11;destsuffix=${S}/_deps/mp11-src \ + git://github.com/dmlc/dlpack.git;protocol=https;branch=main;name=dlpack;destsuffix=${S}/_deps/dlpack-src \ + git://github.com/abseil/abseil-cpp.git;protocol=https;branch=lts_2025_05_12;name=abseil-cpp;destsuffix=${S}/_deps/abseil_cpp-src \ + git://github.com/google/re2.git;protocol=https;branch=main;name=re2;destsuffix=${S}/_deps/re2-src \ " SRC_URI += "\ - file://0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch \ - file://0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch \ - file://0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch \ - file://0005-cmake-Print-out-result-of-find_package.patch \ - file://0001-Remove-executable-permission-bit-from-source-files.patch \ + file://0001-Added-the-missing-header-to-fix-uint32_t-compilation.patch \ " SRCREV_FORMAT = "default" -SRCREV = "5c1b7ccbff7e5141c1da7a9d963d660e5741c319" +SRCREV = "a83fc4d58cb48eb68890dd689f94f28288cf2278" SRCREV_date = "6e921e1b1d21e84a5c82416ba7ecd98e33a436d0" -SRCREV_cpuinfo = "ca678952a9a8eaa6de112d154e8e104b22f9ab3f" +SRCREV_cpuinfo = "8a1772a0c5c447df2d18edf33ec4603a8c9c04a6" SRCREV_flatbuffers = "0100f6a5779831fa7a651e4b67ef389a8752bd9b" SRCREV_safeint = "4cafc9196c4da9c817992b20f5253ef967685bf8" -SRCREV_eigen = "e7248b26a1ed53fa030c5c459f7ea095dfd276ac" -SRCREV_nsync = "13de152c2a1cd73ff4df97bd2c406b6d15d34af3" +SRCREV_eigen = "1d8b82b0740839c0de7f1242a3585e3390ff5f33" +SRCREV_mp11 = "0a0b5fb001ce0233ae3a6f99d849c0649e5a7361" +SRCREV_dlpack = "5c210da409e7f1e51ddf445134a4376fdbd70d7d" +SRCREV_abseil-cpp = "bc257a88f7c1939f24e0379f14a3589e926c950c" +SRCREV_re2 = "6dcd83d60f7944926bfd308cc13979fc53dd69ca" # Only compatible with armv7a, armv7ve, and aarch64 COMPATIBLE_MACHINE = "(^$)" @@ -38,11 +40,9 @@ COMPATIBLE_MACHINE:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)" DEPENDS += "\ onnx \ - abseil-cpp \ protobuf \ protobuf-native \ boost \ - re2 \ nlohmann-json \ microsoft-gsl \ " @@ -80,13 +80,16 @@ PACKAGECONFIG[armnn-bn] = "-Donnxruntime_ARMNN_BN_USE_CPU=ON, -Donnxruntime_ARMN EXTRA_OECMAKE:append = " \ -DFETCHCONTENT_FULLY_DISCONNECTED=ON \ - -DFETCHCONTENT_SOURCE_DIR_DATE=${S}/cmake/external/date \ - -DFETCHCONTENT_SOURCE_DIR_PYTORCH_CPUINFO=${S}/cmake/external/cpuinfo \ - -DFETCHCONTENT_SOURCE_DIR_PYTORCH_CLOG=${S}/cmake/external/cpuinfo \ - -DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS=${S}/cmake/external/flatbuffers \ - -DFETCHCONTENT_SOURCE_DIR_SAFEINT=${S}/cmake/external/safeint \ - -DFETCHCONTENT_SOURCE_DIR_EIGEN=${S}/cmake/external/eigen \ - -DFETCHCONTENT_SOURCE_DIR_GOOGLE_NSYNC=${S}/cmake/external/nsync \ + -DFETCHCONTENT_SOURCE_DIR_DATE=${S}/_deps/date-src \ + -DFETCHCONTENT_SOURCE_DIR_PYTORCH_CPUINFO=${S}/_deps/pytorch_cpuinfo-src \ + -DFETCHCONTENT_SOURCE_DIR_PYTORCH_CLOG=${S}/_deps/pytorch_cpuinfo-src \ + -DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS=${S}/_deps/flatbuffers-src \ + -DFETCHCONTENT_SOURCE_DIR_SAFEINT=${S}/_deps/safeint-src \ + -DFETCHCONTENT_SOURCE_DIR_EIGEN3=${S}/_deps/eigen3-src \ + -DFETCHCONTENT_SOURCE_DIR_ABSEIL_CPP=${S}/_deps/abseil_cpp-src \ + -DFETCHCONTENT_SOURCE_DIR_MP11=${S}/_deps/mp11-src \ + -DFETCHCONTENT_SOURCE_DIR_DLPACK=${S}/_deps/dlpack-src \ + -DFETCHCONTENT_SOURCE_DIR_RE2=${S}/_deps/re2-src \ " EXTRA_OECMAKE:append = " \