From: Kristi Rifenbark Date: Tue, 26 Sep 2017 23:41:01 +0000 (-0700) Subject: ref-manual: Updated Added a New Recipe to Workspace Layer section X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab9f5a5300374716f528393b45308e69d0cc27d1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git ref-manual: Updated Added a New Recipe to Workspace Layer section Fixes [YOCTO #11392] Updated the section to document how to specify a branch, tag, or revision when using devtool add with a remote URL. (From yocto-docs rev: 903b4a4e72908572a5f8b8c822869bbd0fe76ec9) Signed-off-by: Kristi Rifenbark Signed-off-by: Richard Purdie --- diff --git a/documentation/ref-manual/ref-devtool-reference.xml b/documentation/ref-manual/ref-devtool-reference.xml index b7c0e334ea5..a577d1a4575 100644 --- a/documentation/ref-manual/ref-devtool-reference.xml +++ b/documentation/ref-manual/ref-devtool-reference.xml @@ -208,9 +208,9 @@ The following example creates and adds a new recipe named jackson to a workspace layer the tool creates. The source code built by the recipes resides in - /home/scottrif/sources/jackson: + /home/user/sources/jackson: - $ devtool add jackson /home/scottrif/sources/jackson + $ devtool add jackson /home/user/sources/jackson @@ -228,18 +228,52 @@ append files, and source files into the existing workspace layer. The .bbappend file is created to point to the external source tree. + + If your recipe has runtime dependencies defined, you must be sure + that these packages exist on the target hardware before attempting + to run your application. + If dependent packages (e.g. libraries) do not exist on the target, + your application, when run, will fail to find those functions. + For more information, see the + "Deploying Your Software on the Target Machine" + section. + - - If your recipe has runtime dependencies defined, you must be sure - that these packages exist on the target hardware before attempting - to run your application. - If dependent packages (e.g. libraries) do not exist on the target, - your application, when run, will fail to find those functions. - For more information, see the - "Deploying Your Software on the Target Machine" - section. - + + By default, devtool add uses the latest + revision (i.e. master) when unpacking files from a remote URI. + In some cases, you might want to specify a source revision by + branch, tag, or commit hash. You can specify these options when + using the devtool add command: + + + To specify a source branch, use the + --srcbranch option: + + $ devtool add --srcbranch &DISTRO_NAME_NO_CAP; jackson /home/user/sources/jackson + + In the previous example, you are checking out the + &DISTRO_NAME_NO_CAP; branch. + + + To specify a specific tag or commit hash, use the + --srcrev option: + + $ devtool add --srcrev &DISTRO_REL_TAG; jackson /home/user/sources/jackson + $ devtool add --srcrev some_commit_hash /home/user/sources/jackson + + The previous examples check out the &DISTRO_REL_TAG; tag + and the commit associated with the + some_commit_hash hash. + + + + If you prefer to use the latest revision every time the recipe is + built, use the options --autorev + or -a. + +