From patchwork Mon Sep 15 06:17:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70146 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 C7968CAC58E for ; Mon, 15 Sep 2025 06:17:24 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.26093.1757917036818461557 for ; Sun, 14 Sep 2025 23:17:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=llQLuGq8; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F4IjhI3579479; Mon, 15 Sep 2025 06:17:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :message-id:mime-version:subject:to; s=PPS06212021; bh=fSaQBtnVU KOzUGb3oFJtfCYEPVcyxv4czNAyHsOg4/U=; b=llQLuGq8pvDJy23YV6BTgDePZ d2sHuen5RVv3uFrEqUXOtdX9Xflzq94R3iAYRqiMppnwGOyCrR2a8Fk/L36QG5NE HjkA5HqVTPZgw7EYfEctUvyzpWgsfGMUjLSn+7T+Y9zD5fHUFrCiLGHJtsTvXvC7 u6d1GIEShuf+OkJzkCn5g1BejuqAWyHO00A1ou5ZzQJKH6WNHfCw9nbyVLlsSbvI 0d7cjjHee0m1tXMR/veHipp+IZWYAJuJJSVVHobVV7BJtR+0NTMQIxaUrgnnO2jA 6WTG9J+VniHiktzdK8TpFPEKKhaXPnfhNnUGxKNoCtyGku+55VXiymWDd2iNg== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 494wu11rw2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 Sep 2025 06:17:13 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:45 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:44 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH 1/8] yocto-space-optimize.inc: move space optimize from recipe webkitgtk Date: Mon, 15 Sep 2025 14:17:36 +0800 Message-ID: <20250915061743.313230-1-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: ox9aPBbV30lqoX60DWzRbcM2L1qCH4yZ X-Authority-Analysis: v=2.4 cv=EP8G00ZC c=1 sm=1 tr=0 ts=68c7af69 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=NEAV23lmAAAA:8 a=t7CeM3EgAAAA:8 a=aKHO_vvw91AVMdgStSYA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: ox9aPBbV30lqoX60DWzRbcM2L1qCH4yZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfX4LxMTiV79oqi +rApm7IJGI3PKR/XNw7iFx5y6hYpdYHoRlhDsKXYkGOge8lTmsuQTgQQN3KoKN+/F599OdHXIwy nF2SJImVDdL92kknib2h4I6n/IseUaDStdUvuE+H/7i1HHcLtFN19XwEDHfeR466tUPVN4gAYsf 6CtWiLulfwshBGF0Kj0L8Q7qaONMw83JcjwwOU17Fzk9nClwDskj16fEq5KDzlQoajdM+lz6sB5 AeWP2d+IvhGMSHrCq9v1o/X3/JcekoQ5rl+IEe2EQx2ATj5AcFk51Z74K15mYBlB10F9j4Xuplp cj64fApWeNVXd8EAE3FD1RJxoD871a6vLTYzOmm065W9Si88m7soRKqPCCvg9Y= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 malwarescore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223377 The yocto-space-optimize.inc is used to allow turning off the debug compiler options for a small set of recipes to reduce build on disk footprint and package/sstate sizes [1]. Move space optimize from recipe webkitgtk to it. Due to commit [2], update comments to remove `Unless DEBUG_BUILD is enabled' [1] https://github.com/openembedded/openembedded-core/commit/a0483b962dfbba051de2c0b1acbe268579a81f22 [2] https://github.com/openembedded/openembedded-core/commit/9badf68d78d995f7d5d4cf27e045f029fc6d4044 Signed-off-by: Hongxu Jia --- meta/conf/distro/include/yocto-space-optimize.inc | 3 +++ meta/recipes-sato/webkit/webkitgtk_2.48.5.bb | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/meta/conf/distro/include/yocto-space-optimize.inc b/meta/conf/distro/include/yocto-space-optimize.inc index b83ba426e78..9e092df32ac 100644 --- a/meta/conf/distro/include/yocto-space-optimize.inc +++ b/meta/conf/distro/include/yocto-space-optimize.inc @@ -8,3 +8,6 @@ DEBUG_LEVELFLAG:pn-clang-native = "" DEBUG_LEVELFLAG:pn-nativesdk-clang = "" # With -g, qemu workdir is 10GB, qemu-dbg is 363MB DEBUG_LEVELFLAG:pn-qemu = "" +# Pass -g1 to massively reduce the size of the +# debug symbols (4.3GB to 700M at time of writing) +DEBUG_LEVELFLAG:pn-webkitgtk = "-g1" diff --git a/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb index 35b8ee2a901..46031322b92 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb @@ -98,10 +98,6 @@ EXTRA_OECMAKE = " \ -DENABLE_RELEASE_LOG=ON \ " -# Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of the -# debug symbols (4.3GB to 700M at time of writing) -DEBUG_LEVELFLAG = "-g1" - # Javascript JIT is not supported on ARC EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " # By default 25-bit "medium" calls are used on ARC From patchwork Mon Sep 15 06:17:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70149 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 C8F1ECAC594 for ; Mon, 15 Sep 2025 06:17:24 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.25938.1757917037556332003 for ; Sun, 14 Sep 2025 23:17:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=EasRgopF; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F4dbVl3224261; Mon, 15 Sep 2025 06:17:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=emtGzu8AQ21/rtJNIFYlhhsx/qpG5KcNhmwfcL2VtJ4=; b= EasRgopFFcgrEvsnKVwlyHUtNGm9m2djYWHW75tVdTnh0SYj3QaPty6eFJ8DaCGs Wmy5dGCJW+eTR/P2ql7PEovHj5DYIQxA3AWrzvP7Vv/9aEMRxBiiIc31DSXQ5O8c h5bj81L6kVj5/YCBEykS+ql1Mlo7Ie+zKiQKTvGDai3USejbsXnUQIrsh+HPuH5X RPvRhnii2RCZF9LYVjO5kXt+dleLRmffWJ+Bo7Sp4+8v1r9PW7GWOvSL4BZeX68d ooXIoY/nrCzNABuoSD+6SpN1hE+o4NQbidsZuAHJSQR0kT5LdrltPnK+DlaHeWnB DQngL82F1UVOvNpWB+41+w== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 494yk79puv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 Sep 2025 06:17:14 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:46 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:45 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH v2 2/8] distro/include: Add debug_build.inc when DEBUG_BUILD is enabled Date: Mon, 15 Sep 2025 14:17:37 +0800 Message-ID: <20250915061743.313230-2-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250915061743.313230-1-hongxu.jia@windriver.com> References: <20250915061743.313230-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=GZYXnRXL c=1 sm=1 tr=0 ts=68c7af6a cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=3-RhneuVAAAA:8 a=t7CeM3EgAAAA:8 a=kWqXF-ASCvSC9hEyKq8A:9 a=VLVLkjT_5ZicWzSuYqSo:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: k_jkHJua-RM3Gu-BIt_Aq7KvYk89HBe5 X-Proofpoint-ORIG-GUID: k_jkHJua-RM3Gu-BIt_Aq7KvYk89HBe5 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfX3RInBaiu1sAJ HBSdTDfBMGrUvysjV1Vmx1FtgbCLI9VmexSdtkNq58oIZ6Vh+tjFK45rnxmefo6yKTmLMsBlDn2 6faf818H56Wov+WKXD8kMfrkFWNEbPvlcJlD/hRsaorPgLpbdevwDpB17KB65vqAz9+JA4TArbX oUZGOlKODWm6JDrEcHv9lB8SsDVLsdmeUeFK8ni+EdJoGial3j2dPinGoCrZpWFa7AMSAazgJUj TOLqZSY11uMX/xO3AgEjvmwVG6mylcl8g6rN8BJbgbq2cRwx2i4fWKKwtNZ+fks759s5CDctX+g eU5Gi3Hr1jN0gcphUqh3F/ao+EOowFFABKHARu5o00flgDGsS462F4Jhcne1vU= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223378 Add a new include file debug_build.inc to override SELECTED_OPTIMIZATION and BUILD_OPTIMIZATION when DEBUG_BUILD is enabled Add separate variables FULL_OPTLEVEL, DEBUG_OPTLEVEL and BUILD_OPTLEVEL for the optimization level, and override it for specific recipe other than original remove and append DEBUG_OPTIMIZATION and BUILD_OPTIMIZATION Update the documentation for FULL_OPTIMIZATION and DEBUG_OPTIMIZATION Require the include file when DEBUG_BUILD is enabled Suggested-by: Peter Kjellerstedt Signed-off-by: Hongxu Jia --- meta/conf/bitbake.conf | 15 +++++++++------ meta/conf/distro/include/debug_build.inc | 8 ++++++++ meta/conf/documentation.conf | 8 +++++--- 3 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 meta/conf/distro/include/debug_build.inc diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 8e90c7bbc85..91dc51cd61d 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -658,13 +658,14 @@ DEBUG_PREFIX_MAP ?= "\ " DEBUG_LEVELFLAG ?= "-g" -FULL_OPTIMIZATION = "-O2 ${DEBUG_LEVELFLAG}" -DEBUG_OPTIMIZATION = "-Og ${DEBUG_LEVELFLAG}" -SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" -SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" +FULL_OPTLEVEL ?= "-O2" +FULL_OPTIMIZATION = "${FULL_OPTLEVEL} ${DEBUG_LEVELFLAG}" +SELECTED_OPTIMIZATION = "${FULL_OPTIMIZATION}" +SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_LEVELFLAG FULL_OPTLEVEL" # compiler flags for native/nativesdk -BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g', '-O2', d)}" -BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" +BUILD_OPTLEVEL ?= "-O2" +BUILD_OPTIMIZATION = "${BUILD_OPTLEVEL}" +BUILD_OPTIMIZATION[vardeps] += "BUILD_OPTLEVEL" ################################################################## # Reproducibility @@ -831,6 +832,8 @@ include conf/licenses.conf require conf/sanity.conf include conf/bblock.conf +require ${@oe.utils.vartrue('DEBUG_BUILD', 'conf/distro/include/debug_build.inc', '', d)} + ################################################################## # Weak variables (usually to retain backwards compatibility) ################################################################## diff --git a/meta/conf/distro/include/debug_build.inc b/meta/conf/distro/include/debug_build.inc new file mode 100644 index 00000000000..af947a80e8b --- /dev/null +++ b/meta/conf/distro/include/debug_build.inc @@ -0,0 +1,8 @@ +# Override SELECTED_OPTIMIZATION and BUILD_OPTIMIZATION when DEBUG_BUILD is enabled. +DEBUG_OPTLEVEL ?= "-Og" +DEBUG_OPTIMIZATION = "${DEBUG_OPTLEVEL} ${DEBUG_LEVELFLAG}" +SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}" +SELECTED_OPTIMIZATION[vardeps] += "DEBUG_OPTIMIZATION DEBUG_OPTLEVEL" +# compiler flags for native/nativesdk +BUILD_OPTLEVEL = "-Og" +BUILD_OPTIMIZATION = "${BUILD_OPTLEVEL} -g" diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index 741130a3921..824c4fb3801 100644 --- a/meta/conf/documentation.conf +++ b/meta/conf/documentation.conf @@ -129,8 +129,9 @@ CVE_CHECK_LAYER_INCLUDELIST[doc] = "Defines which layers to include during cve-c D[doc] = "The destination directory." DATE[doc] = "The date the build was started using YMD format." DATETIME[doc] = "The date and time the build was started." -DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable." -DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-Og ${DEBUG_LEVELFLAG}'." +DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable and add include file conf/distro/include/debug_build.inc" +DEBUG_OPTLEVEL[doc] = "The toolchain optimization level flags for debugging. This variable defaults to '-Og'" +DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '${DEBUG_OPTLEVEL} ${DEBUG_LEVELFLAG}'." DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority." DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)." DEPLOY_DIR[doc] = "Points to the general area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system." @@ -178,7 +179,8 @@ FILESPATH[doc] = "The default set of directories the OpenEmbedded build system u FILESYSTEM_PERMS_TABLES[doc] = "Allows you to define your own file permissions settings table as part of your configuration for the packaging process." FONT_EXTRA_RDEPENDS[doc] = "When a recipe inherits the fontcache class, this variable specifies runtime dependencies for font packages. This variable defaults to 'fontconfig-utils'." FONT_PACKAGES[doc] = "When a recipe inherits the fontcache class, this variable identifies packages containing font files that need to be cached by Fontconfig." -FULL_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling an optimized system. This variable defaults to '-O2 ${DEBUG_LEVELFLAG}'." +FULL_OPTLEVEL[doc] = "The toolchain optimization level flags. This variable defaults to '-O2'" +FULL_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling an optimized system. This variable defaults to '${FULL_OPTLEVEL} ${DEBUG_LEVELFLAG}'." #G From patchwork Mon Sep 15 06:17:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70150 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 E5525CAC59A for ; Mon, 15 Sep 2025 06:17:24 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.26094.1757917037786846179 for ; Sun, 14 Sep 2025 23:17:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=KjZgimgc; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F4dbVm3224261; Mon, 15 Sep 2025 06:17:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=AZ5hkvOyXTgIgsYt0fwIpwOU1CXcjy5lWAHv7yjDWvo=; b= KjZgimgcYy0G26SAopk+4tns9P5kbscWkGnSOCjMuQXqVZjF6dXBP2Ukm38IGgeh EdwyWQRUU/tWtuuF7Uk30rNerdEuxQtWMSQ5OKxT0uEkHtU6E1GspfGyEFcOhzNS CRl3yVm8eVqohOoyfJKVdRoW+AulRZysHD6D1HiEyH9sEizPMWY8bUMBN8WoJ4ff NfCujQpd2eWeEgK2TWTZOPWGWGpWg7aXmwTLPXcRYl7moZr1ThRzDYHH1Whdn03Z wHds0t7WHdC5NTooRdI0lHHgqEJ/zbKMZ8iRY28YMVtBORQOzuxU1ffHl+bQIC02 VBnd3jwDSVvQPvVqu90fMQ== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 494yk79puv-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 Sep 2025 06:17:15 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:48 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:47 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH v2 3/8] harfbuzz: set FULL_OPTLEVEL for FULL_OPTIMIZATION Date: Mon, 15 Sep 2025 14:17:38 +0800 Message-ID: <20250915061743.313230-3-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250915061743.313230-1-hongxu.jia@windriver.com> References: <20250915061743.313230-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=GZYXnRXL c=1 sm=1 tr=0 ts=68c7af6b cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=3-RhneuVAAAA:8 a=t7CeM3EgAAAA:8 a=cQB7R35s4zw8nPZc72UA:9 a=VLVLkjT_5ZicWzSuYqSo:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: 7h3qkdrPJHSSv2EiulZVSi04OurF1mW9 X-Proofpoint-ORIG-GUID: 7h3qkdrPJHSSv2EiulZVSi04OurF1mW9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfXxmnpq7zqcLsA +Mho6dCoAGoFG1WonYFuf0+uhjyhlCSRERaAc2vz2aCvuHQXKMZ4Nkw55g97ylEqmv8XZ0gRoa+ soksQMPL+Su8pTmT0s1X0TtZ4BG/nSh8Tgt6dPaPUwJEpOj1OVm5mSUNEOlnMVIpWtkb4WAuXMY Wrfv/X7VrRBiYElUy9pnp7L+VHeY+W3hawMheYGB8f0ebWFbTgBgH9MteL2y4LL8EQ60jqWErjM 1vTpOBzQ3P1d5O2oFl0eA5QBllnnEtuz965JmvE684a3ITRe3LKxsHkJL0UkGKhlRocxU7U03D+ 3e4UkWXWaffFQVG/nuaFs/ktJtPenFIdQ1sxXC9XchKG5dAadk84QM/66x9VyM= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223379 Due to commit [distro/include: Add debug_build.inc when DEBUG_BUILD is enabled] applied, it adds a new variable FULL_OPTLEVEL for optimization level of FULL_OPTIMIZATION. Use FULL_OPTLEVEL to instead of FULL_OPTIMIZATION Suggested-by: Peter Kjellerstedt Signed-off-by: Hongxu Jia --- meta/recipes-graphics/harfbuzz/harfbuzz_11.4.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_11.4.5.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_11.4.5.bb index 9e0e42b7174..9934ddcc5d1 100644 --- a/meta/recipes-graphics/harfbuzz/harfbuzz_11.4.5.bb +++ b/meta/recipes-graphics/harfbuzz/harfbuzz_11.4.5.bb @@ -21,7 +21,7 @@ GTKDOC_MESON_ENABLE_FLAG = 'enabled' GTKDOC_MESON_DISABLE_FLAG = 'disabled' # As per upstream CONFIG.md, it is recommended to always build with -Os. -FULL_OPTIMIZATION = "-Os ${DEBUG_LEVELFLAG}" +FULL_OPTLEVEL = "-Os" EXTRA_OEMESON = "-Dtests=disabled" From patchwork Mon Sep 15 06:17:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70151 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 00888CAC599 for ; Mon, 15 Sep 2025 06:17:25 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.26095.1757917039686859585 for ; Sun, 14 Sep 2025 23:17:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=PFXdhIn2; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F3daHj3127058; Mon, 15 Sep 2025 06:17:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=HSV7ITv5Xbtk716f6037gIIxRKswkDtJ18ZqZMwmHkc=; b= PFXdhIn2m+4cooegHCt7kf07xYZWmFBvmInZLn219kardBSvwL5XnGcWtkQBLcVf //6nda5Z926ofrwGek+A35klD0lPBtKFj2naQgpcBpZ8+lylopcQQoWMLDQisZwi dUVmGnc5kJM7WscNIAV5zyh43rUIdQT/aG/QB2eiB93KgLOa5hZ9vBg+TvivO5R8 NS1a8wStd9fvMqpIYYbHbqp8AJDf8HUFb67Oe8dWlypwkEcEm6VCIvXgys2gvv+f ZL4IbgVweFRXi0he1WnD+TCWQHlYd2j+XtTovHBDnDOgTGBwRtpq6sbB6egtmMk/ vznydk/wbpBbb9ul1+vpoQ== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 494yk79puw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 Sep 2025 06:17:16 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:49 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:48 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH v2 4/8] debug_build.inc: collect debug build tuning configuration Date: Mon, 15 Sep 2025 14:17:39 +0800 Message-ID: <20250915061743.313230-4-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250915061743.313230-1-hongxu.jia@windriver.com> References: <20250915061743.313230-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=GZYXnRXL c=1 sm=1 tr=0 ts=68c7af6c cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=iGHA9ds3AAAA:8 a=3-RhneuVAAAA:8 a=t7CeM3EgAAAA:8 a=p_J065krOJSGb3ilSzMA:9 a=IDjme54_S0fX3SJZ:21 a=nM-MV4yxpKKO9kiQg6Ot:22 a=VLVLkjT_5ZicWzSuYqSo:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: IzMSoPsEugtd8DWkg8jb-5TqUSY8DIuR X-Proofpoint-ORIG-GUID: IzMSoPsEugtd8DWkg8jb-5TqUSY8DIuR X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfX56bdFyaNvHyc uQZYdvsPzB1dlAhBIgfDImBUd4gRN27hSeJryL8tztoggCmn+3TtKVWkrJEnMGwTTtb3Tmdv8PM luffF+lFGi7llLHWOZOmcsCbcRnvT6ZDkvsla+LxIKgQ4N6AC6NMsEktNqActh7M4YvXNRDf7bU RwpHCg1uEt3yIJy9bMJXoXFmc+mCCz5Its1xwoalSMlR0jM5xMEwfH5/gsk27d8RnLuPN/rFc59 Nq5uFLN7SMjePKLNkInqOfIBEfKl4a3QO3aesXlbI9cGD1Q4HDcIp+3zPHqNfKuSkVgHgGBYDU+ Uj2tqKTR8BVdov/yNp60ojIXsvUMWk6yE1Zpl2QoO/GMufs/ReIOwMcq8sQUQQ= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223380 The modern compilers and code seem to require extra steps to avoid DEBUG errors, Move debug tuning configuration from recipes to an include file to address these errors. Introduce separate variables to avoid the :remove operations, such DEBUG_OPTLEVEL, BUILD_OPTLEVEL and OECMAKE_WEBKIT_NO_INLINE_HINTS Suggested-by: Peter Kjellerstedt Signed-off-by: Hongxu Jia --- meta/conf/distro/include/debug_build.inc | 37 +++++++++++++++++++ meta/recipes-connectivity/kea/kea_3.0.1.bb | 10 ----- .../debugedit/debugedit_5.2.bb | 2 - meta/recipes-devtools/gcc/gcc-sanitizers.inc | 3 -- .../python/python3-lxml_6.0.1.bb | 12 ------ meta/recipes-extended/bash/bash_5.3.bb | 3 -- meta/recipes-extended/mdadm/mdadm_4.4.bb | 2 - .../jpeg/libjpeg-turbo_3.1.2.bb | 3 -- .../vulkan-validation-layers_1.4.321.0.bb | 2 - meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb | 1 - meta/recipes-kernel/perf/perf.bb | 2 - meta/recipes-sato/webkit/webkitgtk_2.48.5.bb | 3 +- meta/recipes-support/vim/vim_9.1.bb | 2 +- 13 files changed, 40 insertions(+), 42 deletions(-) diff --git a/meta/conf/distro/include/debug_build.inc b/meta/conf/distro/include/debug_build.inc index af947a80e8b..43d5ae59d53 100644 --- a/meta/conf/distro/include/debug_build.inc +++ b/meta/conf/distro/include/debug_build.inc @@ -6,3 +6,40 @@ SELECTED_OPTIMIZATION[vardeps] += "DEBUG_OPTIMIZATION DEBUG_OPTLEVEL" # compiler flags for native/nativesdk BUILD_OPTLEVEL = "-Og" BUILD_OPTIMIZATION = "${BUILD_OPTLEVEL} -g" + +# The modern compilers and code seem to require extra steps to avoid DEBUG errors, +# this file collects debug tuning configuration to address DEBUG errors. + +DEBUG_OPTIMIZATION:append:pn-perf = " -Wno-error=maybe-uninitialized" +DEBUG_OPTIMIZATION:append:armv4:pn-libjpeg-turbo = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" +DEBUG_OPTIMIZATION:append:armv5:pn-libjpeg-turbo = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" +DEBUG_OPTIMIZATION:append:armv4:pn-bash = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" +DEBUG_OPTIMIZATION:append:armv5:pn-bash = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" +DEBUG_OPTIMIZATION:append:pn-mdadm = " -Wno-error" +DEBUG_OPTLEVEL:mips:pn-kea = "-O" +DEBUG_OPTLEVEL:mipsel:pn-kea = "-O" +# {standard input}: Assembler messages: +# {standard input}:1488805: Error: branch out of range +DEBUG_OPTLEVEL:mips:pn-python3-lxml = "-O" +DEBUG_OPTLEVEL:mipsel:pn-python3-lxml = "-O" +# used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized] +DEBUG_OPTIMIZATION:append:pn-gcc-sanitizers = " -Wno-error" + +BUILD_OPTLEVEL:mips:pn-kea = "-O" +BUILD_OPTLEVEL:mipsel:pn-kea = "-O" +# {standard input}: Assembler messages: +# {standard input}:1488805: Error: branch out of range +BUILD_OPTLEVEL:mips:pn-python3-lxml = "-O" +BUILD_OPTLEVEL:mipsel:pn-python3-lxml = "-O" + +CPPFLAGS:append:arm:pn-lttng-ust = " -DUATOMIC_NO_LINK_ERROR" + +OECMAKE_WEBKIT_NO_INLINE_HINTS:pn-webkitgtk = "-DWEBKIT_NO_INLINE_HINTS=ON" + +EXTRA_OECONF:append:pn-debugedit = " --disable-inlined-xxhash" +EXTRA_OECONF:append:pn-debugedit-native = " --disable-inlined-xxhash" +EXTRA_OECONF:append:pn-nativesdk-debugedit = " --disable-inlined-xxhash" + +lcl_maybe_fortify:pn-vim = "" + +CXXFLAGS:append:pn-vulkan-validation-layers = " -DXXH_NO_INLINE_HINTS=1" diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb index cc34c05093a..ead4e98e708 100644 --- a/meta/recipes-connectivity/kea/kea_3.0.1.bb +++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb @@ -34,16 +34,6 @@ INITSCRIPT_PARAMS = "defaults 30" SYSTEMD_SERVICE:${PN} = "kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service" SYSTEMD_AUTO_ENABLE = "disable" -DEBUG_OPTIMIZATION:remove:mips = " -Og" -DEBUG_OPTIMIZATION:append:mips = " -O" -BUILD_OPTIMIZATION:remove:mips = " -Og" -BUILD_OPTIMIZATION:append:mips = " -O" - -DEBUG_OPTIMIZATION:remove:mipsel = " -Og" -DEBUG_OPTIMIZATION:append:mipsel = " -O" -BUILD_OPTIMIZATION:remove:mipsel = " -Og" -BUILD_OPTIMIZATION:append:mipsel = " -O" - CXXFLAGS:remove = "-fvisibility-inlines-hidden" do_configure:prepend() { diff --git a/meta/recipes-devtools/debugedit/debugedit_5.2.bb b/meta/recipes-devtools/debugedit/debugedit_5.2.bb index 76c54ba63d4..4ac6cab559e 100644 --- a/meta/recipes-devtools/debugedit/debugedit_5.2.bb +++ b/meta/recipes-devtools/debugedit/debugedit_5.2.bb @@ -22,8 +22,6 @@ inherit pkgconfig autotools multilib_script RDEPENDS:${PN} += "bash elfutils-binutils" -EXTRA_OECONF = "${@oe.utils.vartrue('DEBUG_BUILD', '--disable-inlined-xxhash', '', d)}" - BBCLASSEXTEND = "native nativesdk" MULTILIB_SCRIPTS = "${PN}:${bindir}/find-debuginfo" diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc b/meta/recipes-devtools/gcc/gcc-sanitizers.inc index 6c81d302438..f4727ee6dba 100644 --- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc +++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc @@ -54,9 +54,6 @@ INHIBIT_DEFAULT_DEPS = "1" ALLOW_EMPTY:${PN} = "1" DEPENDS = "virtual/crypt gcc-runtime virtual/cross-cc" -# used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized] -DEBUG_OPTIMIZATION:append = " -Wno-error" - BBCLASSEXTEND = "nativesdk" PACKAGES = "${PN} ${PN}-dbg" diff --git a/meta/recipes-devtools/python/python3-lxml_6.0.1.bb b/meta/recipes-devtools/python/python3-lxml_6.0.1.bb index 5d76641675c..6bcd399da54 100644 --- a/meta/recipes-devtools/python/python3-lxml_6.0.1.bb +++ b/meta/recipes-devtools/python/python3-lxml_6.0.1.bb @@ -23,18 +23,6 @@ SRC_URI[sha256sum] = "2b3a882ebf27dd026df3801a87cf49ff791336e0f94b0fad195db77e01 SRC_URI += "${PYPI_SRC_URI}" inherit pkgconfig pypi setuptools3 -# {standard input}: Assembler messages: -# {standard input}:1488805: Error: branch out of range -DEBUG_OPTIMIZATION:remove:mips = " -Og" -DEBUG_OPTIMIZATION:append:mips = " -O" -BUILD_OPTIMIZATION:remove:mips = " -Og" -BUILD_OPTIMIZATION:append:mips = " -O" - -DEBUG_OPTIMIZATION:remove:mipsel = " -Og" -DEBUG_OPTIMIZATION:append:mipsel = " -O" -BUILD_OPTIMIZATION:remove:mipsel = " -Og" -BUILD_OPTIMIZATION:append:mipsel = " -O" - BBCLASSEXTEND = "native nativesdk" RDEPENDS:${PN} += "libxml2 libxslt python3-compression" diff --git a/meta/recipes-extended/bash/bash_5.3.bb b/meta/recipes-extended/bash/bash_5.3.bb index b50a48d28c9..74671f5a563 100644 --- a/meta/recipes-extended/bash/bash_5.3.bb +++ b/meta/recipes-extended/bash/bash_5.3.bb @@ -15,9 +15,6 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ SRC_URI[tarball.sha256sum] = "0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba" -DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" -DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" - CFLAGS += "-std=gnu17" # mkbuiltins.c is built with native toolchain and needs gnu17 as well: # http://errors.yoctoproject.org/Errors/Details/853016/ diff --git a/meta/recipes-extended/mdadm/mdadm_4.4.bb b/meta/recipes-extended/mdadm/mdadm_4.4.bb index 26a60e4c1a3..e81b8fdf3cb 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.4.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.4.bb @@ -39,8 +39,6 @@ EXTRA_OEMAKE = 'CHECK_RUN_DIR=0 CWFLAGS="" CXFLAGS="${CFLAGS}" SYSTEMD_DIR=${sys BINDIR="${base_sbindir}" UDEVDIR="${nonarch_base_libdir}/udev" LDFLAGS="${LDFLAGS}" \ SYSROOT="${STAGING_DIR_TARGET}" STRIP=' -DEBUG_OPTIMIZATION:append = " -Wno-error" - do_install() { oe_runmake 'DESTDIR=${D}' install install-systemd install -d ${D}/${sysconfdir}/ diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.1.2.bb b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.1.2.bb index d4877bb92b5..bc9d803f6b9 100644 --- a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.1.2.bb +++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.1.2.bb @@ -44,9 +44,6 @@ EXTRA_OECMAKE:append:class-target:powerpc = " ${@bb.utils.contains("TUNE_FEATURE EXTRA_OECMAKE:append:class-target:powerpc64 = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "-DWITH_SIMD=False", d)}" EXTRA_OECMAKE:append:class-target:powerpc64le = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "-DWITH_SIMD=False", d)}" -DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" -DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" - # libjpeg-turbo-2.0.2/simd/mips/jsimd_dspr2.S # :13:5: error: invalid token in expression # .if $17 != 0 diff --git a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb index 466e757a908..fa7873b62d3 100644 --- a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb +++ b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb @@ -26,8 +26,6 @@ EXTRA_OECMAKE = "\ -DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \ " -CXXFLAGS:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '-DXXH_NO_INLINE_HINTS=1', '', d)}" - PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr" PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" diff --git a/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb b/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb index 1a15c5b4201..0d4c67f0fa7 100644 --- a/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb +++ b/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb @@ -16,7 +16,6 @@ inherit autotools lib_package manpages python3native pkgconfig include lttng-platforms.inc EXTRA_OECONF = "--disable-numa" -CPPFLAGS:append:arm = "${@oe.utils.vartrue('DEBUG_BUILD', '-DUATOMIC_NO_LINK_ERROR', '', d)}" DEPENDS = "liburcu util-linux" RDEPENDS:${PN}-bin = "python3-core" diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index e1915207eed..98dffd1cc99 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -415,8 +415,6 @@ FILES:${PN}-python = " \ " FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl" -DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized" - PACKAGESPLITFUNCS =+ "perf_fix_sources" perf_fix_sources () { diff --git a/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb index 46031322b92..ba08e8b9259 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.48.5.bb @@ -86,11 +86,12 @@ PACKAGECONFIG[gamepad] = "-DENABLE_GAMEPAD=ON,-DENABLE_GAMEPAD=OFF,libmanette" PACKAGECONFIG[sysprof-capture] = "-DUSE_SYSTEM_SYSPROF_CAPTURE=YES,-DUSE_SYSTEM_SYSPROF_CAPTURE=NO,sysprof" PACKAGECONFIG[speech] = "-DENABLE_SPEECH_SYNTHESIS=ON,-DENABLE_SPEECH_SYNTHESIS=OFF,flite" +OECMAKE_WEBKIT_NO_INLINE_HINTS ??= "-DWEBKIT_NO_INLINE_HINTS=OFF" EXTRA_OECMAKE = " \ -DPORT=GTK \ ${@oe.utils.vartrue('GI_DATA_ENABLED', '-DENABLE_INTROSPECTION=ON', '-DENABLE_INTROSPECTION=OFF', d)} \ ${@oe.utils.vartrue('GIDOCGEN_ENABLED', '-DENABLE_DOCUMENTATION=ON', '-DENABLE_DOCUMENTATION=OFF', d)} \ - ${@oe.utils.vartrue('DEBUG_BUILD', '-DWEBKIT_NO_INLINE_HINTS=ON', '-DWEBKIT_NO_INLINE_HINTS=OFF', d)} \ + ${OECMAKE_WEBKIT_NO_INLINE_HINTS} \ -DENABLE_MINIBROWSER=ON \ -DENABLE_BUBBLEWRAP_SANDBOX=OFF \ -DUSE_GTK4=ON \ diff --git a/meta/recipes-support/vim/vim_9.1.bb b/meta/recipes-support/vim/vim_9.1.bb index fee9f055e9a..a24a863ba5c 100644 --- a/meta/recipes-support/vim/vim_9.1.bb +++ b/meta/recipes-support/vim/vim_9.1.bb @@ -20,4 +20,4 @@ ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" # We override the default in security_flags.inc because vim (not vim-tiny!) will abort # in many places for _FORTIFY_SOURCE=2. Security flags become part of CC. # -lcl_maybe_fortify = "${@oe.utils.conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=1',d)}" +lcl_maybe_fortify = "-D_FORTIFY_SOURCE=1" From patchwork Mon Sep 15 06:17:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70152 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 00999CAC59C for ; Mon, 15 Sep 2025 06:17:25 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.25939.1757917041264073135 for ; Sun, 14 Sep 2025 23:17:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=Uyw3B2XJ; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F4sjov3636956; Mon, 15 Sep 2025 06:17:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=uecAA02ZAWebrfrU2D5I0R29kUmbp4LU4cp5Rxvjkvc=; b= Uyw3B2XJxF5BJDjaZm5Yjh1AA8RKQ/zvSJEKMDcfzNMDkua2k96j+dUieD42ekvC 0HwhiQnx2gumNi8DjVFLCRElw6iVPjrQRM9xQ4jtTEDFuGYZwUoqjydc1YJIMOgt B7SOOr+IaFfLPsP9YY2b2/7ybzVL11aAX5HRlLbQz83KSlYhC7koUmnDjcvr6owC Nc3CjuIu/O2Yn7DgHfC4zDMP4Gd3Rpq9VL6Xh2Raaa9PiEpBZfIIFUuBAqf8gAup cXCiqcuSRACLyEzvRetxFySiDIkCZz3AbUD8DO7mlMlYSs1v1qNFTymP8IZOA1iW ZFlqJumC4B/O12rW6VdTyA== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 494wu11rw5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 Sep 2025 06:17:18 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:50 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:49 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH v2 5/8] debug_build.inc: allow other layers to add their own debug build configurations Date: Mon, 15 Sep 2025 14:17:40 +0800 Message-ID: <20250915061743.313230-5-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250915061743.313230-1-hongxu.jia@windriver.com> References: <20250915061743.313230-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: Hi0vSTfKVYG4EUItutJmiMMvqanFSDzM X-Authority-Analysis: v=2.4 cv=EP8G00ZC c=1 sm=1 tr=0 ts=68c7af6e cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=3-RhneuVAAAA:8 a=t7CeM3EgAAAA:8 a=jD1-wL8APT1y50HIlawA:9 a=VLVLkjT_5ZicWzSuYqSo:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: Hi0vSTfKVYG4EUItutJmiMMvqanFSDzM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfXywrW9LXPYqW/ 1XjAEljH/ve8Uz9OfAxmXrHoteKaZV3t6BKfV8nhDz7Bnn8hWRNX+07+1Qn9T2GH0uVL8FIL9Iy 9H+pisi4G7q14w9n0IVjEtxFamO52EV7UNC8BF3DsmSJGaofMT4lcJgBPWECVtAW7ELRK/+M0WV IozQZ1WuTgNNl+tHEiiigzeqNe12d90iRsaxckIdWHJMBLe6c+Nkl+E1yhxHEq9ER4TdZsu39lO 79tqPdDEmWgjm+TXZTiD1aasdsXtBZOuS1ylPsR8vIUNjHj2yuf2wBhiEN8PV8BCPD0i6y6MjHe 9YOL2RCwJBhzQdXS3YJyX/NYvsZu3Q3IwiOWE2J6yGAgIsmipnDHIT5kLMj9L0= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 malwarescore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223381 When DEBUG_BUILD is enabled, allow other layers to add their own debug build configurations Suggested-by: Peter Kjellerstedt Signed-off-by: Hongxu Jia --- meta/conf/distro/include/debug_build.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/conf/distro/include/debug_build.inc b/meta/conf/distro/include/debug_build.inc index 43d5ae59d53..f594df4b107 100644 --- a/meta/conf/distro/include/debug_build.inc +++ b/meta/conf/distro/include/debug_build.inc @@ -43,3 +43,6 @@ EXTRA_OECONF:append:pn-nativesdk-debugedit = " --disable-inlined-xxhash" lcl_maybe_fortify:pn-vim = "" CXXFLAGS:append:pn-vulkan-validation-layers = " -DXXH_NO_INLINE_HINTS=1" + +# Allow other layers to add their own debug build configurations +include_all conf/include/debug_build.inc From patchwork Mon Sep 15 06:17:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70145 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 CF61FCA101F for ; Mon, 15 Sep 2025 06:17:24 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.26096.1757917042267958819 for ; Sun, 14 Sep 2025 23:17:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=QxD+aos0; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F252jX2974038; Mon, 15 Sep 2025 06:17:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=/PdU/w8H40M56Hn5N407NnAeOCX/Aujrx5Qqkrxp7/8=; b= QxD+aos0VkSd2qA6Ww/XN3C1EYsR4JAs5rW0YoYm3HHMcXksN+BU7iHrNHQOJooN 9JO3po+MtczYAgFq0IcaPFMnsRtukYKhCkwiF+eWh6ojb/qdExsjhBXXwNrlgCBv AS2Fx/GEfJmeip3IHjvpq741d1TnroqPgQvrljOSlHifgphJ/6kx3R04Uwq+zFls 6mC99QoVZJmOyG/s4+YhaovEJ7G/7cXwq6sz+81OlwwAieCGaLYX1RJjAWFgpM7R 7MfEmgUfE0uClAqV9UE7SO3murKQq2I86qE9LpIbSqTrC+h+tPOxXcX3OnQsk2vT w+ARSjvJOeuakHuxU8p9Iw== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 494yk79pv2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 Sep 2025 06:17:19 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:52 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:51 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH 6/8] debug_build.inc: override INHIBIT_SYSROOT_STRIP for cross and native Date: Mon, 15 Sep 2025 14:17:41 +0800 Message-ID: <20250915061743.313230-6-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250915061743.313230-1-hongxu.jia@windriver.com> References: <20250915061743.313230-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=GZYXnRXL c=1 sm=1 tr=0 ts=68c7af6f cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=t7CeM3EgAAAA:8 a=ZTSxEvWJ_2GTAduBev4A:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: SW2jHcNinGZWm47a8-D9YEkGAAasYs9I X-Proofpoint-ORIG-GUID: SW2jHcNinGZWm47a8-D9YEkGAAasYs9I X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfX6MIBQkdsELrS V/hawxu6KOuYlrXQgPttfPe0RB8bhj2sf7fp3955ntWE1gwwcgK/6rOwFKbHLV9WpuL/pnvwrmh QR10xw5AsH9tWw7v9uNt3uO48lC+k7ddASgFIXDS9Kvj/hS3OKzuge8Y2rdhFkv4JXuSUVT9Glt a6wlkx8x9r1oTygw1vNlv2s+pmxPNrdxojqEtp2HaCYV74HQNJb3eFMxoEmQCgZvp2s7TjTG698 jfmhWjkKH0vB4sfTh9+0WLa8AGIC3PKgzGPrFz2Y2C3QBO+OjcdsJslymcDqvo0qWk71WN9UN5o +h7r6QEOvJVXVa8w5nhPvV81jguub/Ll6hIc6viAndm24GpyzccRRmlnWE3cf4= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223382 The debug_build.inc is used to collect debug build configuration, override INHIBIT_SYSROOT_STRIP for cross and native bbclass when DEBUG_BUILD is enabled Signed-off-by: Hongxu Jia --- meta/classes-recipe/cross.bbclass | 3 +-- meta/classes-recipe/native.bbclass | 3 +-- meta/conf/distro/include/debug_build.inc | 4 ++++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/meta/classes-recipe/cross.bbclass b/meta/classes-recipe/cross.bbclass index 9abf166e50c..ede04950b5f 100644 --- a/meta/classes-recipe/cross.bbclass +++ b/meta/classes-recipe/cross.bbclass @@ -23,8 +23,7 @@ HOST_CC_ARCH = "${BUILD_CC_ARCH}" HOST_LD_ARCH = "${BUILD_LD_ARCH}" HOST_AS_ARCH = "${BUILD_AS_ARCH}" -# No strip sysroot when DEBUG_BUILD is enabled -INHIBIT_SYSROOT_STRIP ?= "${@oe.utils.vartrue('DEBUG_BUILD', '1', '', d)}" +INHIBIT_SYSROOT_STRIP ??= "" export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir} /lib /lib64 /usr/lib /usr/lib64" diff --git a/meta/classes-recipe/native.bbclass b/meta/classes-recipe/native.bbclass index 7d1fe343fa0..b3411d20ca2 100644 --- a/meta/classes-recipe/native.bbclass +++ b/meta/classes-recipe/native.bbclass @@ -118,8 +118,7 @@ PATH:prepend = "${COREBASE}/scripts/native-intercept:" # reused if we manipulate the paths. SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" -# No strip sysroot when DEBUG_BUILD is enabled -INHIBIT_SYSROOT_STRIP ?= "${@oe.utils.vartrue('DEBUG_BUILD', '1', '', d)}" +INHIBIT_SYSROOT_STRIP ??= "" python native_virtclass_handler () { import re diff --git a/meta/conf/distro/include/debug_build.inc b/meta/conf/distro/include/debug_build.inc index f594df4b107..979dd111fc9 100644 --- a/meta/conf/distro/include/debug_build.inc +++ b/meta/conf/distro/include/debug_build.inc @@ -44,5 +44,9 @@ lcl_maybe_fortify:pn-vim = "" CXXFLAGS:append:pn-vulkan-validation-layers = " -DXXH_NO_INLINE_HINTS=1" +# No strip sysroot for cross and native +INHIBIT_SYSROOT_STRIP:class-cross ?= "1" +INHIBIT_SYSROOT_STRIP:class-native ?= "1" + # Allow other layers to add their own debug build configurations include_all conf/include/debug_build.inc From patchwork Mon Sep 15 06:17:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70148 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 DACFCCAC597 for ; Mon, 15 Sep 2025 06:17:24 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.26097.1757917043524152165 for ; Sun, 14 Sep 2025 23:17:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=ljnaKNWo; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F5q3rX3730768; Mon, 15 Sep 2025 06:17:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=wCmfcJKJpmDMdjM35204qNHx1+/XtmH9Idxe+qDwrOs=; b= ljnaKNWogBW86+hhbP3X3W28E1K9cwW2bcNPlA1LLoQ3jzGQR7j22lQmVkIYNFME cQ5plBwTZdocrs0b3K8VyR0Y6zkOVgwuaP0AcgnW5HsmvSNBJbh+z1RUOSQOvrzv 7Cb23ppMtOzdmzjvHVJJYkyK1IvQ90vQESW5mlII7fO/C24SbXWqDL8uFH7Rw177 LlFMKATs9UEpoZtntiYd/qQwyYvPkaYbXW8xjc0/IlhweEdg33b2Ld+ZUjNx77GD yx+wNUmrlkKfUO0zKyifSXbvpSL3H8wvXU5CAoWJkNrsxh1xGUMDu8LRd3z9yqYC rttrHFDcyDugL+sxPcHDkQ== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 494wu11rwc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 Sep 2025 06:17:21 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:53 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:52 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH 7/8] debug_build.inc: override MESON_BUILDTYPE for meson.bbclass Date: Mon, 15 Sep 2025 14:17:42 +0800 Message-ID: <20250915061743.313230-7-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250915061743.313230-1-hongxu.jia@windriver.com> References: <20250915061743.313230-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 2ydUlclprLqC1cqhPQbQD1DFakWt4jhH X-Authority-Analysis: v=2.4 cv=EP8G00ZC c=1 sm=1 tr=0 ts=68c7af71 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=t7CeM3EgAAAA:8 a=NExZSWpPQYzSdC6iAAoA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: 2ydUlclprLqC1cqhPQbQD1DFakWt4jhH X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfX6d5og/2tVher sx/tUdD6ipdQgFQC3fqqm/jTYtM7fwxdli+uP3xf3svCmw+QhwE9hN4EccJxQlx4Sj5cgLJJG9l 94EMiQUw/ExW/SZiHRep27/K8RO2/yWLuZAGW0/oC7iOQnMmENDXBuSdbeePZjCDPRA2J2Vouvo RXp0C9I4SrcqmGDZxIhfwxB7wQ38apfSHZI7pyvOPPQ6x7GCCrK9Go+xUKr9rrWX5vcMmc4oTg+ 4MFy6wJ8svNzrz9VF3f+9jKe6bIQaCWZ6DQ1c3SX9edHjPUPyjYutBbnWmp3xFk3P31pMkhjrp8 RwQqcw5KU6dN9Tgi32YMVZcllr0s8xYx2ICRIUxxfdcigJ007GTjbcsBlpSPxE= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223383 The debug_build.inc is used to collect debug build configuration, override MESON_BUILDTYPE for meson.bbclass when DEBUG_BUILD is enabled Signed-off-by: Hongxu Jia --- meta/classes-recipe/meson.bbclass | 3 +-- meta/conf/distro/include/debug_build.inc | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass index c8b3e1ec29a..0944ea03cc2 100644 --- a/meta/classes-recipe/meson.bbclass +++ b/meta/classes-recipe/meson.bbclass @@ -28,8 +28,7 @@ MESON_INSTALL_TAGS ?= "" def noprefix(var, d): return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1) -MESON_BUILDTYPE ?= "${@oe.utils.vartrue('DEBUG_BUILD', 'debug', 'plain', d)}" -MESON_BUILDTYPE[vardeps] += "DEBUG_BUILD" +MESON_BUILDTYPE ??= "plain" MESONOPTS = " --prefix ${prefix} \ --buildtype ${MESON_BUILDTYPE} \ --bindir ${@noprefix('bindir', d)} \ diff --git a/meta/conf/distro/include/debug_build.inc b/meta/conf/distro/include/debug_build.inc index 979dd111fc9..e446a71dd3f 100644 --- a/meta/conf/distro/include/debug_build.inc +++ b/meta/conf/distro/include/debug_build.inc @@ -48,5 +48,8 @@ CXXFLAGS:append:pn-vulkan-validation-layers = " -DXXH_NO_INLINE_HINTS=1" INHIBIT_SYSROOT_STRIP:class-cross ?= "1" INHIBIT_SYSROOT_STRIP:class-native ?= "1" +# For meson.bbclass +MESON_BUILDTYPE ?= "debug" + # Allow other layers to add their own debug build configurations include_all conf/include/debug_build.inc From patchwork Mon Sep 15 06:17:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 70147 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 E4717CAC598 for ; Mon, 15 Sep 2025 06:17:24 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web10.25940.1757917044340196243 for ; Sun, 14 Sep 2025 23:17:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=BPJzxtC7; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=13531ce467=hongxu.jia@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58F5meuP3312489; Sun, 14 Sep 2025 23:17:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=86pT8JpKPXzQekc80pNSI6IQHX2WyepnlHnt7Mk8LlM=; b= BPJzxtC7yxXa9LXbW147Wz6VtSGKOASjbEffC9cMd/yp6CeB8I6AhEJ301PaPJGy tyBEnwB3Xslqg4qARHD7ZOYtCzEEsr85BtjXi1DYIilTlKILOhf+CpiteBOfkXrQ cujKdYk29eBezqwaEXfjpOJnv4q3kj+olZIIoINhOmSgl4dcrWGoRWFx2ZCo+7ne +bWxjLwu3nQpydtBEFE9BWZGR6cQhcZ69lWBhbe1Jxg+oIjcd6AwdDV5qLo3+skL sC7d9ZARunWMZwK3z+8oBvTgM0bjLLlnFqv5fBVP9HRG6CLp+n/gO+ZGdY+Nz8LA cL36GEm0uAgWnw33+XMR5g== Received: from ala-exchng01.corp.ad.wrs.com ([128.224.246.36]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 49584hhc73-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 14 Sep 2025 23:17:21 -0700 (PDT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Sun, 14 Sep 2025 23:17:54 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Sun, 14 Sep 2025 23:17:53 -0700 From: Hongxu Jia To: CC: , Subject: [PATCH 8/8] debug_build.inc: override BUILD_MODE and BUILD_DIR for meson.bbclass Date: Mon, 15 Sep 2025 14:17:43 +0800 Message-ID: <20250915061743.313230-8-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250915061743.313230-1-hongxu.jia@windriver.com> References: <20250915061743.313230-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=Pbj/hjhd c=1 sm=1 tr=0 ts=68c7af71 cx=c_pps a=AbJuCvi4Y3V6hpbCNWx0WA==:117 a=AbJuCvi4Y3V6hpbCNWx0WA==:17 a=yJojWOMRYYMA:10 a=t7CeM3EgAAAA:8 a=jLWCMTOL3Ij9-LriBIsA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTE1MDA1NSBTYWx0ZWRfX49PPI2s2mzDa INugzVRVlm2FZahttQgH5KBOYL+me6iJ80Ue3+J+ik7QVfAX/wKQtYlRIap4+BgMopo/5g4B9HR 250xq5t9zPEnEWBMsVkCTs9iqppdMm3EwCuDyE+OQ8I0zoGgpbMlJX69tqhD1Lu88OSvl1ooSTn IyIPYcVflW0sDHkXlWRebG0qIhTWW3+HPlRRCgLkkNs1Grij7EpFyEW2ZfMTZTAwlS7QQKgBV9z IBxTeRIA38nsOu0sL8t02XUA6ld+C0Zz7yjUN85zJy0GoZBAF9oKU9Sgl0vBt1Xbp5FKXCcfXcZ i3Ncc5LnBWplc5jjWXyz6aDwQLR50EtNpGShulKxHwS1i0pJMkD1g1MtS7ULFA= X-Proofpoint-GUID: BXnJq0iv2qluk21nquvVSzRrILDdidtB X-Proofpoint-ORIG-GUID: BXnJq0iv2qluk21nquvVSzRrILDdidtB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-15_02,2025-09-12_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 phishscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 adultscore=0 bulkscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun 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 ; Mon, 15 Sep 2025 06:17:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223384 The debug_build.inc is used to collect debug build configuration, override BUILD_MODE and BUILD_DIR for cargo.bbclass when DEBUG_BUILD is enabled Signed-off-by: Hongxu Jia --- meta/classes-recipe/cargo.bbclass | 4 ++-- meta/conf/distro/include/debug_build.inc | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/cargo.bbclass b/meta/classes-recipe/cargo.bbclass index 2dd28e95d33..c90b8c18f0d 100644 --- a/meta/classes-recipe/cargo.bbclass +++ b/meta/classes-recipe/cargo.bbclass @@ -31,7 +31,7 @@ B = "${WORKDIR}/build" export RUST_BACKTRACE = "1" RUSTFLAGS ??= "" -BUILD_MODE = "${@['--release', ''][d.getVar('DEBUG_BUILD') == '1']}" +BUILD_MODE ??= "--release" # --frozen flag will prevent network access (which is required since only # the do_fetch step is authorized to access network) # and will require an up to date Cargo.lock file. @@ -41,7 +41,7 @@ CARGO_BUILD_FLAGS = "-v --frozen --target ${RUST_HOST_SYS} ${BUILD_MODE} --manif # This is based on the content of CARGO_BUILD_FLAGS and generally will need to # change if CARGO_BUILD_FLAGS changes. -BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}" +BUILD_DIR ??= "release" CARGO_TARGET_SUBDIR = "${RUST_HOST_SYS}/${BUILD_DIR}" oe_cargo_build () { export RUSTFLAGS="${RUSTFLAGS}" diff --git a/meta/conf/distro/include/debug_build.inc b/meta/conf/distro/include/debug_build.inc index e446a71dd3f..e6f94504945 100644 --- a/meta/conf/distro/include/debug_build.inc +++ b/meta/conf/distro/include/debug_build.inc @@ -51,5 +51,9 @@ INHIBIT_SYSROOT_STRIP:class-native ?= "1" # For meson.bbclass MESON_BUILDTYPE ?= "debug" +# For cargo.bbclass +BUILD_MODE ?= "" +BUILD_DIR ?= "debug" + # Allow other layers to add their own debug build configurations include_all conf/include/debug_build.inc