diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/cml1.bbclass | 16 |
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 | |||
10 | inherit terminal | 10 | inherit terminal |
11 | 11 | ||
12 | python do_menuconfig() { | 12 | python 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 | } |
15 | do_menuconfig[nostamp] = "1" | 31 | do_menuconfig[nostamp] = "1" |
16 | addtask menuconfig after do_configure | 32 | addtask menuconfig after do_configure |