diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2021-06-22 17:44:24 -0700 |
---|---|---|
committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-09-27 21:34:01 -0700 |
commit | a8545b13fcec0e0552d1334cbaa3cb04a5b37ea9 (patch) | |
tree | df707b1bc4e246051432233945e4582a63e0a20f /meta-xilinx-bsp | |
parent | d421e61ed4175dad96ef9082f50a7f19298b1a93 (diff) | |
download | meta-xilinx-a8545b13fcec0e0552d1334cbaa3cb04a5b37ea9.tar.gz |
base-pdi: Warn the user earlier if config is missing
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/base-pdi/base-pdi_1.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/base-pdi/base-pdi_1.0.bb b/meta-xilinx-bsp/recipes-bsp/base-pdi/base-pdi_1.0.bb index 8b77fd51..ba24ba1f 100644 --- a/meta-xilinx-bsp/recipes-bsp/base-pdi/base-pdi_1.0.bb +++ b/meta-xilinx-bsp/recipes-bsp/base-pdi/base-pdi_1.0.bb | |||
@@ -14,6 +14,11 @@ do_compile[noexec] = "1" | |||
14 | PDI_PATH ?= "" | 14 | PDI_PATH ?= "" |
15 | SRC_URI += "${@['file://'+d.getVar('PDI_PATH'),''][d.getVar('PDI_PATH') == '']}" | 15 | SRC_URI += "${@['file://'+d.getVar('PDI_PATH'),''][d.getVar('PDI_PATH') == '']}" |
16 | 16 | ||
17 | python() { | ||
18 | if d.getVar('PDI_SKIP_CHECK') != "1" and not d.getVar('PDI_PATH'): | ||
19 | raise bb.parse.SkipRecipe("PDI_PATH is not configured with the base design pdi") | ||
20 | } | ||
21 | |||
17 | #base install will just take from PDI_PATH variable | 22 | #base install will just take from PDI_PATH variable |
18 | #will need to bbappend to this in meta-xilinx-tools to use xsct to extract pdi from xsa and install | 23 | #will need to bbappend to this in meta-xilinx-tools to use xsct to extract pdi from xsa and install |
19 | do_install() { | 24 | do_install() { |