From patchwork Fri Aug 22 06:45:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: youngseok1.jeong@lge.com X-Patchwork-Id: 69021 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 0E68DCA0FE1 for ; Fri, 22 Aug 2025 06:45:22 +0000 (UTC) Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.52]) by mx.groups.io with SMTP id smtpd.web10.3670.1755845113015651801 for ; Thu, 21 Aug 2025 23:45:13 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: lge.com, ip: 156.147.23.52, mailfrom: youngseok1.jeong@lge.com) Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.52 with ESMTP; 22 Aug 2025 15:45:10 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: youngseok1.jeong@lge.com Received: from unknown (HELO ys-server..) (10.177.121.106) by 156.147.1.121 with ESMTP; 22 Aug 2025 15:45:10 +0900 X-Original-SENDERIP: 10.177.121.106 X-Original-MAILFROM: youngseok1.jeong@lge.com From: youngseok1.jeong@lge.com To: openembedded-core@lists.openembedded.org Cc: Youngseok Jeong Subject: [kirkstone][PATCH] libubootenv: backport patch to fix unknown type name 'size_t' Date: Fri, 22 Aug 2025 15:45:09 +0900 Message-Id: <20250822064509.2961306-1-youngseok1.jeong@lge.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 22 Aug 2025 06:45:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222306 From: Youngseok Jeong Fixes: ../recipe-sysroot/usr/include/libuboot.h:29:2: error: unknown type name 'size_t' size_t envsize; ^ This error can be avoided by using CXXFLAGS:append = " -include cstddef" but this way would be needed in all recipes that use libuboot.h. Therefore, Backport the patch to include . Signed-off-by: Youngseok Jeong --- ...-Include-cstddef-in-the-header-for-C.patch | 29 +++++++++++++++++++ meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb | 5 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch diff --git a/meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch b/meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch new file mode 100644 index 0000000000..e9e0723931 --- /dev/null +++ b/meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch @@ -0,0 +1,29 @@ +From 10c9a571f1c0472799f72b1924b039aab231e95f Mon Sep 17 00:00:00 2001 +From: Oleksandr Kravchuk +Date: Thu, 16 Dec 2021 16:19:50 +0100 +Subject: [PATCH] Include cstddef in the header for C++ + +So C++ compiler always has access to the definition of size_t. + +Signed-off-by: Oleksandr Kravchuk + +Upstream-Status: Backport [v0.3.3 https://github.com/sbabic/libubootenv/pull/19/commits/764226a7de2ea79b182d92829922489537c766fa] + +Signed-off-by: Youngseok Jeong +--- + src/libuboot.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/libuboot.h b/src/libuboot.h +index 88f0558..1f305f4 100644 +--- a/src/libuboot.h ++++ b/src/libuboot.h +@@ -6,6 +6,8 @@ + */ + + #ifdef __cplusplus ++#include ++ + extern "C" { + #endif + diff --git a/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb b/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb index e8f58941cf..e9ba98d59b 100644 --- a/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb +++ b/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb @@ -10,7 +10,10 @@ LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c" SECTION = "libs" -SRC_URI = "git://github.com/sbabic/libubootenv;protocol=https;branch=master" +SRC_URI = " \ + git://github.com/sbabic/libubootenv;protocol=https;branch=master \ + file://0001-Include-cstddef-in-the-header-for-C.patch \ +" SRCREV = "ba7564f5006d09bec51058cf4f5ac90d4dc18b3c" S = "${WORKDIR}/git"