All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Quick Build: use pip for bitbake-setup (and a typo fix)
@ 2026-08-11  9:55 Antonin Godard
  2026-08-11  9:55 ` [PATCH 1/2] brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup Antonin Godard
  2026-08-11  9:55 ` [PATCH 2/2] brief-yoctoprojectqs/index.rst: fix a replacement typo Antonin Godard
  0 siblings, 2 replies; 6+ messages in thread
From: Antonin Godard @ 2026-08-11  9:55 UTC (permalink / raw)
  To: docs; +Cc: Thomas Petazzoni, Antonin Godard

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
Antonin Godard (2):
      brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup
      brief-yoctoprojectqs/index.rst: fix a replacement typo

 documentation/brief-yoctoprojectqs/index.rst | 32 +++++++++++++++++++---------
 1 file changed, 22 insertions(+), 10 deletions(-)
---
base-commit: 41dae3c3da3ada1745fc60228ff6269c64ee2361
change-id: 20260811-bitbake-setup-pip-fbfda14e9465



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup
  2026-08-11  9:55 [PATCH 0/2] Quick Build: use pip for bitbake-setup (and a typo fix) Antonin Godard
@ 2026-08-11  9:55 ` Antonin Godard
  2026-08-11 10:22   ` [docs] " Alexander Kanavin
  2026-08-11  9:55 ` [PATCH 2/2] brief-yoctoprojectqs/index.rst: fix a replacement typo Antonin Godard
  1 sibling, 1 reply; 6+ messages in thread
From: Antonin Godard @ 2026-08-11  9:55 UTC (permalink / raw)
  To: docs; +Cc: Thomas Petazzoni, Antonin Godard

bitbake-setup is now available on Pypi[1], so let's use it instead of
a clone of bitbake to use the CLI tool. Refresh commands in consequence.
Keep git clone instructions in a note as an alternative way of setting
things up.

[1]: https://pypi.org/project/bitbake-setup/

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/brief-yoctoprojectqs/index.rst | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/documentation/brief-yoctoprojectqs/index.rst b/documentation/brief-yoctoprojectqs/index.rst
index 2ffa3a6d8..5ecc11791 100644
--- a/documentation/brief-yoctoprojectqs/index.rst
+++ b/documentation/brief-yoctoprojectqs/index.rst
@@ -84,23 +84,35 @@ Build Host Packages
    see the :ref:`ref-manual/system-requirements:required packages for the build host`
    section in the Yocto Project Reference Manual.
 
-Use Git to clone bitbake-setup
-==============================
+Install and use bitbake-setup
+=============================
 
 Once you complete the setup instructions for your machine, you need to
 get a copy of the ``bitbake-setup`` tool to set up the :term:`Poky` reference
-distribution on your build host. Use the following commands to clone
-the bitbake repository.
+distribution on your :term:`build host`. Use the following commands to install
+the tool in a Python `virtual environment <https://docs.python.org/3/library/venv.html>`__:
 
 .. code-block:: console
 
-   $ git clone https://git.openembedded.org/bitbake
+   $ python3 -m venv --clear ./bitbake-setup-venv
+   $ . ./bitbake-setup-venv/bin/activate
+   $ pip install bitbake-setup
+
+.. note::
+
+   The ``bitbake-setup`` tool can also be used from the :term:`BitBake`
+   repository directly:
+
+   .. code-block:: console
+
+      $ git clone https://git.openembedded.org/bitbake ./bitbake
+      $ ./bitbake/bin/bitbake-setup ...
 
 Setup a build environment with the following command:
 
 .. code-block:: console
 
-   $ ./bitbake/bin/bitbake-setup init
+   $ bitbake-setup init
 
 By default, this will set up a top directory in the current directory.
 
@@ -109,7 +121,7 @@ If you prefer to set up your builds in a different top directory, for example
 
 .. code-block:: console
 
-   $ ./bitbake/bin/bitbake-setup settings set --global default top-dir-prefix $HOME
+   $ bitbake-setup settings set --global default top-dir-prefix $HOME
 
 .. note::
 
@@ -183,7 +195,7 @@ differ from the examples below.
 
    .. code-block:: console
 
-      $ ./bitbake/bin/bitbake-setup init --non-interactive poky-master poky distro/poky machine/qemux86-64
+      $ bitbake-setup init --non-interactive poky-master poky distro/poky machine/qemux86-64
 
 The ``init`` command creates a new :term:`bitbake:Setup` in the
 :term:`bitbake:top directory`. The default name is derived from the selected

-- 
2.55.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] brief-yoctoprojectqs/index.rst: fix a replacement typo
  2026-08-11  9:55 [PATCH 0/2] Quick Build: use pip for bitbake-setup (and a typo fix) Antonin Godard
  2026-08-11  9:55 ` [PATCH 1/2] brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup Antonin Godard
@ 2026-08-11  9:55 ` Antonin Godard
  2026-08-11 10:00   ` [docs] " Robert P. J. Day
  1 sibling, 1 reply; 6+ messages in thread
From: Antonin Godard @ 2026-08-11  9:55 UTC (permalink / raw)
  To: docs; +Cc: Thomas Petazzoni, Antonin Godard

These two replacements were missing the leading ";" which made them
appear with their name instead of resolved value.

Fixes: 34eafb89b1e4 ("brief-yoctoprojectqs/index.rst: refresh bitbake-setup outputs")
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/brief-yoctoprojectqs/index.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/documentation/brief-yoctoprojectqs/index.rst b/documentation/brief-yoctoprojectqs/index.rst
index 5ecc11791..9af18d744 100644
--- a/documentation/brief-yoctoprojectqs/index.rst
+++ b/documentation/brief-yoctoprojectqs/index.rst
@@ -138,9 +138,9 @@ differ from the examples below.
 
       Available Configuration Templates:
       1. oe-nodistro-master   OpenEmbedded - 'nodistro' basic configuration
-      2. oe-nodistro-&DISTRO_NAME_NO_CAP  OpenEmbedded - 'nodistro' basic configuration, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
+      2. oe-nodistro-&DISTRO_NAME_NO_CAP;  OpenEmbedded - 'nodistro' basic configuration, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
       3. poky-master          Poky - The Yocto Project testing distribution configurations and hardware test platforms
-      4. poky-&DISTRO_NAME_NO_CAP         Poky - The Yocto Project testing distribution configurations and hardware test platforms, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
+      4. poky-&DISTRO_NAME_NO_CAP;         Poky - The Yocto Project testing distribution configurations and hardware test platforms, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
 
       Please select one of the above configurations by its number: 3
 

-- 
2.55.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [docs] [PATCH 2/2] brief-yoctoprojectqs/index.rst: fix a replacement typo
  2026-08-11  9:55 ` [PATCH 2/2] brief-yoctoprojectqs/index.rst: fix a replacement typo Antonin Godard
@ 2026-08-11 10:00   ` Robert P. J. Day
  0 siblings, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2026-08-11 10:00 UTC (permalink / raw)
  To: Antonin Godard; +Cc: docs, Thomas Petazzoni

On Tue, 11 Aug 2026, Antonin Godard via lists.yoctoproject.org wrote:

> These two replacements were missing the leading ";" which made them
> appear with their name instead of resolved value.

  Don't you mean trailing ";"?
>
> Fixes: 34eafb89b1e4 ("brief-yoctoprojectqs/index.rst: refresh bitbake-setup outputs")
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
>  documentation/brief-yoctoprojectqs/index.rst | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/documentation/brief-yoctoprojectqs/index.rst b/documentation/brief-yoctoprojectqs/index.rst
> index 5ecc11791..9af18d744 100644
> --- a/documentation/brief-yoctoprojectqs/index.rst
> +++ b/documentation/brief-yoctoprojectqs/index.rst
> @@ -138,9 +138,9 @@ differ from the examples below.
>
>        Available Configuration Templates:
>        1. oe-nodistro-master   OpenEmbedded - 'nodistro' basic configuration
> -      2. oe-nodistro-&DISTRO_NAME_NO_CAP  OpenEmbedded - 'nodistro' basic configuration, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
> +      2. oe-nodistro-&DISTRO_NAME_NO_CAP;  OpenEmbedded - 'nodistro' basic configuration, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
>        3. poky-master          Poky - The Yocto Project testing distribution configurations and hardware test platforms
> -      4. poky-&DISTRO_NAME_NO_CAP         Poky - The Yocto Project testing distribution configurations and hardware test platforms, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
> +      4. poky-&DISTRO_NAME_NO_CAP;         Poky - The Yocto Project testing distribution configurations and hardware test platforms, release &DISTRO_RELEASE_SERIES; '&DISTRO_NAME_NO_CAP;' (supported until ...)
>
>        Please select one of the above configurations by its number: 3
>
>
> --
> 2.55.0
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [docs] [PATCH 1/2] brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup
  2026-08-11  9:55 ` [PATCH 1/2] brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup Antonin Godard
@ 2026-08-11 10:22   ` Alexander Kanavin
  2026-08-11 13:21     ` Antonin Godard
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Kanavin @ 2026-08-11 10:22 UTC (permalink / raw)
  To: antonin.godard; +Cc: docs, Thomas Petazzoni

On Tue, 11 Aug 2026 at 11:56, Antonin Godard via
lists.yoctoproject.org
<antonin.godard=bootlin.com@lists.yoctoproject.org> wrote:
> -   $ git clone https://git.openembedded.org/bitbake
> +   $ python3 -m venv --clear ./bitbake-setup-venv
> +   $ . ./bitbake-setup-venv/bin/activate
> +   $ pip install bitbake-setup

It would be good to also mention how to update to latest release if
bitbake-setup is already installed (bitbake-setup will evolve with new
features and there may be failures due to outdated installations from
pip):

$ pip install -U bitbake-setup
(pip does not have a separate command for package updates
unfortunately, so it's not intuitive).

> +   The ``bitbake-setup`` tool can also be used from the :term:`BitBake`
> +   repository directly:

... is developed and maintained in :term:`BitBake` repository, and so
can be used directly from there:

> +      $ git clone https://git.openembedded.org/bitbake ./bitbake
> +      $ ./bitbake/bin/bitbake-setup ...

The bitbake-setup chapter in bitbake manual needs similar fixes I think?

Alex


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [docs] [PATCH 1/2] brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup
  2026-08-11 10:22   ` [docs] " Alexander Kanavin
@ 2026-08-11 13:21     ` Antonin Godard
  0 siblings, 0 replies; 6+ messages in thread
From: Antonin Godard @ 2026-08-11 13:21 UTC (permalink / raw)
  To: alex.kanavin; +Cc: docs, Thomas Petazzoni

Hi,

On Tue Aug 11, 2026 at 12:22 PM CEST, Alexander Kanavin via lists.yoctoproject.org wrote:
> On Tue, 11 Aug 2026 at 11:56, Antonin Godard via
> lists.yoctoproject.org
> <antonin.godard=bootlin.com@lists.yoctoproject.org> wrote:
>> -   $ git clone https://git.openembedded.org/bitbake
>> +   $ python3 -m venv --clear ./bitbake-setup-venv
>> +   $ . ./bitbake-setup-venv/bin/activate
>> +   $ pip install bitbake-setup
>
> It would be good to also mention how to update to latest release if
> bitbake-setup is already installed (bitbake-setup will evolve with new
> features and there may be failures due to outdated installations from
> pip):
>
> $ pip install -U bitbake-setup
> (pip does not have a separate command for package updates
> unfortunately, so it's not intuitive).

Hmm, as this is a quick build document, I think most people won't have
bitbake-setup already installed and our instructions show how to install it in a
new virtual environment anyway, however...

[...]
>> +      $ git clone https://git.openembedded.org/bitbake ./bitbake
>> +      $ ./bitbake/bin/bitbake-setup ...
>
> The bitbake-setup chapter in bitbake manual needs similar fixes I think?

...I will mention that in the bitbake user manual, so in a separate patch. :)

>> +   The ``bitbake-setup`` tool can also be used from the :term:`BitBake`
>> +   repository directly:
>
> ... is developed and maintained in :term:`BitBake` repository, and so
> can be used directly from there:

Looks, good, will update in v2.

Thanks!
Antonin


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-11 13:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11  9:55 [PATCH 0/2] Quick Build: use pip for bitbake-setup (and a typo fix) Antonin Godard
2026-08-11  9:55 ` [PATCH 1/2] brief-yoctoprojectqs/index.rst: use pip to install bitbake-setup Antonin Godard
2026-08-11 10:22   ` [docs] " Alexander Kanavin
2026-08-11 13:21     ` Antonin Godard
2026-08-11  9:55 ` [PATCH 2/2] brief-yoctoprojectqs/index.rst: fix a replacement typo Antonin Godard
2026-08-11 10:00   ` [docs] " Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.