Skip to contentSkip to conversation

dev-manual: Explain unpacking archives without a top-level directory

PATCH Superseded Tanu Kaskinen 1 participant 1 message Jan 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev-manual: Explain unpacking archives without a top-level directory

---
 documentation/dev-manual/dev-manual-common-tasks.xml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
documentation/dev-manual/dev-manual-common-tasks.xml +9 -1
index 1e6addde4..525ec1830 100644
@@ -2085,7 +2085,15 @@
                 However, if <filename>SRC_URI</filename> specifies to fetch
                 source from an archive that does not use this convention,
                 or from an SCM like Git or Subversion, your recipe needs to
-                define <filename>S</filename>.
+                define <filename>S</filename>, except if the archive doesn't
+                use any top-level subdirectory. In that case you need to tell
+                Bitbake to do the unpacking in a subdirectory, this example is
+                from the
+                <filename>meta/recipes-multimedia/alsa/alsa-ucm-conf_1.2.1.2.bb</filename>
+                recipe:
+                <literallayout class='monospaced'>
+     SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2;subdir=${BP}"
+                </literallayout>
             </para>
 
             <para>
Signature · 1 line
2.20.1