summaryrefslogtreecommitdiffstats
path: root/meta/classes/cml1.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cml1.bbclass')
-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