From 2e7d650a2ab3ced7688fb550f55798dd55381367 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 30 Sep 2015 12:55:13 -0700 Subject: ref-manual: Updates to clarify Fetcher URL directory parameters Updated the SRC_URI variable description to cross-reference the "Fetchers" section in the BitBake User Manual and added some more Fetcher URL parameters specific to certain fetchers. This was done to help clarify how to put fetched code into specific directories. Also updated the bin_packages.bbclass description to have a better example. Used a git:// fetcher example and provided some specific URL parameters. (From yocto-docs rev: 7133b49092096c253ffce99f39d4fa6db7810061) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'documentation/ref-manual/ref-classes.xml') diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index ba7c3f79f6..30d0e5de06 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -211,14 +211,22 @@ use for this class. For RPMs and other packages that do not contain a subdirectory, - you should specify a "subdir" parameter. + you should specify an appropriate fetcher parameter to point to + the subdirectory. + For example, if BitBake is using the Git fetcher + (git://), the "subpath" parameter limits + the checkout to a specific subpath of the tree. Here is an example where ${BP} is used so that the files are extracted into the subdirectory expected by the default value of S: - SRC_URI = "http://example.com/downloads/somepackage.rpm;subdir=${BP}" + SRC_URI = "git://example.com/downloads/somepackage.rpm;subpath=${BP}" + See the + "Fetchers" + section in the BitBake User Manual for more information on + supported BitBake Fetchers. -- cgit v1.2.3-54-g00ecf