summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass')
-rw-r--r--meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass22
1 files changed, 21 insertions, 1 deletions
diff --git a/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass b/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass
index 6a6faf01..805aa18d 100644
--- a/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass
+++ b/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass
@@ -35,7 +35,6 @@ LIC_FILES_CHKSUM[xlnx_rel_v2024.1] = '0dcabd3719e5ac33f7c03f0d77d473f2'
35LIC_FILES_CHKSUM[xlnx_rel_v2024.2] = '689662801a76c14d0cb57ae169cbec7c' 35LIC_FILES_CHKSUM[xlnx_rel_v2024.2] = '689662801a76c14d0cb57ae169cbec7c'
36LIC_FILES_CHKSUM ??= "file://license.txt;md5=${@d.getVarFlag('LIC_FILES_CHKSUM', d.getVar('BRANCH')) or '0'}" 36LIC_FILES_CHKSUM ??= "file://license.txt;md5=${@d.getVarFlag('LIC_FILES_CHKSUM', d.getVar('BRANCH')) or '0'}"
37 37
38SRC_URI = "${EMBEDDEDSW_SRCURI}"
39PV .= "+git" 38PV .= "+git"
40 39
41python() { 40python() {
@@ -47,3 +46,24 @@ python() {
47 except: 46 except:
48 raise bb.parse.SkipRecipe('BB_NO_NETWORK is enabled, can not fetch SRCREV (%s)' % d.getVar('SRCREV')) 47 raise bb.parse.SkipRecipe('BB_NO_NETWORK is enabled, can not fetch SRCREV (%s)' % d.getVar('SRCREV'))
49} 48}
49
50SHARED_S = "${TMPDIR}/work-shared/embeddedsw-${PV}-${PR}/source/git"
51S = "${WORKDIR}/source"
52B = "${WORKDIR}/build"
53
54ERROR_QA:remove = "buildpaths"
55
56# The following is for recipes that use the common sources
57python do_copy_shared_src() {
58 src = d.getVar('SHARED_S')
59 dest = d.getVar('S')
60 if src != dest:
61 oe.path.copyhardlinktree(src, dest)
62}
63
64python() {
65 if d.getVar('BPN') != "embeddedsw-source":
66 bb.build.addtask('do_copy_shared_src', 'do_configure do_populate_lic do_deploy_source_date_epoch', 'do_patch', d)
67
68 d.appendVarFlag('do_copy_shared_src', 'depends', ' embeddedsw-source-${PV}:do_patch')
69}