public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2] Set STAMPCLEAN variable
@ 2019-08-12 17:15 Jan Kiszka
  2019-08-13  7:27 ` Claudius Heine
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2019-08-12 17:15 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

From: Jan Kiszka <jan.kiszka@siemens.com>

This ensures that stamp files are cleaned when a task is rebuilt. Not
providing this pattern likely caused a lot of failures when doing
partial rebuilds.

As we are at it, switch do_clean to STAMPCLEAN as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/classes/base.bbclass | 4 ++--
 meta/conf/bitbake.conf    | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index ca80bf8..b6638ca 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -206,8 +206,8 @@ python do_clean() {
     workdir = d.expand("${WORKDIR}")
     subprocess.check_call(["sudo", "rm", "-rf", workdir])
 
-    stamppath = bb.data.expand(d.getVar('STAMP', False), d)
-    stampdirs = glob.glob(stamppath + ".*")
+    stampclean = bb.data.expand(d.getVar('STAMPCLEAN', False), d)
+    stampdirs = glob.glob(stampclean)
     subprocess.check_call(["sudo", "rm", "-rf"] + stampdirs)
 }
 
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 3d18223..003fb01 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -36,6 +36,7 @@ S = "${WORKDIR}/${P}"
 AUTOREV = "${@bb.fetch2.get_autorev(d)}"
 SRC_URI = "file://${FILE}"
 STAMP = "${TMPDIR}/stamps/${PF}"
+STAMPCLEAN = "${STAMP}*"
 SVNDIR = "${DL_DIR}/svn"
 T = "${WORKDIR}/temp"
 TMPDIR = "${TOPDIR}/tmp"
-- 
2.16.4

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2] Set STAMPCLEAN variable
@ 2019-08-14 12:39 Jan Kiszka
  2019-08-14 14:10 ` Claudius Heine
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2019-08-14 12:39 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

This ensures that stamp files are cleaned when a task is rebuilt. Not
providing this pattern likely caused a lot of failures when doing
partial rebuilds.

As we are at it, switch do_clean to STAMPCLEAN as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/classes/base.bbclass | 4 ++--
 meta/conf/bitbake.conf    | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index ca80bf8..b6638ca 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -206,8 +206,8 @@ python do_clean() {
     workdir = d.expand("${WORKDIR}")
     subprocess.check_call(["sudo", "rm", "-rf", workdir])
 
-    stamppath = bb.data.expand(d.getVar('STAMP', False), d)
-    stampdirs = glob.glob(stamppath + ".*")
+    stampclean = bb.data.expand(d.getVar('STAMPCLEAN', False), d)
+    stampdirs = glob.glob(stampclean)
     subprocess.check_call(["sudo", "rm", "-rf"] + stampdirs)
 }
 
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 3d18223..ee86ee0 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -36,6 +36,7 @@ S = "${WORKDIR}/${P}"
 AUTOREV = "${@bb.fetch2.get_autorev(d)}"
 SRC_URI = "file://${FILE}"
 STAMP = "${TMPDIR}/stamps/${PF}"
+STAMPCLEAN = "${TMPDIR}/stamps/${PN}-*"
 SVNDIR = "${DL_DIR}/svn"
 T = "${WORKDIR}/temp"
 TMPDIR = "${TOPDIR}/tmp"
-- 
2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-08-19 19:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-12 17:15 [PATCH v2] Set STAMPCLEAN variable Jan Kiszka
2019-08-13  7:27 ` Claudius Heine
2019-08-13  8:01   ` Jan Kiszka
2019-08-13  8:17     ` Claudius Heine
2019-08-14 12:39 Jan Kiszka
2019-08-14 14:10 ` Claudius Heine
2019-08-14 14:17   ` Jan Kiszka
2019-08-19 19:00     ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox