diff options
Diffstat (limited to 'meta-xilinx-standalone/classes')
| -rw-r--r-- | meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass | 22 |
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' | |||
| 35 | LIC_FILES_CHKSUM[xlnx_rel_v2024.2] = '689662801a76c14d0cb57ae169cbec7c' | 35 | LIC_FILES_CHKSUM[xlnx_rel_v2024.2] = '689662801a76c14d0cb57ae169cbec7c' |
| 36 | LIC_FILES_CHKSUM ??= "file://license.txt;md5=${@d.getVarFlag('LIC_FILES_CHKSUM', d.getVar('BRANCH')) or '0'}" | 36 | LIC_FILES_CHKSUM ??= "file://license.txt;md5=${@d.getVarFlag('LIC_FILES_CHKSUM', d.getVar('BRANCH')) or '0'}" |
| 37 | 37 | ||
| 38 | SRC_URI = "${EMBEDDEDSW_SRCURI}" | ||
| 39 | PV .= "+git" | 38 | PV .= "+git" |
| 40 | 39 | ||
| 41 | python() { | 40 | python() { |
| @@ -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 | |||
| 50 | SHARED_S = "${TMPDIR}/work-shared/embeddedsw-${PV}-${PR}/source/git" | ||
| 51 | S = "${WORKDIR}/source" | ||
| 52 | B = "${WORKDIR}/build" | ||
| 53 | |||
| 54 | ERROR_QA:remove = "buildpaths" | ||
| 55 | |||
| 56 | # The following is for recipes that use the common sources | ||
| 57 | python 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 | |||
| 64 | python() { | ||
| 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 | } | ||
