summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-05-24 14:22:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-27 17:55:50 +0100
commit3466f2193a0668e2bae7822a5b864e4d43561c2e (patch)
tree90d5551aa01cf11b39b318505aee13cfa467fe0b /bitbake/lib/bb
parent086479f3868771bdb4669e72f410dc1eb89d8bc6 (diff)
downloadpoky-3466f2193a0668e2bae7822a5b864e4d43561c2e.tar.gz
fetch2/git: add document for git fetcher supported options
(Bitbake rev: d424ecd751f80a7aecec26e1a0cbd2a1b38e076b) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/git.py38
1 files changed, 35 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index a05402a311..3b8965e49c 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -3,6 +3,41 @@
3""" 3"""
4BitBake 'Fetch' git implementation 4BitBake 'Fetch' git implementation
5 5
6git fetcher support the SRC_URI with format of:
7SRC_URI = "git://some.host/somepath;OptionA=xxx;OptionB=xxx;..."
8
9Supported SRC_URI options are:
10
11- branch
12 The git branch to retrieve from. The default is "master"
13
14 this option also support multiple branches fetching, branches
15 are seperated by comma. in multiple branches case, the name option
16 must have the same number of names to match the branches, which is
17 used to specify the SRC_REV for the branch
18 e.g:
19 SRC_URI="git://some.host/somepath;branch=branchX,branchY;name=nameX,nameY"
20 SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx"
21 SRCREV_nameY = "YYYYYYYYYYYYYYYYYYYY"
22
23- tag
24 The git tag to retrieve. The default is "master"
25
26- protocol
27 The method to use to access the repository. Common options are "git",
28 "http", "file" and "rsync". The default is "git"
29
30- rebaseable
31 rebaseable indicates that the upstream git repo may rebase in the future,
32 and current revision may disappear from upstream repo. This option will
33 reminder fetcher to preserve local cache carefully for future use.
34 The default value is "0", set rebaseable=1 for rebaseable git repo
35
36- nocheckout
37 Don't checkout source code when unpacking. set this option for the recipe
38 who has its own routine to checkout code.
39 The default is "0", set nocheckout=1 if needed.
40
6""" 41"""
7 42
8#Copyright (C) 2005 Richard Purdie 43#Copyright (C) 2005 Richard Purdie
@@ -55,9 +90,6 @@ class Git(FetchMethod):
55 90
56 ud.nocheckout = ud.parm.get("nocheckout","0") == "1" 91 ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
57 92
58 # rebaseable means the upstream git repo may rebase in the future,
59 # and current revision may disappear from upstream repo
60 # rebaseable is false by default. set rebaseable=1 in SRC_URI if rebaseable.
61 ud.rebaseable = ud.parm.get("rebaseable","0") == "1" 93 ud.rebaseable = ud.parm.get("rebaseable","0") == "1"
62 94
63 branches = ud.parm.get("branch", "master").split(',') 95 branches = ud.parm.get("branch", "master").split(',')