summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorEnrico Jörns <ejo@pengutronix.de>2024-03-05 22:57:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-30 22:25:43 +0000
commit356a4893450a2e7523ee73344c35979647df5298 (patch)
tree5bb70baf50d2ace6155cfd53ca9429d381183e0b /meta/classes-recipe
parent319353cd9d5afa4d1e349e18787697d65807932f (diff)
downloadpoky-356a4893450a2e7523ee73344c35979647df5298.tar.gz
cml1: remove needless check for write_taint attribute
The 'FIXME' comment itself says to remove this once the minimum bitbake version has been bumped. This was in 2012. The function was introduced in bitbake commit f7b55a94 ("bitbake: bitbake: ensure -f causes dependent tasks to be re-run") and is already part of bitbake 1.15.3 which is the minimum bitbake version since 'danny'. Remove the check. (From OE-Core rev: 035fe46fbf57ca83baf6610482ee7ee83c825a06) Signed-off-by: Enrico Jörns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/cml1.bbclass18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/classes-recipe/cml1.bbclass b/meta/classes-recipe/cml1.bbclass
index c4e3c9ff7a..2da19cb4cf 100644
--- a/meta/classes-recipe/cml1.bbclass
+++ b/meta/classes-recipe/cml1.bbclass
@@ -61,16 +61,14 @@ python do_menuconfig() {
61 oe_terminal("sh -c 'make %s; if [ \\$? -ne 0 ]; then echo \"Command failed.\"; printf \"Press any key to continue... \"; read r; fi'" % d.getVar('KCONFIG_CONFIG_COMMAND'), 61 oe_terminal("sh -c 'make %s; if [ \\$? -ne 0 ]; then echo \"Command failed.\"; printf \"Press any key to continue... \"; read r; fi'" % d.getVar('KCONFIG_CONFIG_COMMAND'),
62 d.getVar('PN') + ' Configuration', d) 62 d.getVar('PN') + ' Configuration', d)
63 63
64 # FIXME this check can be removed when the minimum bitbake version has been bumped 64 try:
65 if hasattr(bb.build, 'write_taint'): 65 newmtime = os.path.getmtime(config)
66 try: 66 except OSError:
67 newmtime = os.path.getmtime(config) 67 newmtime = 0
68 except OSError: 68
69 newmtime = 0 69 if newmtime > mtime:
70 70 bb.note("Configuration changed, recompile will be forced")
71 if newmtime > mtime: 71 bb.build.write_taint('do_compile', d)
72 bb.note("Configuration changed, recompile will be forced")
73 bb.build.write_taint('do_compile', d)
74} 72}
75do_menuconfig[depends] += "ncurses-native:do_populate_sysroot" 73do_menuconfig[depends] += "ncurses-native:do_populate_sysroot"
76do_menuconfig[nostamp] = "1" 74do_menuconfig[nostamp] = "1"