diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-03-13 14:33:52 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-03-15 13:08:07 -0500 |
commit | ccd0c4094bddc7e954c7ca985e1a3b462b334e81 (patch) | |
tree | ef87c3e9c13f3a67dfdc2c8d683b98f8ca623ebd /meta-xilinx-standalone | |
parent | 670ff7ebfdc3507d6c19308f85dc144080e7586c (diff) | |
download | meta-xilinx-ccd0c4094bddc7e954c7ca985e1a3b462b334e81.tar.gz |
xlnx-embeddedsw: Update AUTOREV
When using AUTOREV with BB_NO_NETWORK = '1', the system would fail with a
circular dependency on a parse error. Adding the skip code, and moving
the default value to 'INVALID' will ensure that the user is notified
with an appropriate error, and no parse issues occur.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone')
-rw-r--r-- | meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass b/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass index 1e9e3729..d5b8ef82 100644 --- a/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass +++ b/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass | |||
@@ -13,7 +13,7 @@ ESW_REV[git] = "${AUTOREV}" | |||
13 | ESW_REV[2023.1] = "af784f742dad0ca6e69e05baf8de51152c396b9a" | 13 | ESW_REV[2023.1] = "af784f742dad0ca6e69e05baf8de51152c396b9a" |
14 | ESW_REV[2023.2] = "73f0904e41cc109f18bb19a5329d0e5a66af2434" | 14 | ESW_REV[2023.2] = "73f0904e41cc109f18bb19a5329d0e5a66af2434" |
15 | ESW_REV[2024.1] = "ad038fbbeccd66f126ad80980452b8fecee60e4f" | 15 | ESW_REV[2024.1] = "ad038fbbeccd66f126ad80980452b8fecee60e4f" |
16 | SRCREV ??= "${@d.getVarFlag('ESW_REV', d.getVar('ESW_VER')) or '${AUTOREV}'}" | 16 | SRCREV ??= "${@d.getVarFlag('ESW_REV', d.getVar('ESW_VER')) or 'INVALID'}" |
17 | 17 | ||
18 | EMBEDDEDSW_BRANCHARG ?= "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH') != '']}" | 18 | EMBEDDEDSW_BRANCHARG ?= "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH') != '']}" |
19 | EMBEDDEDSW_SRCURI ?= "${REPO};${EMBEDDEDSW_BRANCHARG}" | 19 | EMBEDDEDSW_SRCURI ?= "${REPO};${EMBEDDEDSW_BRANCHARG}" |
@@ -27,3 +27,13 @@ LIC_FILES_CHKSUM ??= "file://license.txt;md5=${@d.getVarFlag('LIC_FILES_CHKSUM', | |||
27 | 27 | ||
28 | SRC_URI = "${EMBEDDEDSW_SRCURI}" | 28 | SRC_URI = "${EMBEDDEDSW_SRCURI}" |
29 | PV .= "+git${SRCPV}" | 29 | PV .= "+git${SRCPV}" |
30 | |||
31 | python() { | ||
32 | if d.getVar('BB_NO_NETWORK') == '1': | ||
33 | try: | ||
34 | # Just evaluating SRCPV / SRCREV can trigger an exception when BB_NO_NETWORK is enabled. | ||
35 | var = d.getVar('SRCPV') | ||
36 | var = d.getVar('SRCREV') | ||
37 | except: | ||
38 | raise bb.parse.SkipRecipe('BB_NO_NETWORK is enabled, can not fetch SRCREV (%s)' % d.getVar('SRCREV')) | ||
39 | } | ||