summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-06-18 16:50:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-10 23:30:08 +0100
commite5a85ac2e42db412688c3dbffda0028a7646bb39 (patch)
tree7ffcbc1d9964f99d901c7ba33cac5568f5d36206 /meta
parentb4bb378261cea2deb413fbb797e381a693dab7ae (diff)
downloadpoky-e5a85ac2e42db412688c3dbffda0028a7646bb39.tar.gz
classes/cml1: ensure -c menuconfig forces a rebuild next time
Ensure the following results in the kernel being rebuilt, repackaged and re-deployed in the final step: bitbake virtual/kernel bitbake -c menuconfig virtual/kernel [ make changes to the kernel configuration and save ] bitbake virtual/kernel If there are no changes to the configuration saved, the rebuild will not be triggered. Note that this relies on a function recently added to BitBake and requires full hashing (i.e. BB_SIGNATURE_HANDLER must be set to a signature handler that inherits from BasicHash) - if this is not the case or the function is not available in the version of BitBake being used this change will do nothing. Fixes [YOCTO #2256]. (From OE-Core rev: 9bf6b60e1599cf5dd87089d42584583cdfd6807a) (From OE-Core rev: a9600e68e64a111be4cb934e14b914fa553b5654) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/cml1.bbclass16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass
index d429188c70..678d23c832 100644
--- a/meta/classes/cml1.bbclass
+++ b/meta/classes/cml1.bbclass
@@ -10,7 +10,23 @@ addtask configure after do_unpack do_patch before do_compile
10inherit terminal 10inherit terminal
11 11
12python do_menuconfig() { 12python do_menuconfig() {
13 try:
14 mtime = os.path.getmtime(".config")
15 except OSError:
16 mtime = 0
17
13 oe_terminal("make menuconfig", '${PN} Configuration', d) 18 oe_terminal("make menuconfig", '${PN} Configuration', d)
19
20 # FIXME this check can be removed when the minimum bitbake version has been bumped
21 if hasattr(bb.build, 'write_taint'):
22 try:
23 newmtime = os.path.getmtime(".config")
24 except OSError:
25 newmtime = 0
26
27 if newmtime > mtime:
28 bb.note("Configuration changed, recompile will be forced")
29 bb.build.write_taint('do_compile', d)
14} 30}
15do_menuconfig[nostamp] = "1" 31do_menuconfig[nostamp] = "1"
16addtask menuconfig after do_configure 32addtask menuconfig after do_configure