From patchwork Wed Feb 27 20:50:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159293 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4882918jad; Wed, 27 Feb 2019 12:50:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IY2TG/SdNkdGbH9w29EbsI5lMqPGTEcoCIoD/ZptzB6vVUDb9CBqvda2GM67pgpCSVfKnfl X-Received: by 2002:a62:bd09:: with SMTP id a9mr3586248pff.61.1551300658481; Wed, 27 Feb 2019 12:50:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551300658; cv=none; d=google.com; s=arc-20160816; b=IiXZtpdRgHqN6mA5EWtgnDEAJ8LjkwSsVsNGuujNPgfk//I5lMVgwhKIPv+yEzqlND 5NJxjfIYZPAb8msxwhf1NGdmGmh0sbI+emAH/TEBScJnMu+c2z11kbSNv6Awcu1VtJlc V3vAL20agD1GHoB6XAcvcrI6/M9bhFkN2a8Ea1ApB4oHT66BhobYeZ7zrIS7qwPDj7nn hbNIp+LjW91WqAy2wV3z77rOYA3hYDbiBzq7H99n8oNOda+qCEV967PJc8yX5IFVdscI HPr9wvMnPelcItu+eomD2YOZxUt21mB3HbW2gUl0voPELZvZ2xVNskhZCZdO5Uj5R9wG ccWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=35dgskYio8U2dZWoSALFU2Q7HvTZv/SLQS5xPSFAbCw=; b=aezvLtfm+oKmmnEPkVKKyuwPHYHLV1xS1weDK13TohALO2UgPiYELKs9W+IjBwCi8K +RUzbGgJzakX+yTAI8XRN004MgINuWryjrJax9nud47m3kSsnN3hC2SzyLWtOLCcrvcN oBbfqaF++lMcn0N16je7cKefGDnsMfNSN4WwIxyYE6xcmiJ8smgmrZdfUyXgh/2IOTGc aIK4KRdEANTOXklEu+EGkfFAYX9CCqT/85MBwgO3Jn60WDeKMkQcU668g6D+TF5Mwa83 HGO3siIViKms5SgEHDBijcOwnjNrfyhRviix8R60UTRtczy88Ypq2yddzP6UoNtd70d5 OIJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=TdzG+Htr; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h3si16190571pfd.250.2019.02.27.12.50.58; Wed, 27 Feb 2019 12:50:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=TdzG+Htr; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C26687CC4E; Wed, 27 Feb 2019 20:50:53 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mail.openembedded.org (Postfix) with ESMTP id 19D016C197 for ; Wed, 27 Feb 2019 20:50:51 +0000 (UTC) Received: by mail-pf1-f173.google.com with SMTP id q17so8562107pfh.10 for ; Wed, 27 Feb 2019 12:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a6Ht2doan4wEB6xJCRQlZ0gT2BMTOs1Y4IndVGzKrlk=; b=TdzG+HtrM18u6Ghx/zy0aShVov2E2MKQzg/YP9ALUPRaQHxCo9Mg6GcRO6P/5IK0eJ 7AEfdXPWAk5569IvbrIAtPS17UZFNFiL+IeCxIDAErnqjiie8jM26rvKzpGGo8XLS2Nt FvGQUhrqpLRcBrtXBmADQkYR/TjP+5NXL0CG4Fcem8EcpJHMC+kNH9gFeyhiwO11Yj5f Qax4W3V8xofascHqhzgb1ND7RvxwDBJez32tRDJYO8PlShjU+hNxlQKh0nWq92gNo0PR BziYfwJvJ8O6SJxPDkd2iB0elEWQC+IJ1rML2vos6kJ8npwVQyHicx7Y8V4GS3K97r2q +TiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a6Ht2doan4wEB6xJCRQlZ0gT2BMTOs1Y4IndVGzKrlk=; b=V1bpwV7IVK76PMWdOlTMHH7egX9v45FvtQm7RRGyU30GcrciJlsa9B/KTpuwhevN3d vPsrqLNltScLNRQcAxMaTjVmDWQYQKyFJ0djAZNaMsKeiNHz3YGieRLdl92YPE2CDHbc PZVHZev276uZXCww03SkWx0kkscUVMr+gTWWzjGqFa63NxzuMmUGZPibxsZ9QIYqk4db gJPYWHz9dDwZYgLs/UUKylyUpkI9aU0q0EorenQIC1xCkAq9/P1R3W5RcKAAo/o5j+h3 7TUbvPGxspgRn4TK9E3UKBFSsj3A54nGLETBjkmSdioAYJ6LzjERfdEH+J/WLmzmPC7F p+lA== X-Gm-Message-State: AHQUAubYShG8ltSc71+fMKFhUJhseCgzf8IUyQbwssf40miXbG8Be0NC SMeRR6yDT3Z7Fm2Z8BghABElaTOE X-Received: by 2002:a63:b0b:: with SMTP id 11mr4878656pgl.187.1551300652590; Wed, 27 Feb 2019 12:50:52 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id l12sm27913766pgn.83.2019.02.27.12.50.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 12:50:51 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 27 Feb 2019 12:50:41 -0800 Message-Id: <20190227205042.44813-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH V2 1/2] bitbake.conf: Use -Og in DEBUG_OPTIMIZATION X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org -Og is for optimized debugging experience. this makes this consistent across different compilers especially gcc and clang, -O in clang is equal to -O2 where as in gcc its similar to -O1 so it was not giving consistent debugging experience across compilers Signed-off-by: Khem Raj --- v2: Change documentation to reflect the change and also build host flags meta/conf/bitbake.conf | 4 ++-- meta/conf/documentation.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 1c5369ec98..85aab98462 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -610,10 +610,10 @@ DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" # Disabled until the option works properly -feliminate-dwarf2-dups FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" -DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" +DEBUG_OPTIMIZATION = "-Og -fno-omit-frame-pointer ${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', '-O -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe" +BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe" BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" ################################################################## diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index 4d2a707563..c2c96ecf1e 100644 --- a/meta/conf/documentation.conf +++ b/meta/conf/documentation.conf @@ -125,7 +125,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 '-O -fno-omit-frame-pointer ${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 -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe'." 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."