Skip to contentSkip to conversation

bitbake: tweak help text for -C slightly

PATCH New Paul Eggleton 1 participant 2 messages Jun 21, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bitbake: tweak help text for -C slightly

What is specified is a command (or "cmd" as in the help text for -f) rather than a task - i.e. you specify compile, not do_compile, so change the sentence to reflect that and reorder it slightly so it makes sense.

---
 bin/bitbake |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bin/bitbake +1 -1
index f23673f..e55a538 100755
@@ -118,7 +118,7 @@ Default BBFILES are the .bb files in the current directory.""")
     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",
                action = "store", dest = "cmd")
 
-    parser.add_option("-C", "--clear-stamp", help = "Invalidate the specified stamp for a task such as 'compile' and run the default task for the specified target(s)",
+    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)",
                 action = "store", dest = "invalidate_stamp")
 
     parser.add_option("-r", "--read", help = "read the specified file before bitbake.conf",
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 lib/bb/siggen.py: log when tainting the signature of a task

Log a note when applying a taint to a task signature (e.g. when using the -f or -C command line options) so that the user knows this has been done.

---
 lib/bb/siggen.py |    1 +
 1 file changed, 1 insertion(+)
lib/bb/siggen.py +1 -0
index 0fb2642..edd98fc 100644
@@ -268,6 +268,7 @@ class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
         return ("%s.%s.%s.%s" % (stampbase, taskname, h, extrainfo)).rstrip('.')
 
     def invalidate_task(self, task, d, fn):
+        bb.note("Tainting hash to force rebuild of task %s, %s" % (fn, task))
         bb.build.write_taint(task, d, fn)
 
 def dump_this_task(outfile, d):
Signature · 1 line
1.7.9.5