diff options
-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 bd253117aa..fd80c18697 100644 --- a/meta/classes/cml1.bbclass +++ b/meta/classes/cml1.bbclass | |||
@@ -15,7 +15,23 @@ HOSTLDFLAGS = "${BUILD_LDFLAGS}" | |||
15 | HOST_LOADLIBES = "-lncurses" | 15 | HOST_LOADLIBES = "-lncurses" |
16 | 16 | ||
17 | python do_menuconfig() { | 17 | python do_menuconfig() { |
18 | try: | ||
19 | mtime = os.path.getmtime(".config") | ||
20 | except OSError: | ||
21 | mtime = 0 | ||
22 | |||
18 | oe_terminal("${SHELL} -c \"make menuconfig; echo 'Pausing for 5 seconds'; sleep 5\"", '${PN} Configuration', d) | 23 | oe_terminal("${SHELL} -c \"make menuconfig; echo 'Pausing for 5 seconds'; sleep 5\"", '${PN} Configuration', d) |
24 | |||
25 | # FIXME this check can be removed when the minimum bitbake version has been bumped | ||
26 | if hasattr(bb.build, 'write_taint'): | ||
27 | try: | ||
28 | newmtime = os.path.getmtime(".config") | ||
29 | except OSError: | ||
30 | newmtime = 0 | ||
31 | |||
32 | if newmtime > mtime: | ||
33 | bb.note("Configuration changed, recompile will be forced") | ||
34 | bb.build.write_taint('do_compile', d) | ||
19 | } | 35 | } |
20 | do_menuconfig[depends] += "ncurses-native:do_populate_sysroot" | 36 | do_menuconfig[depends] += "ncurses-native:do_populate_sysroot" |
21 | do_menuconfig[nostamp] = "1" | 37 | do_menuconfig[nostamp] = "1" |