From patchwork Wed Feb 27 07:04:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159277 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4093050jad; Tue, 26 Feb 2019 23:04:36 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibmo2j3BfNqDTmV5Ui0Qv5c+hK4l3oSjD31NYj00o/ezOYbX0p3ES7yk8P+F56/dnIfM4o0 X-Received: by 2002:a62:404:: with SMTP id 4mr168464pfe.131.1551251076293; Tue, 26 Feb 2019 23:04:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551251076; cv=none; d=google.com; s=arc-20160816; b=uMqPhkv7oTO3p5jDCPIqaeUQN3T6Rvr0mz3QU6HH8zlvnRBJh6wSPxcxM/tnPD/guo ByF9qx7DTbGcOslJXqzOrz1kHs3KHdrjFfQocCgRSsGITrnzDNMblSkmJxDmEOlF9ywB JotdIgIVCmGHduZByWF4m3ltsrcyxrjT1ej+YPxcAxTBo5+tEpnOKZ2cVoh/y7BSVuan Y2mY5p8an9qVjBV13Qh1vA5s/HWdn2ilJj49+1XkRo8nUARUN7E5HHTc76FN+yabrrj4 Rbzvc+IPq5yOGj48CmL6WK1DyoslTE+4rH3Vb/kqjjUdC6jMYj1Vo6bRYo8EJshqO/YE EZ6w== 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=1ul6Ht5lItOlxNRn8/VXTEn4YPSYXSSbdgZqq5j4heY=; b=Wt3YT2FkqMF3BjbXtn/iwaecRiv9Eyg0jtj1f2ZGbvC/WYGG8CL1LV3+niOf/iNEVU VuFcpBBolKYSQeDPlpSQNoqNh9TY5LEF+8Jc8TmgOrQYz0bgCuXq/ya7T3bU2K8MtbWN Gr7V2MS5UrZ675YRnW5DY0UK4fqqKl9jzvbmRXbJdzPrRz9Lf9on5JDojJ7FQkqnKhH1 e5+klYd8p+3h+J07EUSQh4qGfHBaDaWVl5l/r0tobchZuaw4H5u77d1SwIHDyQoGLKHk n+NEeB+ZIFom2+BG167ELEP03r92Sk23+XeJd6XULI+ntw5E6vqH/2qG1q+Eej1x/T5S LjKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ApohJtNb; 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 e6si13620645pgc.252.2019.02.26.23.04.35; Tue, 26 Feb 2019 23:04:36 -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=ApohJtNb; 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 87CC17CC2D; Wed, 27 Feb 2019 07:04:31 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id 7F9207C930 for ; Wed, 27 Feb 2019 07:04:30 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id e17so5442215pgd.2 for ; Tue, 26 Feb 2019 23:04:31 -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=gKwwwzepB9yb2+nTBwSbc39tszyjYxgYBpYZ2V5jLGw=; b=ApohJtNbl+LQ6yiJLyibB4kYbbFqaNu7fsVoE754cg6tXqo38UKc9f/9gCosJpTxzD Gn0E3OCtQq/6syhCd6FemXf/jue411JVdyaWck/HrwNq8yI67x6uINMC80knxWpk/B5h 8nEPyEYM5CUf7Crct53m1ptr0Gc3W+rVc8qwoIYuQpXb+fEUyJXdY116BuZjCfGz+mM/ JuWeZrmbi2xhDiKHKWJBYjIQ7c814L87TYgLpCr5laOs2qJEREq+8nbYFrGDztPw8gN3 XSh/RsFzD2hvgQF8IZjHD/l4jWgMXr8MmRv9obPD4g4T50xLBe3EsBPVpVBsBU2HOyAP a1UA== 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=gKwwwzepB9yb2+nTBwSbc39tszyjYxgYBpYZ2V5jLGw=; b=SBi1mqA5wdWWys70IKLeMm9rhcHVBmH+lhaJDGppR+0VqZS1WuqFAKuqGRVHwyz3cl sVDKQ3CvaqWqHfM/vIWzxIbKG4HcFGYrbFOlsegkhoAAUYoSvBAo55d8hPt+9XeO81RL aD2bqQkQRt1B5jQE9JWjvxVw440n4OuMoBL1PQS8n3drAFMt23Vz9xxtHaXtz33uzHD/ u1MqSa5k22Ey4OW1q9Vx/YZYVWwl4v+Xt0tY7Wx5ykw1hMihzn5ARgidBDkBHsmyqxG2 uFGqYncPpZ7C99RB2s1OTyfezpKJ0AeE4tyCV0WNCgDGR+dy3BSlnL9Qks6KVUjlzg0T W0Rw== X-Gm-Message-State: AHQUAuZq3MIDu38KONoh0Vg0TrbZ3Kuw3XdZ1BGdrWmQV2hn5DcBd2NH 1eKAsYD9gZbukbUcdh5uBSEOAjgO X-Received: by 2002:a63:3446:: with SMTP id b67mr1597407pga.122.1551251070923; Tue, 26 Feb 2019 23:04:30 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id n1sm36678995pfi.123.2019.02.26.23.04.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 23:04:29 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 26 Feb 2019 23:04:20 -0800 Message-Id: <20190227070420.36624-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] 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 --- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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..758e89f126 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -610,7 +610,7 @@ 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"