summaryrefslogtreecommitdiff
path: root/lib/recipetool/updatesrcrev.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/recipetool/updatesrcrev.py')
-rw-r--r--lib/recipetool/updatesrcrev.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/recipetool/updatesrcrev.py b/lib/recipetool/updatesrcrev.py
index 411e428..0c6fb19 100644
--- a/lib/recipetool/updatesrcrev.py
+++ b/lib/recipetool/updatesrcrev.py
@@ -37,6 +37,12 @@ def updatesrcrev(args):
if not rd:
return 1
+ # The line `PV = "2020.07+git${SRCPV}"` in the U-Boot 2020.07 recipe
+ # makes the uprev of that recipe fail if no MACHINE is defined.
+ # (Because then UBOOT_MACHINE or UBOOT_CONFIG is not defined.)
+ # Just reading PV of the datastore fixes the issue
+ pv = rd.getVar('PV')
+
src_uris = rd.getVar('SRC_URI').split()
revision = {}
for src_uri in src_uris: