Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Hongxu Jia <hongxu.jia@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
	hongxu.jia@eng.windriver.com, peter.kjellerstedt@axis.com,
	randy.macleod@windriver.com, raj.khem@gmail.com,
	openembedded-core@lists.openembedded.org,
	mathieu.dubois-briand@bootlin.com
Subject: Re: [OE-core] [PATCH v5 4/5] debug_build.inc: override MESON_BUILDTYPE for meson.bbclass
Date: Tue, 16 Dec 2025 17:08:15 +0800	[thread overview]
Message-ID: <05fd65ff-7965-482a-b2cc-c69fa20bae8a@windriver.com> (raw)
In-Reply-To: <bb5eb607ba04438257930310d17513b7b959d343.camel@linuxfoundation.org>

On 12/15/25 20:02, Richard Purdie wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Fri, 2025-10-10 at 15:52 +0800, hongxu via lists.openembedded.org
> wrote:
>> 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 <hongxu.jia@windriver.com>
>> ---
>>   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 c8b3e1ec29..0944ea03cc 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 1062326417..c8e2cf90cf 100644
>> --- a/meta/conf/distro/include/debug_build.inc
>> +++ b/meta/conf/distro/include/debug_build.inc
>> @@ -44,3 +44,6 @@ 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"
>> +
>> +# For meson.bbclass
>> +MESON_BUILDTYPE ?= "debug"
> Should we do this only for target by default?

Copy

//Hongxu

> Cheers,
>
> Richard
>



  reply	other threads:[~2025-12-16  9:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-10  7:52 [PATCH v5 1/5] distro/include: Add debug_build.inc when DEBUG_BUILD is enabled Hongxu Jia
2025-10-10  7:52 ` [PATCH v5 2/5] debug_build.inc: collect debug build tuning configuration Hongxu Jia
2025-10-10  7:52 ` [PATCH v5 3/5] debug_build.inc: override INHIBIT_SYSROOT_STRIP for cross and native Hongxu Jia
2025-12-15 12:02   ` [OE-core] " Richard Purdie
2025-12-16  9:07     ` Hongxu Jia
2025-10-10  7:52 ` [PATCH v5 4/5] debug_build.inc: override MESON_BUILDTYPE for meson.bbclass Hongxu Jia
2025-12-15 12:02   ` [OE-core] " Richard Purdie
2025-12-16  9:08     ` Hongxu Jia [this message]
2025-10-10  7:52 ` [PATCH v5 5/5] debug_build.inc: override BUILD_MODE and BUILD_DIR for cargo.bbclass Hongxu Jia
2025-12-15 12:04   ` [OE-core] " Richard Purdie
2025-12-16  9:08     ` Hongxu Jia
2025-12-15 12:00 ` [OE-core] [PATCH v5 1/5] distro/include: Add debug_build.inc when DEBUG_BUILD is enabled Richard Purdie
2025-12-15 12:30   ` Khem Raj
2025-12-16  9:06   ` Hongxu Jia
2025-12-17 20:43   ` Peter Kjellerstedt

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=05fd65ff-7965-482a-b2cc-c69fa20bae8a@windriver.com \
    --to=hongxu.jia@windriver.com \
    --cc=hongxu.jia@eng.windriver.com \
    --cc=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.com \
    --cc=raj.khem@gmail.com \
    --cc=randy.macleod@windriver.com \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

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

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