summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb b/meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb
index cf7ca100..a87b37a0 100644
--- a/meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb
+++ b/meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb
@@ -61,7 +61,10 @@ def check_bitstream_vars(d):
61 raise bb.parse.SkipRecipe("The expected bitstream file %s is not available.\nSee the meta-xilinx-core README.") 61 raise bb.parse.SkipRecipe("The expected bitstream file %s is not available.\nSee the meta-xilinx-core README.")
62 62
63 if not d.getVar('BITSTREAM_PATH'): 63 if not d.getVar('BITSTREAM_PATH'):
64 raise bb.parse.SkipRecipe("Something is depending on virtual/bitstream and you have not provided a bitstream using BITSTREAM_PATH variable.\n See the meta-xilinx-core README.") 64 if os.path.exists(d.expand('${TOPDIR}/download-${MACHINE}.bit')):
65 d.setVar('BITSTREAM_PATH', '${TOPDIR}/download-${MACHINE}.bit')
66 else:
67 raise bb.parse.SkipRecipe("Something is depending on virtual/bitstream and you have not provided a bitstream using BITSTREAM_PATH variable.\n See the meta-xilinx-core README.")
65 68
66python() { 69python() {
67 # Need to allow bbappends to change the check 70 # Need to allow bbappends to change the check