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 8ACDACA0EE4 for ; Wed, 20 Aug 2025 16:42:14 +0000 (UTC) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by mx.groups.io with SMTP id smtpd.web11.1942.1755708130736197617 for ; Wed, 20 Aug 2025 09:42:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=CSDPSmTN; spf=pass (domain: konsulko.com, ip: 209.85.222.182, mailfrom: scott.murray@konsulko.com) Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-7e87068760bso781473985a.3 for ; Wed, 20 Aug 2025 09:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1755708130; x=1756312930; darn=lists.openembedded.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=AT0b4MnrWDmQLY0Rr7WPW3EgLsScgNDOl/mukupq/oU=; b=CSDPSmTNoCHgwkQVSl1d7jPKqyiCYVe2MDZ1EHc+oSsPzXr8XV/K9is8j3RD0E4EFz Shl/WX3OC8u6/Kpl90iGpG0kfSIjq+Uz4Ammyy915TwIWEXUeqraZcwsRkC8R0TBRRbr vBmAMV/KiOdxIlQaCn4JBN2zYIvWddl7p9Ytg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755708130; x=1756312930; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AT0b4MnrWDmQLY0Rr7WPW3EgLsScgNDOl/mukupq/oU=; b=dLZi46updcCHuOgIO0a6BPedgHqFwc/rOteAbfwl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9Zp5tsMcz72ju/Lnh5RBXQ== X-Received: by 2002:a05:620a:701b:b0:7e8:7094:52dc with SMTP id af79cd13be357-7e9fca78f79mr357909385a.7.1755708129534; Wed, 20 Aug 2025 09:42:09 -0700 (PDT) Received: from godzilla (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-70ba909e68csm90397946d6.29.2025.08.20.09.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 09:42:09 -0700 (PDT) Date: Wed, 20 Aug 2025 12:42:08 -0400 (EDT) From: Scott Murray To: richard.purdie@linuxfoundation.org cc: Alexander Kanavin , bitbake-devel@lists.openembedded.org, Tim Orling Subject: Re: [bitbake-devel] [PATCH 1/3] bitbake-setup: add the initial implementation In-Reply-To: <0a06fda681c8b5d94cbccc000e661451c1c49251.camel@linuxfoundation.org> Message-ID: <6e562ea3-ea7e-7e27-54ef-5fabc05888b5@konsulko.com> References: <20250813151523.1855287-1-alex.kanavin@gmail.com> <9b00442e9c0eed12c491b98704bc34fd9f78c48b.camel@linuxfoundation.org> <0a06fda681c8b5d94cbccc000e661451c1c49251.camel@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 ; Wed, 20 Aug 2025 16:42:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/17894 On Wed, 20 Aug 2025, Richard Purdie via lists.openembedded.org wrote: > On Wed, 2025-08-20 at 11:29 +0200, Alexander Kanavin wrote: > > Thank. I didn't polish the UI as I wanted to get the 'new > > functionality' out as soon as possible. I also already want to tweak a > > few things in the output. > > > > By the way here are the slides I'm going to show in less than a week > > in OSS Amsterdam: > > https://osseu2025.sched.com/event/25VtR > > > > There's a nice hand-drawn chart of how bitbake-setup puts all the > > pieces together in creating a build/conf and layers checkout for > > bitbake to be able to run. If you can take a moment and take a look, > > I'd appreciate. > > I will take a look, I can't right now but remind me if I don't > remember. > > > > I think we should probably be "properly" integrating into the user's > > > HOME, i.e. create ~/.config/bitbake/bitbake-setup.conf and > > > ~/.cache/bitbake/downloads by default out the box too, we may as well > > > make bitbake appear a "proper" citizen if used this way. > > > > I'm not sure about using ~/.config and ~/.cache. > > > > I introduced the concept of 'top directory' (where everything else is) > > on purpose, such that there can be multiple top directories, each with > > its own bitbake-setup settings file and site.conf. If you look at the > > settings file: > > > > [default] > > registry = git://github.com/kanavin/bitbake-setup-configurations.git;protocol=https;branch=main;rev=main > > dl-dir = /home/alex/bitbake-builds/.bitbake-setup-downloads > > > > there can be conceivable use cases where users would want to have > > multiple such files, each with its own registry location and dl-dir > > (and site.conf items in a separate file). E.g one for builds internal > > to their organization and another for upstream yocto work. > > I agree we should allow this to be configured, I'm just thinking the > .config/.cache directories might be the right place to put the > defaults. This does move bitbake (or bitbake-setup really) to become > more of a distro/system tool. I'm still not 100% sure if we should do > that but using the standard locations by default would fit with that. I can see where you're coming from, as this shadows how git config works, but the top directory behavior is something I've been on the fence about with bitbake-setup, and this seems like it'd maybe make that worse. With things as they are now, I fear I'll be having to document passing the --top-dir option in any bitbake-setup usage to avoid contamination of configurations between projects, and avoid users asking why they're having stuff show up in $HOME. I'd honestly prefer if it only operated in the current working directory by default like whisk and kas. Scott