public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta/conf/bitbake.conf: add default value for SRCREV
@ 2023-06-22 16:52 Henning Schild
  2023-06-30 11:57 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Schild @ 2023-06-22 16:52 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

The line is taken from the bitbake.conf of OE. The value "INVALID" is
magic and makes bitbake throw exceptions in case the variable needs a
value assigned but a recipe did not assign one.
So it is a minor fix to improve error reporting when recipes have
mistakes.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
 meta/conf/bitbake.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index a85fea77877e..c122914b2ee9 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -35,6 +35,7 @@ PV = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
 PR = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}"
 PROVIDES = ""
 S = "${WORKDIR}/${P}"
+SRCREV ??= "INVALID"
 AUTOREV = "${@bb.fetch2.get_autorev(d)}"
 AUTOREV[vardepvalue] = "${SRCPV}"
 # Set Dynamically in base.bbclass
-- 
2.39.3


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

end of thread, other threads:[~2023-06-30 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 16:52 [PATCH] meta/conf/bitbake.conf: add default value for SRCREV Henning Schild
2023-06-30 11:57 ` Uladzimir Bely

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