summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 22:12:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-22 12:19:45 +0100
commitd28b1816e91553185f8d43a6bd608bffbe32e06b (patch)
treec047cefb7c70f0222fbb7cba9679291f4445518e /bitbake
parent35a1d37ac8fd57bef6bc4de8047ffcadf7df7e56 (diff)
downloadpoky-d28b1816e91553185f8d43a6bd608bffbe32e06b.tar.gz
bitbake: bin/bitbake: Improve --help text
The --help text was rather inconsistent in style and plain incorrect in places, using confusing terminology in others. I guess most people know what the options do and don't read this but its confusing to new users. This updates it to use the terms recipe and task consistently, remove the references to stage, bbread and generally try and make the output more useful. [YOCTO #4856] (Bitbake rev: 516311946c7bd14c84947dc44c3bb0563e5a9667) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/bitbake59
1 files changed, 29 insertions, 30 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index b4506efb52..509857efa6 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -100,59 +100,58 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
100 def parseCommandLine(self): 100 def parseCommandLine(self):
101 parser = optparse.OptionParser( 101 parser = optparse.OptionParser(
102 version = "BitBake Build Tool Core version %s, %%prog version %s" % (bb.__version__, __version__), 102 version = "BitBake Build Tool Core version %s, %%prog version %s" % (bb.__version__, __version__),
103 usage = """%prog [options] [package ...] 103 usage = """%prog [options] [recipename/target ...]
104 104
105 Executes the specified task (default is 'build') for a given set of BitBake files. 105 Executes the specified task (default is 'build') for a given set of target recipes (.bb files).
106 It expects that BBFILES is defined, which is a space separated list of files to 106 It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which
107 be executed. BBFILES does support wildcards. 107 will provide the layer, BBFILES and other configuration information.""")
108 Default BBFILES are the .bb files in the current directory.""")
109 108
110 parser.add_option("-b", "--buildfile", help = "execute the task against this .bb file, rather than a package from BBFILES. Does not handle any dependencies.", 109 parser.add_option("-b", "--buildfile", help = "Execute tasks from a specific .bb recipe directly. WARNING: Does not handle any dependencies from other recipes.",
111 action = "store", dest = "buildfile", default = None) 110 action = "store", dest = "buildfile", default = None)
112 111
113 parser.add_option("-k", "--continue", help = "continue as much as possible after an error. While the target that failed, and those that depend on it, cannot be remade, the other dependencies of these targets can be processed all the same.", 112 parser.add_option("-k", "--continue", help = "Continue as much as possible after an error. While the target that failed and anything depending on it cannot be built, as much as possible will be built before stopping.",
114 action = "store_false", dest = "abort", default = True) 113 action = "store_false", dest = "abort", default = True)
115 114
116 parser.add_option("-a", "--tryaltconfigs", help = "continue with builds by trying to use alternative providers where possible.", 115 parser.add_option("-a", "--tryaltconfigs", help = "Continue with builds by trying to use alternative providers where possible.",
117 action = "store_true", dest = "tryaltconfigs", default = False) 116 action = "store_true", dest = "tryaltconfigs", default = False)
118 117
119 parser.add_option("-f", "--force", help = "force run of specified cmd, regardless of stamp status", 118 parser.add_option("-f", "--force", help = "Force the specified targets/task to run (invalidating any existing stamp file).",
120 action = "store_true", dest = "force", default = False) 119 action = "store_true", dest = "force", default = False)
121 120
122 parser.add_option("-c", "--cmd", help = "Specify task to execute. Note that this only executes the specified task for the providee and the packages it depends on, i.e. 'compile' does not implicitly call stage for the dependencies (IOW: use only if you know what you are doing). Depending on the base.bbclass a listtasks tasks is defined and will show available tasks", 121 parser.add_option("-c", "--cmd", help = "Specify the task to execute. The exact options available depend on the metadata. Some examples might be 'compile' or 'populate_sysroot' or 'listtasks' may give a list of the tasks available.",
123 action = "store", dest = "cmd") 122 action = "store", dest = "cmd")
124 123
125 parser.add_option("-C", "--clear-stamp", help = "Invalidate the stamp for the specified cmd such as 'compile' and run the default task for the specified target(s)", 124 parser.add_option("-C", "--clear-stamp", help = "Invalidate the stamp for the specified task such as 'compile' and then run the default task for the specified target(s).",
126 action = "store", dest = "invalidate_stamp") 125 action = "store", dest = "invalidate_stamp")
127 126
128 parser.add_option("-r", "--read", help = "read the specified file before bitbake.conf", 127 parser.add_option("-r", "--read", help = "Read the specified file before bitbake.conf.",
129 action = "append", dest = "prefile", default = []) 128 action = "append", dest = "prefile", default = [])
130 129
131 parser.add_option("-R", "--postread", help = "read the specified file after bitbake.conf", 130 parser.add_option("-R", "--postread", help = "Read the specified file after bitbake.conf.",
132 action = "append", dest = "postfile", default = []) 131 action = "append", dest = "postfile", default = [])
133 132
134 parser.add_option("-v", "--verbose", help = "output more chit-chat to the terminal", 133 parser.add_option("-v", "--verbose", help = "Output more log message data to the terminal.",
135 action = "store_true", dest = "verbose", default = False) 134 action = "store_true", dest = "verbose", default = False)
136 135
137 parser.add_option("-D", "--debug", help = "Increase the debug level. You can specify this more than once.", 136 parser.add_option("-D", "--debug", help = "Increase the debug level. You can specify this more than once.",
138 action = "count", dest="debug", default = 0) 137 action = "count", dest="debug", default = 0)
139 138
140 parser.add_option("-n", "--dry-run", help = "don't execute, just go through the motions", 139 parser.add_option("-n", "--dry-run", help = "Don't execute, just go through the motions.",
141 action = "store_true", dest = "dry_run", default = False) 140 action = "store_true", dest = "dry_run", default = False)
142 141
143 parser.add_option("-S", "--dump-signatures", help = "don't execute, just dump out the signature construction information", 142 parser.add_option("-S", "--dump-signatures", help = "Don't execute, just dump out the signature construction information.",
144 action = "store_true", dest = "dump_signatures", default = False) 143 action = "store_true", dest = "dump_signatures", default = False)
145 144
146 parser.add_option("-p", "--parse-only", help = "quit after parsing the BB files (developers only)", 145 parser.add_option("-p", "--parse-only", help = "Quit after parsing the BB recipes.",
147 action = "store_true", dest = "parse_only", default = False) 146 action = "store_true", dest = "parse_only", default = False)
148 147
149 parser.add_option("-s", "--show-versions", help = "show current and preferred versions of all recipes", 148 parser.add_option("-s", "--show-versions", help = "Show current and preferred versions of all recipes.",
150 action = "store_true", dest = "show_versions", default = False) 149 action = "store_true", dest = "show_versions", default = False)
151 150
152 parser.add_option("-e", "--environment", help = "show the global or per-package environment (this is what used to be bbread)", 151 parser.add_option("-e", "--environment", help = "Show the global or per-package environment complete with information about where variables were set/changed.",
153 action = "store_true", dest = "show_environment", default = False) 152 action = "store_true", dest = "show_environment", default = False)
154 153
155 parser.add_option("-g", "--graphviz", help = "emit the dependency trees of the specified packages in the dot syntax, and the pn-buildlist to show the build list", 154 parser.add_option("-g", "--graphviz", help = "Save dependency tree information for the specified targets in the dot syntax.",
156 action = "store_true", dest = "dot_graph", default = False) 155 action = "store_true", dest = "dot_graph", default = False)
157 156
158 parser.add_option("-I", "--ignore-deps", help = """Assume these dependencies don't exist and are already provided (equivalent to ASSUME_PROVIDED). Useful to make dependency graphs more appealing""", 157 parser.add_option("-I", "--ignore-deps", help = """Assume these dependencies don't exist and are already provided (equivalent to ASSUME_PROVIDED). Useful to make dependency graphs more appealing""",
@@ -161,34 +160,34 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
161 parser.add_option("-l", "--log-domains", help = """Show debug logging for the specified logging domains""", 160 parser.add_option("-l", "--log-domains", help = """Show debug logging for the specified logging domains""",
162 action = "append", dest = "debug_domains", default = []) 161 action = "append", dest = "debug_domains", default = [])
163 162
164 parser.add_option("-P", "--profile", help = "profile the command and print a report", 163 parser.add_option("-P", "--profile", help = "Profile the command and save reports.",
165 action = "store_true", dest = "profile", default = False) 164 action = "store_true", dest = "profile", default = False)
166 165
167 parser.add_option("-u", "--ui", help = "userinterface to use", 166 parser.add_option("-u", "--ui", help = "The user interface to use (e.g. knotty, hob, depexp).",
168 action = "store", dest = "ui") 167 action = "store", dest = "ui")
169 168
170 parser.add_option("-t", "--servertype", help = "Choose which server to use, process or xmlrpc", 169 parser.add_option("-t", "--servertype", help = "Choose which server to use, process or xmlrpc.",
171 action = "store", dest = "servertype") 170 action = "store", dest = "servertype")
172 171
173 parser.add_option("", "--revisions-changed", help = "Set the exit code depending on whether upstream floating revisions have changed or not", 172 parser.add_option("", "--revisions-changed", help = "Set the exit code depending on whether upstream floating revisions have changed or not.",
174 action = "store_true", dest = "revisions_changed", default = False) 173 action = "store_true", dest = "revisions_changed", default = False)
175 174
176 parser.add_option("", "--server-only", help = "Run bitbake without UI, the frontend can connect with bitbake server itself", 175 parser.add_option("", "--server-only", help = "Run bitbake without a UI, only starting a server (cooker) process.",
177 action = "store_true", dest = "server_only", default = False) 176 action = "store_true", dest = "server_only", default = False)
178 177
179 parser.add_option("-B", "--bind", help = "The name/address for the bitbake server to bind to", 178 parser.add_option("-B", "--bind", help = "The name/address for the bitbake server to bind to.",
180 action = "store", dest = "bind", default = False) 179 action = "store", dest = "bind", default = False)
181 180
182 parser.add_option("", "--no-setscene", help = "Do not run any setscene tasks, forces builds", 181 parser.add_option("", "--no-setscene", help = "Do not run any setscene tasks. sstate will be ignored and everything needed, built.",
183 action = "store_true", dest = "nosetscene", default = False) 182 action = "store_true", dest = "nosetscene", default = False)
184 183
185 parser.add_option("", "--remote-server", help = "Connect to the specified server", 184 parser.add_option("", "--remote-server", help = "Connect to the specified server.",
186 action = "store", dest = "remote_server", default = False) 185 action = "store", dest = "remote_server", default = False)
187 186
188 parser.add_option("-m", "--kill-server", help = "Terminate the remote server", 187 parser.add_option("-m", "--kill-server", help = "Terminate the remote server.",
189 action = "store_true", dest = "kill_server", default = False) 188 action = "store_true", dest = "kill_server", default = False)
190 189
191 parser.add_option("", "--observe-only", help = "Connect to a server as an observing-only client", 190 parser.add_option("", "--observe-only", help = "Connect to a server as an observing-only client.",
192 action = "store_true", dest = "observe_only", default = False) 191 action = "store_true", dest = "observe_only", default = False)
193 192
194 options, targets = parser.parse_args(sys.argv) 193 options, targets = parser.parse_args(sys.argv)