From patchwork Tue Nov 4 09:30:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timotheus Giuliani X-Patchwork-Id: 73589 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 50823CCF9E3 for ; Tue, 4 Nov 2025 11:24:22 +0000 (UTC) Received: from AS8PR04CU009.outbound.protection.outlook.com (AS8PR04CU009.outbound.protection.outlook.com [52.101.70.9]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14197.1762249558691135410 for ; Tue, 04 Nov 2025 01:45:59 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@philips.com header.s=selector1 header.b=h86Pxz/T; spf=pass (domain: bbl.ms.philips.com, ip: 52.101.70.9, mailfrom: tgiulian@bbl.ms.philips.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ev7cEXH2KEVPyP3PiHwIaGdBa9om4lq3nAeUhDBGm9jlAq0HXOvZ2XPfBmjancNj0Gu/mlPYAftU11Q/6Wn/onPnGVO1YXv2QqAvzoStrXMJmB3MAP/MviHPzVGm07v2f0QNm0mA+F2AUkFI5qm1jtUHHIApD9O9RTeV8vRZ+/MjdrHTQtvxtqUVRTi8sFEhOTHb3jFj7UlrmhO2hQQzpfhh7k/eHxGUX6YINzn3i+TeCq2s7iT+JBUTZvC/tfs8m9NMlERFL86fHk7A1cHLJHfSOU2mDb3wYdu2ApIPpbqmnHR8FHd4EAiMhKi+OMZBYaEpbF+Sbq+yeV4W0YaYXg== 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=DBYOkhgJzcW/6r8P9AStO9rNLEpz/n3ceeOcGTiKwFs=; b=GGi3bqYrIxSRJQAR+S4i/6xv0AiQLPo5KDpMZdTLVCf+/9ZpTxLxvvfVDIPFxDywSgWtrdCiFuBduP/R9Hl6NsT0yDV8nbBQ/m6nOimRZwi9QgntR+XrSGi+3wyCnnDhlCbKOeZLHpI1jSvpTIf7TY0+5jD85Ox3rYpwDOstHIecHgn6f262hFZbLbXm+5JpwxRzS4jMy/T9TRz4WhrkTTywN43QJisu91mxUQMEuMAn90kmiho1rBZmkxXbhpqHhQ4vbVaB/RoEAEUdxNOhTKvOXSzIuBI27UgwMA6fb23agn3U6QEIPHXwOQsJBDAbFp2zNWHz8z+vHcJOtj4kUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 3.248.88.141) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=bbl.ms.philips.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=philips.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philips.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DBYOkhgJzcW/6r8P9AStO9rNLEpz/n3ceeOcGTiKwFs=; b=h86Pxz/T8bqjNEJDN8zZp4v4pjvdUvok/ru5t57bUs1ATzLbW1zAcshTY8TmCH82gMZFk2N1EkAWXhurgvMYbSDcYGtbymG6R4IaXZaeCiO1INaXJs8dFN75azTAqffzA9HMX1WbHWlgGpdJta42e7Zmfa+bCQ9Nkeq6mfGGFtg= Received: from CWLP265CA0483.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18a::17) by PR3P122MB0291.EURP122.PROD.OUTLOOK.COM (2603:10a6:102:16::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9275.16; Tue, 4 Nov 2025 09:30:28 +0000 Received: from AMS0EPF000001B7.eurprd05.prod.outlook.com (2603:10a6:400:18a:cafe::e7) by CWLP265CA0483.outlook.office365.com (2603:10a6:400:18a::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9275.16 via Frontend Transport; Tue, 4 Nov 2025 09:30:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 3.248.88.141) smtp.mailfrom=bbl.ms.philips.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=philips.com; Received-SPF: Pass (protection.outlook.com: domain of bbl.ms.philips.com designates 3.248.88.141 as permitted sender) receiver=protection.outlook.com; client-ip=3.248.88.141; helo=ext-eur1.smtp.philips.com; pr=C Received: from ext-eur1.smtp.philips.com (3.248.88.141) by AMS0EPF000001B7.mail.protection.outlook.com (10.167.16.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9298.6 via Frontend Transport; Tue, 4 Nov 2025 09:30:27 +0000 Received: from smtprelay-eur1.philips.com ([130.138.84.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by ext-eur1.smtp.philips.com with ESMTPS id GBtDvkMd7tKtZGDMxv9Flp; Tue, 04 Nov 2025 10:30:27 +0100 Received: from mail.bbl.ms.philips.com ([130.143.87.230]) by smtprelay-eur1.philips.com with ESMTP id GDMxvOuE3IHN7GDMxvacfQ; Tue, 04 Nov 2025 10:30:27 +0100 Received: from bbl2xbm1.bbl.ms.philips.com (bbl2xbm1.bbl.ms.philips.com [130.143.220.186]) by mail.bbl.ms.philips.com (Postfix) with ESMTP id 48D2618477E; Tue, 4 Nov 2025 10:30:27 +0100 (CET) Received: by bbl2xbm1.bbl.ms.philips.com (Postfix, from userid 2462) id 41A02300108; Tue, 4 Nov 2025 10:30:27 +0100 (CET) From: Timotheus Giuliani To: openembedded-devel@lists.openembedded.org CC: Timotheus Giuliani Subject: [meta-oe][PATCH 1/2] fluentbit: set source directory to enable patch application Date: Tue, 4 Nov 2025 10:30:16 +0100 Message-ID: <20251104093017.474084-1-timotheus.giuliani@philips.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001B7:EE_|PR3P122MB0291:EE_ X-MS-Office365-Filtering-Correlation-Id: f7cc1b15-7709-4b58-030e-08de1b84ca4a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: w9U/0LwzKKCXh7F3P1hMTM0AkY3duknTjYdj9zrcKp5djZEELnIKpiofyQu0q4pyV8EUPKmjmF+caOOdEOkkCfzJoxxwMnjJIX8AodHxu7iwxrmuqqfPv8PmHUD+c92/JsVm+a1qR6SQ6ASoQCqcn+5wv7/b+6AUpQkpLvCqn/9adm3+udHA+vyXlROmygvQfO7cIURSnGKA4bCsDNOm2ZTKcnR34M/U4xnbT9K1zIVLIatPSYvckxfh1Re75YYs7MGTdAqCSfIV+D4w4DmayTSgnu4zDXPUmeIsXbtQO+HVMFqVm4h9tbueOut+HzFOJRfC3SFed3LXhXolmznC1Z+0kWt8PAFJrNsurPscQBmYfvv/V67fTkpKja15L01wjJntQADok7BeNR1csqjCli7YVJiCoJd4VdLYAS/Er5QlLqB517LqA5bmjDhgiZlUU6hNmguc8UnVzYf3s0nWjSU6GPY23bGv3J8YD959E3HTrG949AD2zHvvvq70rADwbt8GQw7OzwhhCEyhdTe6BjDNXg8vCb6sXmuQTjSh7NNu0QLwn5q0R0xbE/LklLkVYkqclldQQatuq3Hv14cpuPfR3OE0ka/L+sKsozy6RZ2KSG679Ftj/uuBr7tNIzJd7QXUCGmw1EC+OZCLn7fAeHw6clBaYjZXJxgNDHfkI4obGuNSviEQef+V0HpzBNVdgOWteotoaq4G3No/tQ8apeUVOVLEXkqd86IzCMjQGNIKHaWbrlb5LqALLo8IRXvNFp4Zhs03GWdKszK4MABrAGPljDjqNVzVk33PMVQU24ZdtIU16bvGyEQzkE8HYEChmb0mZejjTJWUR0NwnU/NKpTUJieOTq7PEwdGDUUdNzKSUW5dYH7tRPZGfYYd+o7XK8MT5URGTa89AwPnR+I6jyPMxwrgcwlUUu+O5fH3Gve5BWebLwAHK9i+fM9oRkSd8lciR0xgkfd5KhjRQSFc/eQumIGS6Hho9ipixVn2MsvgRmV/+7j0g2qh+IexgA1sOVumjGVxykylX3fkEzrYuwrvJ3sFUZwgGRWv9okCnfbQ27KQm4v/+hVsM5H1zeYaZs9TiTv7ewWsS9Ukg5S1+8kvIsWLE+saag0NSTdp6OUi7M2pK4DSqjnMG/mq7TSUIIAVT2j0KQGRMOcmodMQF07rhXrpoW9nHxpogZYrKWfnCkUIkrmhokEPJUmRu/tdTNfKVwlSGyK6NvE1heDUuy2K1c+L1+sicdEXJ+pQ+hAn1XadmBDyzME1QGmbx/pG4e5TA2fQZGrsOwG42QdhDq4DJ8jHM++GqchMfrwO3PSXHeyUgCgoNqZYGG0J4MDKOq31SPuVhsZWYSJdOcdSWR3fhgfSUra7b0GloFKdRkx6SqKDp6nDE+GLbLagAgdTgkbIioGzrK2J9tOzY+TS2FgmglCgAY1aTr/acRG8V1anAegfc/CsPRh5dqqPjPifFSS9RyVJvLQDkXlyfkpOSglgQsL7u7q6piDi6NECk1jQyGLp6huH1BS0JJP/AsBuZPB3WYX7yOdbfLp/J1yK8hnuGUP64IROUNWijh+g1Fg= X-Forefront-Antispam-Report: CIP:3.248.88.141;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ext-eur1.smtp.philips.com;PTR:ext-eur1.smtp.philips.com;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: philips.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2025 09:30:27.5886 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f7cc1b15-7709-4b58-030e-08de1b84ca4a X-MS-Exchange-CrossTenant-Id: 1a407a2d-7675-4d17-8692-b3ac285306e4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1a407a2d-7675-4d17-8692-b3ac285306e4;Ip=[3.248.88.141];Helo=[ext-eur1.smtp.philips.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001B7.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P122MB0291 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 ; Tue, 04 Nov 2025 11:24:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121293 The recipe was missing the explicit setting of the source directory variable S, which prevented patches from being applied correctly during the build process. This commit adds the missing S variable assignment to point to the git checkout location at ${WORKDIR}/git, ensuring that the do_patch task can locate the source files and apply the configured patches successfully. Without this setting, the build system would fail to find the source tree in the expected location. Signed-off-by: Timotheus Giuliani --- meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb b/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb index 05e4fd937f..4d82abc783 100644 --- a/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb +++ b/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb @@ -32,6 +32,7 @@ SRC_URI:append:libc-musl = "\ # prefix tag with "v" to avoid upgrade to random tags like "20220215" UPSTREAM_CHECK_GITTAGREGEX = "v(?P(\d+(\.\d+)+))" +S = "${WORKDIR}/git" PACKAGECONFIG ??= "\ aws \ From patchwork Tue Nov 4 09:30:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timotheus Giuliani X-Patchwork-Id: 73591 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 5620BCCFA06 for ; Tue, 4 Nov 2025 11:24:22 +0000 (UTC) Received: from PA4PR04CU001.outbound.protection.outlook.com (PA4PR04CU001.outbound.protection.outlook.com [40.107.162.33]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14188.1762249531427928457 for ; Tue, 04 Nov 2025 01:45:31 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@philips.com header.s=selector1 header.b=FjFAQkrn; spf=pass (domain: bbl.ms.philips.com, ip: 40.107.162.33, mailfrom: tgiulian@bbl.ms.philips.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=L1IVdHKBuDmNQcmop3Z49no+65vkSFtAbHyAWaokFp+1anz2jrYQCFybiTRKqwFWgRYTfdHomGY15oSaU8iVM7rPkoKoAD/j0oLwxLiLu2G6vmcIZic2dYJGxPKAhyjIv0jRo3Q/BFukzxKaitrmIbUSSRQPEIx6UFhNTY9TVXAdeW+i5TvNMDkDzsOIi/4/38Nq3+B6j/9MPMriLmE/u4tdh1hVA7YcWskwR2qmDAHPI99V8J2DbMSxV0VZzBGuCXlv4D2RuoweJmU+GOTmqDXrqU2HldCJhh6z0T25/M8/Eu/lQTlZU69cIy4QqNM/OA3v11ye7cdjewfrbZzmUw== 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=tDMeWkQZzteeIOOFoc0ImB0cVMfq2CkcvByg+yFcTdI=; b=qtM+3ZkP4K+XDt+qtE4zO3/kWUxZuizyhIETryCtee4s5KNFQeklL3NQpD3h/4IiDZAXLeVe3U59Dsiw58iPPQ/+kEqDkeIx6IxlQuUZ+ymuFSAHtd1TStLRaPFJoelfJt1915pQnUIm4FpVDnxnxk16Y5N8jjrJyK5fnZ8NnOq/PBtl+fKySNLj3RHACjcDli+u5dPR9OekDV2qL27CoIxdkOTCjXsUL1ElgUifxZzL+MzohFPgKrP11fTrSIEEo/4qSa2EzLsk3hrYQLCfVJ6Kn8Pkh9LIBBsloldrOUBPbU7/YJLdMpO7f4mDSG+OVHhVXeB9qyJJqyC3g42frg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 3.248.88.141) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=bbl.ms.philips.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=philips.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philips.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tDMeWkQZzteeIOOFoc0ImB0cVMfq2CkcvByg+yFcTdI=; b=FjFAQkrnvqup9/2e8cDQgvcuPZ7vpLKoeFug+UaeRl4itaKIvgdg0rLT3NSGc3l4iVqhhc+/OuhcyQa1C3qK0qrsNxX1xGGS0jyyg0ADBgr92waNOj+eLwBVEKe5vCkIKLi/gDT1AcTV97v86MS0A88TdytzPfWvNM3Ne3dPsW4= Received: from AS4PR10CA0028.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:5d8::13) by PA6P122MB0388.EURP122.PROD.OUTLOOK.COM (2603:10a6:102:508::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9275.16; Tue, 4 Nov 2025 09:30:29 +0000 Received: from AM3PEPF00009BA2.eurprd04.prod.outlook.com (2603:10a6:20b:5d8:cafe::d8) by AS4PR10CA0028.outlook.office365.com (2603:10a6:20b:5d8::13) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9298.7 via Frontend Transport; Tue, 4 Nov 2025 09:30:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 3.248.88.141) smtp.mailfrom=bbl.ms.philips.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=philips.com; Received-SPF: Pass (protection.outlook.com: domain of bbl.ms.philips.com designates 3.248.88.141 as permitted sender) receiver=protection.outlook.com; client-ip=3.248.88.141; helo=ext-eur1.smtp.philips.com; pr=C Received: from ext-eur1.smtp.philips.com (3.248.88.141) by AM3PEPF00009BA2.mail.protection.outlook.com (10.167.16.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9298.6 via Frontend Transport; Tue, 4 Nov 2025 09:30:28 +0000 Received: from smtprelay-eur1.philips.com ([130.138.84.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by ext-eur1.smtp.philips.com with ESMTPS id G8grvkEbEtKtZGDMyv9Fls; Tue, 04 Nov 2025 10:30:28 +0100 Received: from mail.bbl.ms.philips.com ([130.143.87.230]) by smtprelay-eur1.philips.com with ESMTP id GDMyvOuECIHN7GDMyvacfa; Tue, 04 Nov 2025 10:30:28 +0100 Received: from bbl2xbm1.bbl.ms.philips.com (bbl2xbm1.bbl.ms.philips.com [130.143.220.186]) by mail.bbl.ms.philips.com (Postfix) with ESMTP id 93A9F184885; Tue, 4 Nov 2025 10:30:28 +0100 (CET) Received: by bbl2xbm1.bbl.ms.philips.com (Postfix, from userid 2462) id 90845300108; Tue, 4 Nov 2025 10:30:28 +0100 (CET) From: Timotheus Giuliani To: openembedded-devel@lists.openembedded.org CC: Timotheus Giuliani Subject: [meta-oe][PATCH 2/2] fluentbit: add support for in-ebpf plugin Date: Tue, 4 Nov 2025 10:30:17 +0100 Message-ID: <20251104093017.474084-2-timotheus.giuliani@philips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251104093017.474084-1-timotheus.giuliani@philips.com> References: <20251104093017.474084-1-timotheus.giuliani@philips.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF00009BA2:EE_|PA6P122MB0388:EE_ X-MS-Office365-Filtering-Correlation-Id: 85b3df34-19fe-4fc7-7b00-08de1b84cb0f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: jJtyASy/EYPqexDlXz7n2X2RkBCQQrCuY/OcVdNP7+FptgJ7e4rDDljsC+UQjnWcvSojqC1ohvPdGN3IKchkXgcIWhxm/KzTF7s7Zd4Zid6IFTACnNRo76oz//I63ev81pGzb6UAwZ3WfHqiRzi8uYDBcvXwy7GFNLfE5j/JvBx1SAAAc+mcAv8a5XN3QEPNOvLkWydY9UpBi26qfOXvcWG7/McbS8PbGyMovf/leDPZE2aA/XhN3hr1ise4mVqSaIqCJZAsVfDbG20Yob21gShVI3wt9dm6WlPaW6B+CppZq1y4Yrg34+Fy9oURUilDzachWRVbnIIR1ymkCP2n3+t8Yvz9O1+tzp7gq2IgYGYroDHZgCweeDJyI5EGzLPMrJ2KR26rMUl42yZiA4c3ZIwZ1zvdEY0oXd70hlfOgpdKUZuax9N63WtiBsRzCHEwUU2aYrSYIpxwFO0JDYC2cHJNRgjU4r77vreRCokwQFcoW12O7d/80omIsciH+Cmvrd4od8P8fgO0+SCQfcJOgAu0V09Il8h0WBS/6roDYN3on2XVg2kd9wpXlLJZv8tyXGFF4/rgYP/DHmUZGrzjmZpFt1m218empekArpyvOQBdoA288qQuF7wa6DJ74KvFLbRAcrU77qjm5qnHYTONkc6yDL5n0WU087PkHDO/vNLldwn/n9tYU/oxUfUJ70l6fVj2orYOlmwSwLXlf2Ew4bvvdthWU6qwxiW1hBMElPg/9fO8IbbH6iDnSjIMwwwUDwa7anGoZ6PsMjRJ1XDLiFGTt5oEgWuUliRici4wiSgVZqaGnMBnvWy9U2BuLZJLavSHPzzwwuhgSbAktuVGeYFV8T6k5pELskRsj0sCKMZYEzhFyPBVe1O11JovY8kXW3Qn/wAFx4BYOdO1OrENIMsrHuP58MnTsQyMZ9CJQALDItLEckgW0wLxOnTmC4MMKtRo6nQTc0WvMLtcS7bouzDkvZCTDYgxGpo6maamQyLWS6lqoAnJAjoN5WfdNhtM126Bh1MAZs0ZXhLVNGTxkmGeQIvrZ6PFsfERJHFYZ08lOTNhdFOm6UmGxc5zTiM9qmfSpwmowx3XM2Z6v5n/WxjsbXHvE3DsjYubvrai4I2sBQSlTBkCTPJecGE25+HcOjqDmvbMMMdMIjOU1eWgVyghcBhDpmwnQL+QsZIy5501ozYyK4R8LIxEorTWrKPe/CjTemvmS51Lx8cOqp6W9WIy4iqWDgA1atx3CC16r3N8S9xMaE919UgYSkZilB8RwZA0Ik5XAME6moMxg97muI+R/TWGnYhastJA5MRH1KE1DXUKET2iJ+cRyw3YIdhV0zH21994lGuAgoGdDONtuqam7jpWXsbwcDM1LiXGxAAIAAAU6uuOfTSN5288KqOtFw+JR4x7YCVdkwLiHpZG48ISoNIQeuBya//kyW/6IjXFniJ6lB//LlFridrWSWp5I8Qr+TkhGVLTStE8V5WMfy6rOIl4A8lGVHb3Zg8ejBeQUojAVQrdxC6i/whObHOT8aQVB7OY1mhn+x8XHwt51qOKIy7V+PDwuFZ5oZuflpE= X-Forefront-Antispam-Report: CIP:3.248.88.141;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ext-eur1.smtp.philips.com;PTR:ext-eur1.smtp.philips.com;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: philips.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2025 09:30:28.9022 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85b3df34-19fe-4fc7-7b00-08de1b84cb0f X-MS-Exchange-CrossTenant-Id: 1a407a2d-7675-4d17-8692-b3ac285306e4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1a407a2d-7675-4d17-8692-b3ac285306e4;Ip=[3.248.88.141];Helo=[ext-eur1.smtp.philips.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF00009BA2.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6P122MB0388 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 ; Tue, 04 Nov 2025 11:24:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121292 Introduce support for the in-ebpf plugin in the Fluent Bit recipe, which was added as an experimental feature in Fluent Bit version 4.0. The new PACKAGECONFIG option enables building the eBPF input plugin when explicitly configured, adding the necessary build dependencies including bpftool-native, clang-native, and libbpf. The recipe also configures the LIBC_PATH for compilation environments to ensure to point to the correct target system's C library when the eBPF plugin is enabled. Signed-off-by: Timotheus Giuliani --- ...root-include-path-for-system-headers.patch | 31 ++++++++ ...coded-target-architecture-definition.patch | 54 ++++++++++++++ ...tting-LIBC_PATH-from-external-config.patch | 73 +++++++++++++++++++ .../fluentbit/fluentbit_4.0.1.bb | 7 ++ 4 files changed, 165 insertions(+) create mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/0006-cmake-add-recipe-sysroot-include-path-for-system-headers.patch create mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/0007-bpf-remove-hardcoded-target-architecture-definition.patch create mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/0008-cmake-allow-setting-LIBC_PATH-from-external-config.patch diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0006-cmake-add-recipe-sysroot-include-path-for-system-headers.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0006-cmake-add-recipe-sysroot-include-path-for-system-headers.patch new file mode 100644 index 0000000000..2b73f48334 --- /dev/null +++ b/meta-oe/recipes-extended/fluentbit/fluentbit/0006-cmake-add-recipe-sysroot-include-path-for-system-headers.patch @@ -0,0 +1,31 @@ +From 9f47cc69683a842efdf6c31ea25b7b423ba3fc7e Mon Sep 17 00:00:00 2001 +From: Timotheus Giuliani +Date: Tue, 7 Oct 2025 17:33:14 +0200 +Subject: [PATCH 1/3] cmake: add recipe sysroot include path for system headers + +The CMakeLists.txt was missing the recipe sysroot include path, which +prevented the build system from finding required system headers during +compilation. This commit adds the recipe sysroot directory to the +include path so that headers provided by the sysroot, such as +BPF headers and other system dependencies, can be properly located and +included during the build process. +Without this change, the build would fail to find essential headers +when building in compilation environment. + +Signed-off-by: Timotheus Giuliani +--- + plugins/in_ebpf/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/plugins/in_ebpf/CMakeLists.txt b/plugins/in_ebpf/CMakeLists.txt +index 476c07774..216b2ffce 100644 +--- a/plugins/in_ebpf/CMakeLists.txt ++++ b/plugins/in_ebpf/CMakeLists.txt +@@ -91,6 +91,7 @@ foreach(TRACE_C_FILE ${TRACE_C_FILES}) + -I${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/includes/external + -I${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/includes + -I${VMLINUX_PATH} # Include the correct vmlinux.h based on architecture ++ --sysroot=${CMAKE_SYSROOT} # Add yocto recipe sysroot to find "system headers" + -c ${TRACE_C_FILE} + -o ${TRACE_OBJ_FILE} + DEPENDS ${TRACE_C_FILE} ebpf-generated-directory diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0007-bpf-remove-hardcoded-target-architecture-definition.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0007-bpf-remove-hardcoded-target-architecture-definition.patch new file mode 100644 index 0000000000..f30005e986 --- /dev/null +++ b/meta-oe/recipes-extended/fluentbit/fluentbit/0007-bpf-remove-hardcoded-target-architecture-definition.patch @@ -0,0 +1,54 @@ +From df05870068f0d1fe092650bb1ba0a518fb540550 Mon Sep 17 00:00:00 2001 +From: Timotheus Giuliani +Date: Tue, 7 Oct 2025 17:34:28 +0200 +Subject: [PATCH 2/3] bpf: remove hardcoded target architecture definition + +The BPF programs was hardcoding the TARGET_ARCH_x86 definition, which +prevented successful builds on other architectures such as ARM64. +This commit removes the hardcoded architecture definition from the bpf +source files, allowing the CMake build system to properly set the +target architecture based on the actual build environment. + +Signed-off-by: Timotheus Giuliani +--- + plugins/in_ebpf/traces/bind/bpf.c | 2 -- + plugins/in_ebpf/traces/malloc/bpf.c.in | 3 --- + plugins/in_ebpf/traces/signal/bpf.c | 2 -- + 3 files changed, 7 deletions(-) + +diff --git a/plugins/in_ebpf/traces/bind/bpf.c b/plugins/in_ebpf/traces/bind/bpf.c +index 1712bf67e..da9d7c3f1 100644 +--- a/plugins/in_ebpf/traces/bind/bpf.c ++++ b/plugins/in_ebpf/traces/bind/bpf.c +@@ -2,8 +2,6 @@ + /* Copyright (c) 2021 Hengqi Chen */ + /* Copyright (c) 2024 The Inspektor Gadget authors */ + +-#define __TARGET_ARCH_x86 +- + #include + + #define _LINUX_TYPES_H // Prevent redefinition of linux/types.h +diff --git a/plugins/in_ebpf/traces/malloc/bpf.c.in b/plugins/in_ebpf/traces/malloc/bpf.c.in +index c37d3952a..ace4acdbe 100644 +--- a/plugins/in_ebpf/traces/malloc/bpf.c.in ++++ b/plugins/in_ebpf/traces/malloc/bpf.c.in +@@ -1,6 +1,3 @@ +-#define __TARGET_ARCH_x86 +- +- + #include + + #define _LINUX_TYPES_H // Prevent redefinition of linux/types.h +diff --git a/plugins/in_ebpf/traces/signal/bpf.c b/plugins/in_ebpf/traces/signal/bpf.c +index 7d4503c22..3f017b325 100644 +--- a/plugins/in_ebpf/traces/signal/bpf.c ++++ b/plugins/in_ebpf/traces/signal/bpf.c +@@ -1,7 +1,5 @@ + // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) + /* Copyright (c) 2021~2022 Hengqi Chen */ +-#define __TARGET_ARCH_x86_64 +- + #include + + #define _LINUX_TYPES_H // Prevent redefinition of linux/types.h diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0008-cmake-allow-setting-LIBC_PATH-from-external-config.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0008-cmake-allow-setting-LIBC_PATH-from-external-config.patch new file mode 100644 index 0000000000..57f4d899cd --- /dev/null +++ b/meta-oe/recipes-extended/fluentbit/fluentbit/0008-cmake-allow-setting-LIBC_PATH-from-external-config.patch @@ -0,0 +1,73 @@ +From ab01dffe9bf2f1208ec4cea0a1582196cfbc0f87 Mon Sep 17 00:00:00 2001 +From: Timotheus Giuliani +Date: Wed, 8 Oct 2025 14:24:36 +0200 +Subject: [PATCH 3/3] cmake: allow setting LIBC_PATH from external + configuration + +The CMakeLists.txt file was automatically detecting the libc library +path based on the system distribution. This change allows the LIBC_PATH +to be set externally through build configuration, which is useful for +compilation environments where the library path is known in advance. +The auto-detection logic is kept as a fallback when LIBC_PATH is not +provided from external configuration. + +Signed-off-by: Timotheus Giuliani +--- + plugins/in_ebpf/CMakeLists.txt | 43 ++++++++++++++++++---------------- + 1 file changed, 23 insertions(+), 20 deletions(-) + +diff --git a/plugins/in_ebpf/CMakeLists.txt b/plugins/in_ebpf/CMakeLists.txt +index 216b2ffce..1c5e55785 100644 +--- a/plugins/in_ebpf/CMakeLists.txt ++++ b/plugins/in_ebpf/CMakeLists.txt +@@ -25,27 +25,30 @@ include_directories( + add_library(gadget INTERFACE) + target_include_directories(gadget INTERFACE ${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/includes/external/gadget) + +-set(LIBC_PATH "/lib64/libc.so.6") + +-find_program(LSB_RELEASE_EXEC lsb_release) +-if (LSB_RELEASE_EXEC) +- execute_process(COMMAND ${LSB_RELEASE_EXEC} -i +- OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT +- OUTPUT_STRIP_TRAILING_WHITESPACE +- ) +- +- message(STATUS "##### lsb_release -i -- ${LSB_RELEASE_ID_SHORT}") +- +- if (LSB_RELEASE_ID_SHORT MATCHES "Ubuntu" OR +- LSB_RELEASE_ID_SHORT MATCHES "Debian" OR +- LSB_RELEASE_ID_SHORT MATCHES "LinuxMint") +- # Just added for the future enhancement +- if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm64|aarch64)") +- set(LIBC_PATH "/usr/lib/aarch64-linux-gnu/libc.so.6") +- elseif (CMAKE_SIZEOF_VOID_P EQUAL 8) +- set(LIBC_PATH "/usr/lib/x86_64-linux-gnu/libc.so.6") +- elseif (CMAKE_SIZEOF_VOID_P EQUAL 4) +- set(LIBC_PATH "/usr/lib/i386-linux-gnu/libc.so.6") ++if(NOT DEFINED LIBC_PATH OR LIBC_PATH STREQUAL "") ++ set(LIBC_PATH "/lib64/libc.so.6") ++ ++ find_program(LSB_RELEASE_EXEC lsb_release) ++ if (LSB_RELEASE_EXEC) ++ execute_process(COMMAND ${LSB_RELEASE_EXEC} -i ++ OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT ++ OUTPUT_STRIP_TRAILING_WHITESPACE ++ ) ++ ++ message(STATUS "##### lsb_release -i -- ${LSB_RELEASE_ID_SHORT}") ++ ++ if (LSB_RELEASE_ID_SHORT MATCHES "Ubuntu" OR ++ LSB_RELEASE_ID_SHORT MATCHES "Debian" OR ++ LSB_RELEASE_ID_SHORT MATCHES "LinuxMint") ++ # Just added for the future enhancement ++ if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm64|aarch64)") ++ set(LIBC_PATH "/usr/lib/aarch64-linux-gnu/libc.so.6") ++ elseif (CMAKE_SIZEOF_VOID_P EQUAL 8) ++ set(LIBC_PATH "/usr/lib/x86_64-linux-gnu/libc.so.6") ++ elseif (CMAKE_SIZEOF_VOID_P EQUAL 4) ++ set(LIBC_PATH "/usr/lib/i386-linux-gnu/libc.so.6") ++ endif() + endif() + endif() + endif() diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb b/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb index 4d82abc783..05dcd2cca7 100644 --- a/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb +++ b/meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb @@ -23,6 +23,9 @@ SRC_URI = "\ file://0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch \ file://0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch \ file://0003-CMakeLists.txt-Revise-init-manager-deduction.patch \ + file://0006-cmake-add-recipe-sysroot-include-path-for-system-headers.patch \ + file://0007-bpf-remove-hardcoded-target-architecture-definition.patch \ + file://0008-cmake-allow-setting-LIBC_PATH-from-external-config.patch \ " SRC_URI:append:libc-musl = "\ file://0004-chunkio-Link-with-fts-library-with-musl.patch \ @@ -112,6 +115,10 @@ PACKAGECONFIG[minimal] = "-DFLB_MINIMAL=Yes,-DFLB_MINIMAL=No" PACKAGECONFIG[in-kafka] = "-DFLB_KAFKA=ON -DFLB_IN_KAFKA=ON,-DFLB_KAFKA=OFF -DFLB_IN_KAFKA=OFF,librdkafka curl" PACKAGECONFIG[out-kafka] = "-DFLB_KAFKA=ON -DFLB_OUT_KAFKA=ON,-DFLB_KAFKA=OFF -DFLB_OUT_KAFKA=OFF,librdkafka curl" +# Add ebpf input +PACKAGECONFIG[in-ebpf] = "-DFLB_IN_EBPF=Yes,-DFLB_IN_EBPF=No, bpftool-native clang-native libbpf" +EXTRA_OECMAKE:append = " ${@bb.utils.contains('PACKAGECONFIG', 'in-ebpf', '-DLIBC_PATH=${libdir}/libc.so.6', '', d)}" + SYSTEMD_SERVICE:${PN} = "fluent-bit.service" inherit cmake systemd pkgconfig