public inbox for docs@lists.yoctoproject.org
 help / color / mirror / Atom feed
* [yocto-docs PATCH] ref-manual: classes: bin_package: fix SRC_URI example
@ 2024-11-18  8:46 Antonin Godard
  2024-11-19  9:38 ` [docs] " Quentin Schulz
  0 siblings, 1 reply; 5+ messages in thread
From: Antonin Godard @ 2024-11-18  8:46 UTC (permalink / raw)
  To: docs; +Cc: Thomas Petazzoni, Antonin Godard

`subdir` is the correct attribute to use for extracting the package in
the correct directory.

From the bitbake doc:

  subdir: Places the file (or extracts its contents) into the specified
    subdirectory. This option is useful for unusual tarballs or other
    archives that do not have their files already in a subdirectory within
    the archive.
  subpath: Limits the checkout to a specific subpath of the tree when
    using the Git fetcher is used.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/ref-manual/classes.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index b92f4e4f20ea8f702c90f4e3d29251b2461d07d0..2ac94630d80386cf613222b70f7bd6323b9948f2 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -176,7 +176,7 @@ example use for this class.
    are extracted into the subdirectory expected by the default value of
    :term:`S`::
 
-      SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}"
+      SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subdir=${BP}"
 
    See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`" section in the BitBake User Manual for
    more information on supported BitBake Fetchers.

---
base-commit: 7d5eb0cee5b2b7096969819d7d7ce569a3c92f27
change-id: 20241115-fix-bin-package-eed7633fbecd

Best regards,
-- 
Antonin Godard <antonin.godard@bootlin.com>



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

end of thread, other threads:[~2024-11-19 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18  8:46 [yocto-docs PATCH] ref-manual: classes: bin_package: fix SRC_URI example Antonin Godard
2024-11-19  9:38 ` [docs] " Quentin Schulz
2024-11-19 15:05   ` Antonin Godard
2024-11-19 15:15     ` Quentin Schulz
2024-11-19 16:23       ` Antonin Godard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox