From patchwork Fri Jul 12 06:47:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 46234 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 97C4FC2BD09 for ; Fri, 12 Jul 2024 06:47:40 +0000 (UTC) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by mx.groups.io with SMTP id smtpd.web11.2078.1720766850664913480 for ; Thu, 11 Jul 2024 23:47:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=MSjeZXg8; spf=pass (domain: linuxfoundation.org, ip: 209.85.167.53, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52caebc6137so1300553e87.0 for ; Thu, 11 Jul 2024 23:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1720766848; x=1721371648; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=qcbrK+o/zF9ZslnCnPuk7TSTUaKkG1qTIFniVgaGUrc=; b=MSjeZXg8MIkxQym5OrFB0T9JOmU5OOzknMXmLEifB98Okxl7dKziHN307J/PKkOhY0 wqFc1NW11kOML1W/6ZGbn70xvr7xnuAJgrZJwdT3UY4xLhXfLH2Cxywi0GOvG2dOgFKt l+NfuQpnhzxNX+6WctWknpMxJ6AxZa4yMcr2k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720766848; x=1721371648; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qcbrK+o/zF9ZslnCnPuk7TSTUaKkG1qTIFniVgaGUrc=; b=hGH0OrZV/s01i6vSRjMIvVbURguHQCPm6BUhLbCJPpdZbE8QvXuvf/7eNrRwTLQ4QS a3PIOnW3OgXs3Am7jjCKhHdj/HKXwBdgxwf9udRJNWv9G36ZcaYH1I9OzofWkSQeEsGP QSpJuMp5mJSUbLzgh9Aqq7RMt1w+Hq94mYdHXoovEij5gyuEeYn0GWBaVgB0bpdSj/n3 iab6BROW/MZb70BRHVA6n0gQOJSgesLTiklI+bBavgmZfu52+IsxhbsgZdkrSh8dEdaS XR1R7/BzfN4TuurvnwxNbgaiHYLOleJ9q/llWL9JSublpNNoqUZJzJf74aNHeiVr9PMG AgVg== X-Gm-Message-State: AOJu0YzqKESCWNrJTP9tJtsKe9+AH5pmjdZRRThU79f6Nv541FnAJO+T nbWiXLIad5K5mpVJv7aFwuLD0Salc+N4tEKbkkL2L0ZkNuLTH/Xj7cbnubuyZKAUn2ARKRC5MLV r X-Google-Smtp-Source: AGHT+IHWJR7NUfgn9+i0ECc6c/YY0Vuy8y8M91pOsYyFL3ILIKtejf3nQHGMfR3DZAJRylacVy52Hg== X-Received: by 2002:a05:6512:1051:b0:52e:9cb1:d265 with SMTP id 2adb3069b0e04-52eb99cc6f7mr6533090e87.51.1720766848123; Thu, 11 Jul 2024 23:47:28 -0700 (PDT) Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:c138:9d7a:7e79:ba70]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4279f2448ebsm12139635e9.1.2024.07.11.23.47.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 23:47:27 -0700 (PDT) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] bitbake.conf: Drop obsolete debug compiler options Date: Fri, 12 Jul 2024 07:47:24 +0100 Message-ID: <20240712064726.1448710-1-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 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, 12 Jul 2024 06:47:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201805 eliminate-unused-debug-types is a compiler default so we no longer need to specify this. Drop the option. Also drop an obsolete comment about another debug flag. Signed-off-by: Richard Purdie --- meta/conf/bitbake.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 3ef2deb088b..02fe872d2c4 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -663,14 +663,13 @@ DEBUG_PREFIX_MAP ?= "-fcanon-prefix-map \ -fmacro-prefix-map=${STAGING_DIR_HOST}= \ -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ " -DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" +DEBUG_FLAGS ?= "-g ${DEBUG_PREFIX_MAP}" -# Disabled until the option works properly -feliminate-dwarf2-dups FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" DEBUG_OPTIMIZATION = "-Og ${DEBUG_FLAGS} -pipe" SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" -BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g -feliminate-unused-debug-types', '-O2', d)} -pipe" +BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g', '-O2', d)} -pipe" BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" ################################################################## From patchwork Fri Jul 12 06:47:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 46232 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 69469C3DA45 for ; Fri, 12 Jul 2024 06:47:40 +0000 (UTC) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by mx.groups.io with SMTP id smtpd.web11.2079.1720766850929525239 for ; Thu, 11 Jul 2024 23:47:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=BJ2g9eA8; spf=pass (domain: linuxfoundation.org, ip: 209.85.167.54, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52e9c6b5a62so1776222e87.0 for ; Thu, 11 Jul 2024 23:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1720766849; x=1721371649; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=zV6BhBnZSmg/jM2PqXcVjKgBnLeiXbgZFA9i8L1MGYM=; b=BJ2g9eA8Tu8eNAeCfVt1oQHngYiQTdLfaFs7/PH6NAKOM4CwvyaZvZE4KtXVys9M6W tg7lYkz8hKk3+ZTo+6v3LgszmMQn4AkvvV9Em6MUXBrrL7tfb7fyW/b2p2bX+RpexFOg yj7Br1LzpzVVGnUegOw1LPSk12YENc6Mj+hs4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720766849; x=1721371649; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zV6BhBnZSmg/jM2PqXcVjKgBnLeiXbgZFA9i8L1MGYM=; b=U+esV2gLvfQkAOU9mYF4nVtE1kNRms32ljkZcpmOOCIJ3d3oGWLSiAD9Y9gF9DRi+p 01w3FzhamlEXPGN/G2DLV3kuxb6nnVpxL7zSGKoTh/nSZrC0wfBhTyBhaFkuraUbB+9r zeKBi1AG1kspJIcLBfir3YBXK47hUNIQqeXk5dVSj0yYsMrLD8V2CjUrePKY/6YzV3PU 2KZ+QflLojFTvuRfUZnI4VlJN0uZqgBY8Esvho3rOk48Ss84veEBSngTr0aGZAT95b6z k0mBmPf58Smhq1kwA7lSEzwHAYSgR61PqYnAvX+Vp219TKTr5dxKjyQDmxd8C6nldZpK Bejw== X-Gm-Message-State: AOJu0YwvnuBX7ShHJRYs23XsD5SB3+N5A25iHw0lqC6idEj6X/ZquwqD YBnQzS72+gsgKRqaeRfkd/mNoNdM6vjpjvPLJwN7v5PpV/+hROJzHjrTgt19LtUSdFOdPDSlLaO F X-Google-Smtp-Source: AGHT+IFv619mDw4zfmkv2imTmiKtpIKLOqf6hnpicD6JHD/Y3VLKECtGFY1SzcOuUdhUmcMmmuEE1A== X-Received: by 2002:a19:e012:0:b0:52c:d90d:77aa with SMTP id 2adb3069b0e04-52eb99d6cf8mr5722300e87.61.1720766848857; Thu, 11 Jul 2024 23:47:28 -0700 (PDT) Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:c138:9d7a:7e79:ba70]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4279f2448ebsm12139635e9.1.2024.07.11.23.47.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 23:47:28 -0700 (PDT) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] bitbake.conf: Further cleanup compiler optimization flags Date: Fri, 12 Jul 2024 07:47:25 +0100 Message-ID: <20240712064726.1448710-2-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240712064726.1448710-1-richard.purdie@linuxfoundation.org> References: <20240712064726.1448710-1-richard.purdie@linuxfoundation.org> 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, 12 Jul 2024 06:47:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201804 Move the -pipe option out of the optimization flags and directly into the flags variables since we always use it now. Also move the debug prefix mapping there to match the nativesdk case which already does this. Fix the documentation and two recipe usages to match the change. Signed-off-by: Richard Purdie --- meta/conf/bitbake.conf | 15 ++++++++------- meta/conf/documentation.conf | 4 ++-- meta/recipes-core/ovmf/ovmf_git.bb | 2 +- meta/recipes-kernel/perf/perf.bb | 7 +++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 02fe872d2c4..aba560dd292 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -610,10 +610,10 @@ BUILDSDK_CPPFLAGS = "" export CPPFLAGS = "${TARGET_CPPFLAGS}" TARGET_CPPFLAGS = "" -export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" -BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION} ${DEBUG_PREFIX_MAP}" +export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION} -pipe" +BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION} ${DEBUG_PREFIX_MAP} -pipe" export CFLAGS = "${TARGET_CFLAGS}" -TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" +TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION} ${DEBUG_PREFIX_MAP} -pipe" export BUILD_CXXFLAGS = "${BUILD_CFLAGS}" BUILDSDK_CXXFLAGS = "${BUILDSDK_CFLAGS}" @@ -663,13 +663,14 @@ DEBUG_PREFIX_MAP ?= "-fcanon-prefix-map \ -fmacro-prefix-map=${STAGING_DIR_HOST}= \ -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ " -DEBUG_FLAGS ?= "-g ${DEBUG_PREFIX_MAP}" +DEBUG_FLAGS ?= "-g" -FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" -DEBUG_OPTIMIZATION = "-Og ${DEBUG_FLAGS} -pipe" +FULL_OPTIMIZATION = "-O2 ${DEBUG_FLAGS}" +DEBUG_OPTIMIZATION = "-Og ${DEBUG_FLAGS} SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" -BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g', '-O2', d)} -pipe" +# compiler flags for native/nativesdk +BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g', '-O2', d)}" BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" ################################################################## diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index b0591881ba9..53170fd34e3 100644 --- a/meta/conf/documentation.conf +++ b/meta/conf/documentation.conf @@ -132,7 +132,7 @@ 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_FLAGS} -pipe'." +DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-Og ${DEBUG_FLAGS}'." 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." @@ -180,7 +180,7 @@ 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 -pipe ${DEBUG_FLAGS}'." +FULL_OPTIMIZATION[doc]= "The options to pass in TARGET_CFLAGS and CFLAGS when compiling an optimized system. This variable defaults to '-O2 ${DEBUG_FLAGS}'." #G diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index 35ca8d1834b..085574c0cbd 100644 --- a/meta/recipes-core/ovmf/ovmf_git.bb +++ b/meta/recipes-core/ovmf/ovmf_git.bb @@ -55,7 +55,7 @@ DEPENDS = "nasm-native acpica-native ovmf-native util-linux-native" EDK_TOOLS_DIR="edk2_basetools" # OVMF has trouble building with the default optimization of -O2. -BUILD_OPTIMIZATION="-pipe" +BUILD_OPTIMIZATION = "" # OVMF supports IA only, although it could conceivably support ARM someday. COMPATIBLE_HOST:class-target='(i.86|x86_64).*' diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index fc9f70f9f66..f3f350aa98c 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -75,11 +75,10 @@ LDFLAGS="-ldl -lutil" # Perf's build system adds its own optimization flags for most TUs, # overriding the flags included here. But for some, perf does not add # any -O option, so ensure the distro's chosen optimization gets used -# for those. Since ${SELECTED_OPTIMIZATION} always includes -# ${DEBUG_FLAGS} which in turn includes ${DEBUG_PREFIX_MAP}, this also -# ensures perf is built with appropriate -f*-prefix-map options, +# for those. Also include ${DEBUG_PREFIX_MAP} which nsures perf is +# built with appropriate -f*-prefix-map options, # avoiding the 'buildpaths' QA warning. -TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION}" +TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION} ${DEBUG_PREFIX_MAP}" EXTRA_OEMAKE = '\ V=1 \ From patchwork Fri Jul 12 06:47:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 46233 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 6A861C41513 for ; Fri, 12 Jul 2024 06:47:40 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.groups.io with SMTP id smtpd.web10.2051.1720766851764018353 for ; Thu, 11 Jul 2024 23:47:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=dmyy7F5q; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.51, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-42565670e20so16114415e9.0 for ; Thu, 11 Jul 2024 23:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1720766850; x=1721371650; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=JnPAbidTcpZTDrujYemui3pMFyaYjqnlU+gygcJVUEI=; b=dmyy7F5q74+BAgfWZLdhXFKaYd83JubxEKpxMVaaM+PJPkBjRyqwBZ5p4sDmjguQu1 efSuThJdViJJ+Op8fBk/8PvZBowy+rMUvsIuYpP06KxXrT70L/Y0SF/owRyx3+Wy24us 0cndLMf7Q2CyBi5nA4YPZZHneovfJ07kZbCpA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720766850; x=1721371650; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JnPAbidTcpZTDrujYemui3pMFyaYjqnlU+gygcJVUEI=; b=mATmAzYhMAtaaZ0HHY64CK9NlJ/hLSnx2Y4O0TSYoZBJMs18fOxW8ShvEdIDUYdHhk XpgmJEetYikAqX80elzRRBIJEmHOEhbKdL5jFBzrHVznoqvAm/kQg4tGX5ZDj+ZDnOe+ 4YgztM65Oo+PxNR6V/LuZrDUVwVBPG/NFYxlgeyKuSIiJ84shIxoOB1D9nSGk8WAlrCt WzYY6XvHT28RPFDQVoTaTODVrORo+G139vUKZLvdVqlbkHZtjIst9FgKuM1uE7lUcEJB InKhwZ/MzlhY9XCbf0lrezZmTpiDIjcTMOLXRx+vhUNyZmthfTzckqlsl6nod3EYUO3+ 4ogQ== X-Gm-Message-State: AOJu0YwVYlcIppSLYiK7sNlFJI2Zqs0hQdb4Qr6lEjxZ4/DBOw6IyoQ9 oWs3bxihuT6w/mTYO+s9C+yHFMwu+vAzlknMDUM8uOr0O49/uQjLTPyMzGe4VVVFwcPBd/LR067 e X-Google-Smtp-Source: AGHT+IGc8OhMBvT3nEvXwjnw/W/OepFiNc8iyRMyMveysN0Sl4v8r8kEVYQ8h85o5WQT59DOC0Ghtw== X-Received: by 2002:a05:600c:68b:b0:426:5fa7:b495 with SMTP id 5b1f17b1804b1-4279daf4724mr14374155e9.15.1720766849807; Thu, 11 Jul 2024 23:47:29 -0700 (PDT) Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:c138:9d7a:7e79:ba70]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4279f2448ebsm12139635e9.1.2024.07.11.23.47.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 23:47:29 -0700 (PDT) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] bitbake.conf/webkitgtk: Rename DEBUG_FLAGS to DEBUG_LEVELFLAG Date: Fri, 12 Jul 2024 07:47:26 +0100 Message-ID: <20240712064726.1448710-3-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240712064726.1448710-1-richard.purdie@linuxfoundation.org> References: <20240712064726.1448710-1-richard.purdie@linuxfoundation.org> 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, 12 Jul 2024 06:47:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201806 Allow the "-g" option in DEBUG_FLAGS to be controlled directly with a specific DEBUG_LEVELFLAG variable. We can then use this in the webkitgtk recipe for finer grained flag control and it allows the flag to be unset easily. Signed-off-by: Richard Purdie --- meta/conf/bitbake.conf | 6 +++--- meta/conf/documentation.conf | 4 ++-- meta/recipes-devtools/valgrind/valgrind_3.23.0.bb | 2 +- meta/recipes-sato/webkit/webkitgtk_2.44.1.bb | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index aba560dd292..1939e26ec59 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -663,10 +663,10 @@ DEBUG_PREFIX_MAP ?= "-fcanon-prefix-map \ -fmacro-prefix-map=${STAGING_DIR_HOST}= \ -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ " -DEBUG_FLAGS ?= "-g" +DEBUG_LEVELFLAG ?= "-g" -FULL_OPTIMIZATION = "-O2 ${DEBUG_FLAGS}" -DEBUG_OPTIMIZATION = "-Og ${DEBUG_FLAGS} +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" # compiler flags for native/nativesdk diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index 53170fd34e3..155353eafc2 100644 --- a/meta/conf/documentation.conf +++ b/meta/conf/documentation.conf @@ -132,7 +132,7 @@ 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_FLAGS}'." +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}'." 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." @@ -180,7 +180,7 @@ 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_FLAGS}'." +FULL_OPTIMIZATION[doc]= "The options to pass in TARGET_CFLAGS and CFLAGS when compiling an optimized system. This variable defaults to '-O2 ${DEBUG_LEVELFLAG}'." #G diff --git a/meta/recipes-devtools/valgrind/valgrind_3.23.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.23.0.bb index ad9e26cb6ba..494a3c0df91 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.23.0.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.23.0.bb @@ -88,7 +88,7 @@ CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'" # to -O2 but uses -O0 for some specific test apps etc. Passing our own flags # (via CFLAGS) means we interfere with that. Only pass DEBUG_FLAGS to it # which fixes build path issue in DWARF. -SELECTED_OPTIMIZATION = "${DEBUG_FLAGS}" +SELECTED_OPTIMIZATION = "${DEBUG_LEVELFLAG}" # Split out various helper scripts to separate packages to avoid the # main package depending on perl and python. diff --git a/meta/recipes-sato/webkit/webkitgtk_2.44.1.bb b/meta/recipes-sato/webkit/webkitgtk_2.44.1.bb index 29e12bb8c5a..d927d81a436 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.44.1.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.44.1.bb @@ -93,7 +93,7 @@ EXTRA_OECMAKE = " \ # 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_FLAGS:append = "${@oe.utils.vartrue('DEBUG_BUILD', '', ' -g1', d)}" +DEBUG_LEVELFLAG = "-g1" # Javascript JIT is not supported on ARC EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF "