From patchwork Fri Jul 17 09:52:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 92705 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 DC454C44517 for ; Fri, 17 Jul 2026 09:52:56 +0000 (UTC) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.10155.1784281976198680136 for ; Fri, 17 Jul 2026 02:52:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=e9dGhMVW; spf=pass (domain: smile.fr, ip: 209.85.128.43, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-493ae59eca6so21982035e9.1 for ; Fri, 17 Jul 2026 02:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1784281974; x=1784886774; 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:content-type; bh=lpQ0Dy416Z3LFmq5pln7ig4jBSrYUUQ0JIv55X/CjiE=; b=e9dGhMVWRP0lgUp6ma+zdX7Rw2+voH/xk84h3Hpk3+H6Ah6/Q9r0uJQpBOGBSWrcE+ /w4LW8GAE63jP3nZSsXgTexll87g3pvFBwHGfvxwr2TFDxER3Qu9oy6gD3Dk70sGT31K 6aUsXVLVyYIiHVtZUjaK7tBmqj9VrkrrU5s40= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784281974; x=1784886774; h=content-transfer-encoding:mime-version:references:in-re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0ByGHuvScwEpz669eo+z0X Sv3ppgKCIZ26zwuPS7N2aG/iaBu/L+r5Roke/MQtiIahPnrJe11bpmrOm1YqvgbQs6hqnREfayz DNkRBA= X-Received: by 2002:a05:600c:3143:b0:492:7142:f46e with SMTP id 5b1f17b1804b1-4954a3d0cd7mr22619535e9.2.1784281974326; Fri, 17 Jul 2026 02:52:54 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa0093f4151e9fe9f4b8.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:93f4:151e:9fe9:f4b8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49549c9c929sm32932095e9.12.2026.07.17.02.52.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 02:52:54 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 1/2] bitbake-setup: always write newline at end of the README Date: Fri, 17 Jul 2026 11:52:15 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 17 Jul 2026 09:52:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19842 From: Ernest Van Hoecke When the "readme_extra" string was introduced, we dropped a newline in the "readme" multiline string. In a Python multiline string, this counts and therefore we dropped the newline at the end of the README unless readme_extra is not empty (i.e.: unless the VS Code string is included which includes a newline). Put the newline back into the readme string and edit the VS Code extra string accordingly. Fixes: 92fd721941fd ("bitbake-setup: generate config files for VSCode") Signed-off-by: Ernest Van Hoecke Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 7e6466f48191c1e4ab9b91705deb237eff2c7f01) Signed-off-by: Yoann Congal --- bin/bitbake-setup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 220540f7f..4d75ad612 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -415,12 +415,13 @@ def setup_bitbake_build(bitbake_config, layerdir, setupdir, thisdir, update_bb_c readme_extra = "" if init_vscode: - readme_extra = "\n\nTo edit the code in VSCode, open the workspace: code {}\n".format(workspace_file) + readme_extra = "\nTo edit the code in VSCode, open the workspace: code {}\n".format(workspace_file) readme = """{}\n\nAdditional information is in {} and {}\n Source the environment using '. {}' to run builds from the command line.\n {}\n -The bitbake configuration files (local.conf, bblayers.conf and more) can be found in {}/conf{}""".format( +The bitbake configuration files (local.conf, bblayers.conf and more) can be found in {}/conf +{}""".format( bitbake_config["description"], os.path.join(bitbake_builddir,'conf/conf-summary.txt'), os.path.join(bitbake_builddir,'conf/conf-notes.txt'),