diff options
Diffstat (limited to 'meta-xilinx-core/recipes-bsp/base-pdi/base-pdi_1.0.bb')
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/base-pdi/base-pdi_1.0.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-bsp/base-pdi/base-pdi_1.0.bb b/meta-xilinx-core/recipes-bsp/base-pdi/base-pdi_1.0.bb index 9fd9c34a..28958c36 100644 --- a/meta-xilinx-core/recipes-bsp/base-pdi/base-pdi_1.0.bb +++ b/meta-xilinx-core/recipes-bsp/base-pdi/base-pdi_1.0.bb | |||
| @@ -18,6 +18,8 @@ do_compile[noexec] = "1" | |||
| 18 | PDI_PATH ?= "" | 18 | PDI_PATH ?= "" |
| 19 | SRC_URI += "${@['file://'+d.getVar('PDI_PATH'),''][d.getVar('PDI_PATH') == '']}" | 19 | SRC_URI += "${@['file://'+d.getVar('PDI_PATH'),''][d.getVar('PDI_PATH') == '']}" |
| 20 | 20 | ||
| 21 | S = "${UNPACKDIR}" | ||
| 22 | |||
| 21 | python() { | 23 | python() { |
| 22 | if d.getVar('PDI_SKIP_CHECK') != "1" and not d.getVar('PDI_PATH'): | 24 | if d.getVar('PDI_SKIP_CHECK') != "1" and not d.getVar('PDI_PATH'): |
| 23 | raise bb.parse.SkipRecipe("PDI_PATH is not configured with the base design pdi") | 25 | raise bb.parse.SkipRecipe("PDI_PATH is not configured with the base design pdi") |
| @@ -27,9 +29,9 @@ python() { | |||
| 27 | #will need to bbappend to this in meta-xilinx-tools to use xsct to extract pdi from xsa and install | 29 | #will need to bbappend to this in meta-xilinx-tools to use xsct to extract pdi from xsa and install |
| 28 | do_install() { | 30 | do_install() { |
| 29 | 31 | ||
| 30 | if [ -f ${WORKDIR}/${PDI_PATH} ];then | 32 | if [ -f ${S}/${PDI_PATH} ];then |
| 31 | install -d ${D}/boot | 33 | install -d ${D}/boot |
| 32 | install -m 0644 ${WORKDIR}/${PDI_PATH} ${D}/boot/base-design.pdi | 34 | install -m 0644 ${S}/${PDI_PATH} ${D}/boot/base-design.pdi |
| 33 | else | 35 | else |
| 34 | bbfatal "No base pdi supplied" | 36 | bbfatal "No base pdi supplied" |
| 35 | fi | 37 | fi |
