diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-09-03 12:29:48 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-09-04 09:01:06 -0500 |
commit | 6170b3487f4b5a48dedf52cd9450362b8b07fd42 (patch) | |
tree | feb2b49f961f10b1f8f128484c7fe9c37bff0cb0 | |
parent | 5156e201f9797c18a01648a55e5aea059e458fa6 (diff) | |
download | meta-xilinx-6170b3487f4b5a48dedf52cd9450362b8b07fd42.tar.gz |
bitstream: Add tempoary workaround for build
The build process expects a bitstream in some cases and provides it in the
TOPDIR. We don't want to just set a default, because if it's not provided
it should not be expected.
Once the generic machines become 'firmware-less', this workaround should be
removed.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb | 5 |
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 | ||
66 | python() { | 69 | python() { |
67 | # Need to allow bbappends to change the check | 70 | # Need to allow bbappends to change the check |