Skip to contentSkip to conversation

bitbake-setup: add description of DL_DIR in default site.conf

PATCH New Antonin Godard 1 participant 1 message Nov 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake-setup: add description of DL_DIR in default site.conf

Add the comment from the local.conf.sample file in meta-poky to the default site.conf file. It's a better experience for the user to have a quick description of the variable when opening the file for the first time.

---
Note this is a follow-up to Joshua's patch:
https://lore.kernel.org/r/[email protected]

---
 bin/bitbake-setup | 9 +++++++++
 1 file changed, 9 insertions(+)
bin/bitbake-setup +9 -0
index 3a281defac..243c7c512b 100755
@@ -683,6 +683,15 @@ def create_siteconf(top_dir, non_interactive, settings):
                 textwrap.dedent(
                     """\
                     # This file is intended for build host-specific bitbake settings
+
+                    # Where to place downloads
+                    #
+                    # During a first build the system will download many different source code
+                    # tarballs from various upstream projects. This can take a while, particularly
+                    # if your network connection is slow. These are all stored in DL_DIR. When
+                    # wiping and rebuilding you can preserve this directory to speed up this part of
+                    # subsequent builds. This directory is safe to share between multiple builds on
+                    # the same machine too.
                     DL_DIR = "{dl_dir}"
                     """.format(
                         dl_dir=settings["default"]["dl-dir"],

---
base-commit: fd7960eded6228486e75d1c253b5c672b24f505c
change-id: 20251113-add-dl-dir-comments-8e93aae0a3f1