From a8545b13fcec0e0552d1334cbaa3cb04a5b37ea9 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Tue, 22 Jun 2021 17:44:24 -0700 Subject: base-pdi: Warn the user earlier if config is missing Signed-off-by: Mark Hatle --- meta-xilinx-bsp/recipes-bsp/base-pdi/base-pdi_1.0.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-xilinx-bsp') 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" PDI_PATH ?= "" SRC_URI += "${@['file://'+d.getVar('PDI_PATH'),''][d.getVar('PDI_PATH') == '']}" +python() { + if d.getVar('PDI_SKIP_CHECK') != "1" and not d.getVar('PDI_PATH'): + raise bb.parse.SkipRecipe("PDI_PATH is not configured with the base design pdi") +} + #base install will just take from PDI_PATH variable #will need to bbappend to this in meta-xilinx-tools to use xsct to extract pdi from xsa and install do_install() { -- cgit v1.2.3-54-g00ecf